Skip to main content

Module mcp

Module mcp 

Source
Expand description

MCP server management subcommand builders.

Builders for the claude mcp surface: list, get, add, add-json, remove, add-from-desktop, login, logout, serve, and reset-project-choices. To generate a .mcp.json config file programmatically, see crate::mcp_config.

Structsยง

McpAddCommand
Add an MCP server.
McpAddFromDesktopCommand
Import MCP servers from Claude Desktop (Mac and WSL only).
McpAddJsonCommand
Add an MCP server using raw JSON configuration.
McpGetCommand
Get details about a specific MCP server.
McpListCommand
List configured MCP servers.
McpLoginCommand
Authenticate with an MCP server (HTTP, SSE, or claude.ai connector).
McpLogoutCommand
Clear stored OAuth credentials for an MCP server.
McpRemoveCommand
Remove an MCP server.
McpResetProjectChoicesCommand
Reset all approved and rejected project-scoped MCP servers.
McpServeCommand
Start the Claude Code MCP server.