From 552f797ac367236b8ff02ea54744bd6e4dca57f7 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 23 Dec 2024 16:43:32 +0000 Subject: [PATCH 1/5] build: bump version to v1.2.0rc1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8e487f4..2530466 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mcp" -version = "1.2.0.dev0" +version = "1.2.0rc1" description = "Model Context Protocol SDK" readme = "README.md" requires-python = ">=3.10" From 435cdda43cfd5c0da2c5af05daf9c25d19bf7221 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Fri, 3 Jan 2025 16:10:46 +0000 Subject: [PATCH 2/5] release: Prepare v1.2.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b8d717a..ddfa725 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mcp" -version = "1.2.0rc1" +version = "1.2.0" description = "Model Context Protocol SDK" readme = "README.md" requires-python = ">=3.10" From af940aeea7abf8454c811b22c6b90372127bb3ea Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Fri, 3 Jan 2025 16:15:00 +0000 Subject: [PATCH 3/5] ci: Run main checks on tags --- .github/workflows/main-checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index ae19fb7..6f38043 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -4,7 +4,9 @@ on: push: branches: - main - - 'v*.*.*' + - "v*.*.*" + tags: + - "v*.*.*" jobs: checks: From e8dd39f83973c329fa89dccda30574d258578f39 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 6 Jan 2025 09:39:34 +0000 Subject: [PATCH 4/5] 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 8522380..1df71c1 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 6a806549c83409d8a5a470e36546ea71622dcd08 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 6 Jan 2025 10:13:06 +0000 Subject: [PATCH 5/5] chore: add .DS_Store to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 82f9275..f27f895 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod]