Movatterモバイル変換


[0]ホーム

URL:


MCP configuration in the CLI - Amazon Q Developer
DocumentationAmazon QUser Guide
Configuration commandsRemote MCP servers

MCP configuration in the CLI

This page covers CLI-specific options for configuring MCP servers.

Configuration commands

Usage:qchat mcp [OPTIONS]COMMAND

MCP configuration commands
CommandDescription
qchat mcp addAdd or replace a configured server
qchat mcp removeRemove a server from the MCP configuration
qchat mcp listList configured servers
qchat mcp importImport a server configuration from another file
qchat mcp statusGet the status of a configured server
qchat mcp helpPrint this list of commands or help for the given subcommand(s)

MCP server arguments

The--args parameter now supports comma-containing arguments using escaping or JSON array format:

# Escaped commasq mcp add --name server --command cmd --args "arg1,arg2\,with\,commas,arg3"# JSON array format  q mcp add --name server --command cmd --args '["arg1", "arg2,with,commas", "arg3"]'

Remote MCP servers

In addition to local MCP servers that run as processes, Amazon Q Developer CLI supports remote MCP servers that communicate over HTTP. Remote servers can use OAuth authentication or be open (no authentication required).

Configuration

Remote MCP servers are configured in your agent configuration file using thetype andurl fields:

{ "mcpServers":{ "find-a-domain":{ "type": "http", "url": "https://api.findadomain.dev/mcp" } }}

OAuth authentication flow

When using remote MCP servers that require OAuth authentication:

The server's tools will become available once authentication is complete.

MCP overview
With the IDE

[8]
ページ先頭

©2009-2025 Movatter.jp