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ยง
- McpAdd
Command - Add an MCP server.
- McpAdd
From Desktop Command - Import MCP servers from Claude Desktop (Mac and WSL only).
- McpAdd
Json Command - Add an MCP server using raw JSON configuration.
- McpGet
Command - Get details about a specific MCP server.
- McpList
Command - List configured MCP servers.
- McpLogin
Command - Authenticate with an MCP server (HTTP, SSE, or claude.ai connector).
- McpLogout
Command - Clear stored OAuth credentials for an MCP server.
- McpRemove
Command - Remove an MCP server.
- McpReset
Project Choices Command - Reset all approved and rejected project-scoped MCP servers.
- McpServe
Command - Start the Claude Code MCP server.