From c651d409b70b4daf854eec396b344f022b6e19b7 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 6 Jan 2025 09:39:34 +0000 Subject: [PATCH 1/2] 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 --- src/mcp/cli/claude.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mcp/cli/claude.py b/src/mcp/cli/claude.py index 85223805..1df71c1a 100644 --- a/src/mcp/cli/claude.py +++ b/src/mcp/cli/claude.py @@ -8,6 +8,8 @@ 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) From 0907378f046716d1a04bd78d43ef98daf3721ee1 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 6 Jan 2025 10:13:06 +0000 Subject: [PATCH 2/2] chore: add .DS_Store to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 82f92755..f27f8954 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod]