feat: amcs-cli — MCP tool CLI and stdio bridge #21

Merged
sgcommand merged 1 commits from feat/amcs-cli into main 2026-04-04 14:25:05 +00:00
Member

Closes #18

What this adds

cmd/amcs-cli — a CLI tool that connects to the AMCS MCP server over HTTP (URL + bearer token).

Commands

amcs-cli tools                          # list all tools from remote server
amcs-cli call <tool> --arg k=v         # invoke a tool, print result
amcs-cli stdio                         # stdio↔HTTP MCP bridge for AI clients

Config

Precedence: config file < env < flags

# ~/.config/amcs/config.yaml
server: https://amcs.example.com
token: your-api-key

Or via env: AMCS_URL, AMCS_TOKEN

Or via flags: --server, --token

stdio bridge

amcs-cli stdio acts as a stdio MCP server, proxying all MCP tool traffic to the remote HTTP endpoint. Allows AI clients that only speak stdio MCP to use a remote AMCS server.

Build

make build-cli
Closes #18 ## What this adds `cmd/amcs-cli` — a CLI tool that connects to the AMCS MCP server over HTTP (URL + bearer token). ### Commands ``` amcs-cli tools # list all tools from remote server amcs-cli call <tool> --arg k=v # invoke a tool, print result amcs-cli stdio # stdio↔HTTP MCP bridge for AI clients ``` ### Config Precedence: config file < env < flags ```yaml # ~/.config/amcs/config.yaml server: https://amcs.example.com token: your-api-key ``` Or via env: `AMCS_URL`, `AMCS_TOKEN` Or via flags: `--server`, `--token` ### stdio bridge `amcs-cli stdio` acts as a stdio MCP server, proxying all MCP tool traffic to the remote HTTP endpoint. Allows AI clients that only speak stdio MCP to use a remote AMCS server. ### Build ```bash make build-cli ```
sgcommand added 1 commit 2026-04-04 14:14:25 +00:00
- cmd/amcs-cli: new CLI tool for human/AI MCP tool access
- amcs-cli tools: list all tools from remote MCP server
- amcs-cli call <tool> --arg k=v: invoke a tool, print JSON/YAML result
- amcs-cli stdio: stdio→HTTP MCP bridge for AI clients
- Config: ~/.config/amcs/config.yaml, AMCS_URL/AMCS_TOKEN env vars, --server/--token flags
- Token never logged in errors
- Makefile: add build-cli target

Closes #18
sgcommand merged commit 3e09dc0ac6 into main 2026-04-04 14:25:05 +00:00
Sign in to join this conversation.