mcp serve
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Programs connected through claude mcp serve can now see and use your subagent types through the Agent tool
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.288.
In the changelogs
9Releases whose published page names mcp serve.
-
v2.1.304
Choose which plugins load when Claude Code runs as an MCP server
CLAUDE_CODE_MCP_SERVE_ENABLED_PLUGINSlets a program that launchesclaude mcp servepick which plugins are turned onnamed in this entry
-
v2.1.302
claude mcp servecan be limited to a subfolder with a one-time variablePrograms that launch
claude mcp servecan setCLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOTso that only folders below a given folder can be registerednamed in this entry
-
v2.1.302
claude mcp servecan report on tool calls and accept rules from the clientclaude mcp servegains a ReadCalls tool that reports on running and finished tool calls, and clients can pass in deny and ask rulesnamed in this entry
-
v2.1.299
claude mcp servereads a session id sent with each tool callWhen Claude Code runs as an MCP server, it reads a session id from each call's
anthropic/sessionmetadata and warns when it is invalidnamed in this entry
-
v2.1.295
claude mcp servegains an HTTP mode, limited to remote cloud sessionsIn remote cloud sessions only,
claude mcp servecan now listen over HTTP with--transport,--portand--session-tunnelnamed in this entry
-
v2.1.295
mcp servegains a session tunnel mode and can return tool outputclaude mcp servehas a new--session-tunnelmode that connects through a relay, and can return tool output and relay permission asksnamed in this entry
-
v2.1.295
claude mcp servedeclares extra capabilities in its remote modeRun in its remote mode, the MCP server started by
claude mcp servenow declares more capabilities and accepts session details with each tool callnamed in this entry
-
v2.1.288
claude mcp servenow offers your custom subagentsPrograms connected through
claude mcp servecan now see and use your subagent types through the Agent toolnamed in this entry
-
v2.1.288
claude mcp servenow takes--strict-mcp-configinto accountRunning
claude mcp servenow passes the--strict-mcp-configoption along before the server startsnamed in this entry
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.