Skip to content

Commit 1364857

Browse files
committed
chore(release): sync server.json to 1.0.101 and enforce parity with pyproject.toml in CI
server.json had drifted to 1.0.93 while pyproject.toml is at 1.0.101. The MCP Registry publish step has been failing with cannot publish duplicate version on every release since (v1.0.99, .100, .101 all rejected) because the registry already has 1.0.93 from a prior publish. Catch server.json up to 1.0.101 and replace the no-op validate-version CI step with a real check that fails the build when pyproject.toml and server.json versions diverge.
1 parent 7d14226 commit 1364857

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ jobs:
4949
with:
5050
python-version: "3.10"
5151

52-
- name: Check version bump
52+
- name: Check pyproject.toml and server.json versions match
5353
run: |
54-
# This is a simple check - you might want to make it more sophisticated
55-
echo "Current version in pyproject.toml:"
56-
grep "version = " pyproject.toml
54+
PY_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
55+
JSON_VERSION=$(python -c "import json; print(json.load(open('server.json'))['version'])")
56+
echo "pyproject.toml version: $PY_VERSION"
57+
echo "server.json version: $JSON_VERSION"
58+
if [ "$PY_VERSION" != "$JSON_VERSION" ]; then
59+
echo "::error::pyproject.toml ($PY_VERSION) and server.json ($JSON_VERSION) must match. Bump both."
60+
exit 1
61+
fi

‎server.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
33
"name": "co.pipeboard/meta-ads-mcp",
44
"description": "Facebook / Meta Ads automation with AI: analyze performance, test creatives, optimize spend.",
5-
"version": "1.0.93",
5+
"version": "1.0.101",
66
"remotes": [
77
{
88
"type": "streamable-http",

0 commit comments

Comments
 (0)