amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Remote MCP help page for the add command

Open AmshegaR opened this issue 1 year ago • 0 comments

Update CLI man page to support streamable-http transport type for remote MCP servers.

$ q --version
q 1.16.1

$ q doctor
Everything looks good!

$ q mcp add --name "aws-knowledge" --type "http" --url "https://knowledge-mcp.global.api.aws" --scope global
error: unexpected argument '--type' found
Usage: qchat mcp add --name <NAME> --command <COMMAND>

$ q mcp add --help
Add or replace a configured server
Usage: qchat mcp add [OPTIONS] --name <NAME> --command <COMMAND>

Options:
      --name <NAME>
          Name for the server

      --scope <SCOPE>
          Scope. This parameter is only meaningful in the absence of agent name

          [possible values: default, workspace, global]

      --command <COMMAND>
          The command used to launch the server

      --args <ARGS>
          Arguments to pass to the command. Can be provided as:

          1. Multiple --args flags: --args arg1 --args arg2 --args "arg,with,commas"
          2. Comma-separated with escaping: --args "arg1,arg2,arg,with,commas"
          3. JSON array format: --args '["arg1", "arg2", "arg,with,commas"]'

      --agent <AGENT>
          Where to add the server to. If an agent name is not supplied, the changes shall be made to the global mcp.json

      --env <ENV>
          Environment variables to use when launching the server

      --timeout <TIMEOUT>
          Server launch timeout, in milliseconds

      --disabled
          Whether the server should be disabled (not loaded)

      --force
          Overwrite an existing server with the same name

  -v, --verbose...
          Increase logging verbosity

  -h, --help
          Print help (see a summary with '-h')

AmshegaR avatar Sep 18 '25 19:09 AmshegaR