docs: add CLI reference table for mcp dev/run/install flags#2409
Open
RudrenduPaul wants to merge 2 commits intomodelcontextprotocol:mainfrom
Open
docs: add CLI reference table for mcp dev/run/install flags#2409RudrenduPaul wants to merge 2 commits intomodelcontextprotocol:mainfrom
RudrenduPaul wants to merge 2 commits intomodelcontextprotocol:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
-t, --transportflag and all othermcpCLI flags were undocumentedin the README. Users and LLMs connecting to MCP servers had no reference
for available options without reading the source code.
Added a
### CLI Referencesubsection under## Running Your Serverwith complete flag tables for
mcp dev,mcp run,mcp install, andmcp version. Flags sourced directly fromsrc/mcp/cli/cli.py.Motivation and Context
Users trying to connect external clients (e.g. Cursor, Claude Desktop) to
a locally-running MCP server need to know which transport to specify. The
-t, --transportflag formcp runwas only discoverable by reading thesource — it was absent from the README entirely. This adds a single
reference table so users don't have to grep the code.
How Has This Been Tested?
Documentation-only change. Verified flag names and types against
src/mcp/cli/cli.pydirectly. No code paths changed.Breaking Changes
None.
Types of changes
Checklist