Skip to content

feat: support env vars in dev command#2529

Open
HenryLee789 wants to merge 4 commits intomodelcontextprotocol:mainfrom
HenryLee789:codex/dev-env-vars
Open

feat: support env vars in dev command#2529
HenryLee789 wants to merge 4 commits intomodelcontextprotocol:mainfrom
HenryLee789:codex/dev-env-vars

Conversation

@HenryLee789
Copy link
Copy Markdown

Summary

  • add --env-var/-v and --env-file/-f support to mcp dev
  • share environment collection logic with mcp install
  • document env var usage in the README and add CLI helper tests

Fixes #339

Testing

  • uv run pytest tests/cli/test_utils.py -q
  • uv run ruff check src/mcp/cli/cli.py tests/cli/test_utils.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant