MCP Configuration

August 4, 2026 · View on GitHub

Source: https://kiro.dev/docs/cli/mcp/configuration/

Config structure

{
  "mcpServers": {
    "local-server": {
      "command": "cmd",
      "args": ["arg1"],
      "env": { "KEY": "${EXPANDED_VAR}" },
      "disabled": false,
      "disabledTools": ["tool_name"],
      "autoApprove": ["tool_name"]
    },
    "remote-server": {
      "url": "https://endpoint.example.com",
      "headers": { "Authorization": "Bearer ${TOKEN}" },
      "disabled": false
    }
  }
}

Local server properties

PropertyTypeRequiredDescription
commandStringYesCommand to run the server
argsArrayYesArguments
envObjectNoEnvironment variables (${VAR} expansion)
disabledBooleanNoDefault false
autoApproveArrayNoTools to auto-approve
disabledToolsArrayNoTools to omit

Remote server properties

PropertyTypeRequiredDescription
urlStringYesHTTPS endpoint (HTTP for localhost)
headersObjectNoConnection headers

Loading priority (highest → lowest)

  1. Agent Config (mcpServers in agent JSON)
  2. Workspace MCP JSON (.kiro/settings/mcp.json)
  3. Global MCP JSON (~/.kiro/settings/mcp.json)

Same-name servers: higher priority wins. Different names: additive.

Disabling

{ "disabled": true }                                // disable server
{ "disabledTools": ["delete_file", "execute_cmd"] } // disable specific tools

View loaded servers

/mcp