modelcontextprotocol / modelcontextprotocol/python-sdk
[docs] How to run FastMCP with args or env vars?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24.3k
- Forks
- 4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 31
Description
https://github.com/modelcontextprotocol/python-sdk/tree/main?tab=readme-ov-file#development-mode
# Development Mode
The fastest way to test and debug your server is with the MCP Inspector:
mcp dev server.py
# Add dependencies
mcp dev server.py --with pandas --with numpy
# Mount local code
mcp dev server.py --with-editable .
This didn't show how to run with args in dev mode.
Expected to see something like this:
mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
mcp install server.py -f .env
However this is not dev mode
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's Development Mode section and the existing mcp dev and mcp install examples. Check how the development command accepts server arguments and environment variables, then document the supported invocation or explain the limitation and appropriate alternative. Done means a newcomer can run a development server with the needed configuration from the updated instructions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100