CLICommandMCP integrationsMCP servers

ctxdex code mcp add <NAME> <COMMAND_OR_URL> [ARGS...]

Mcp Add/code/commands/cli/mcp-add

Add MCP servers.

Options
8
Arguments
3
Examples
2
Industry
3 of 5 mapped

About

Supported options and rules: --transport stdio|http|sse; --scope user|project; repeatable --env KEY=VALUE; repeatable --header NAME=VALUE; --timeout DURATION; repeatable --include-tool TOOL; repeatable --exclude-tool TOOL; --required.

Syntax

The canonical syntax string as recorded in the catalogue. It is authoritative — it is never reconstructed from the option and argument lists below.

ctxdex code mcp add <NAME> <COMMAND_OR_URL> [ARGS...]

Subcommand of ctxdex code mcp

Arguments

  • namestringRequiredposition 1

    Name or identifier of the item referenced by this command.

  • command_or_urlurlRequiredposition 2

    For stdio MCP, the executable command; for HTTP/SSE MCP, the server URL.

  • argsstringOptionalposition 3

    Additional command arguments; valid for stdio MCP transport.

    Repeatableyes

Options

Defaults, allowed values, conflicts and scope come from the catalogue; blank fields mean the catalogue records nothing, not that the constraint is absent.

  • --transport <enum>enumOptional

    Choose the MCP transport protocol. Allowed values: stdio, http, sse.

    Allowedstdio, http, sse
  • --scope <enum>enumOptional

    Choose the scope in which the setting, registration or package state is read or written. Allowed values: user, project.

    Alloweduser, project
  • --env <string>stringOptional

    Pass an environment variable to a stdio MCP server; repeatable. This option may be repeated.

    Repeatableyes
  • --header <string>stringOptional

    Pass an HTTP header to an HTTP/SSE MCP server; repeatable. This option may be repeated.

    Repeatableyes
  • --timeout <duration>durationOptional

    Set the MCP connection or operation timeout.

  • --include-tool <string>stringOptional

    Expose only the named MCP tool(s); repeatable. This option may be repeated.

    Repeatableyes
  • --exclude-tool <string>stringOptional

    Hide the named MCP tool(s); repeatable. This option may be repeated.

    Repeatableyes
  • --requiredbooleanOptional

    Mark the MCP server as required for the relevant configuration. Default: False.

    Defaultfalse

Examples

  • With options

    WITH OPTIONS
    ctxdex code mcp add github https://mcp.example.com --transport http --scope project

    Add MCP servers.

  • Representative options

    WITH OPTIONS
    ctxdex code mcp add github https://mcp.example.com --transport http --scope project --timeout 30s

    Shows representative optional controls available for this command.

Availability & requirements

Nothing recorded — this command is offered in the default session, with no repository, authentication, capability or platform requirement attached to it.

Relationships

Aliases

None recordedNo alias resolves to this command

Alternate surfaces

Related commands

None recordedNo related command is recorded

Industry comparison

3 of 5 products mapped

Command-level mappings against 5 audited products, each with its documentation source and capture date. No documented equivalent means the audit found nothing in that product’s official documentation — it is not a claim that the product lacks the capability.

Every canonical command was reviewed against all 5 products in one pass captured 2026-09-18. A product with no mapping is a reviewed finding of no documented equivalent, not an unreviewed pair.

Captured 2026-09-18 · 238 commands × 5 products

Open in Compare →