axm mcps add
Add an inline MCP server
Usage
Section titled Usageaxm mcps add <name> [flags]Arguments
Section titled Arguments| Name | Type | Required | Default | Description |
|---|---|---|---|---|
<name> | string | Yes | Name of the MCP server to add |
Flags
Section titled Flags| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--scope | choice (project, user) | No | project | Workspace scope |
--connection | string | No | JSON connection object with env and template values; excludes per-field connection flags | |
--transport | choice (stdio, streamable-http, sse) | No | Connection transport, inferred from --command or --url; required when the URL serves SSE | |
--arg | string | No | One literal process argument; repeat in invocation order | |
--cwd | string | No | Working directory; relative paths use the selected scope root | |
--header-env | string | No | Native environment header binding NAME=ENV_NAME | |
--native-oauth | boolean | No | false | Use the native MCP host's OAuth; excludes an Authorization header |
--command | string | No | Single literal executable, such as npx | |
--url | string | No | Inline remote MCP server URL | |
--env | string | No | Host environment reference NAME, or literal KEY=VALUE | |
--header | string | No | Remote header as NAME=VALUE | |
--accept-warnings | boolean | No | false | Apply the plan even when preflight reports unresolved warnings |
--preview | boolean | No | false | Show what would change without applying it |
Examples
Section titled ExamplesAdd an inline stdio MCP server
axm mcps add linear --command npx --arg=-y --arg=linear-mcp-server --env LINEAR_API_KEYAdd an inline remote MCP server
axm mcps add sentry --transport sse --url https://mcp.sentry.dev/sse --native-oauth