Skip to content

[docs] How to run FastMCP with args or env vars? #339

@exeex

Description

@exeex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featuredocumentationImprovements or additions to documentationready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions