mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-20 07:14:24 +01:00
fix: #128 fix package in the generated mcp run config
During `mcp install` we are generating a config that relies on `mcp run`. However `mcp` is only available as a CLI command if we use the `cli` feature. We need to specify that we want to install mcp with the cli feature. Fixes #128
This commit is contained in:
@@ -8,6 +8,8 @@ from mcp.server.fastmcp.utilities.logging import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
MCP_PACKAGE = "mcp[cli]"
|
||||
|
||||
|
||||
def get_claude_config_path() -> Path | None:
|
||||
"""Get the Claude config directory based on platform."""
|
||||
@@ -87,7 +89,7 @@ def update_claude_config(
|
||||
args = ["run"]
|
||||
|
||||
# Collect all packages in a set to deduplicate
|
||||
packages = {"mcp"}
|
||||
packages = {MCP_PACKAGE}
|
||||
if with_packages:
|
||||
packages.update(pkg for pkg in with_packages if pkg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user