Skip to content

Commit f583ba4

Browse files
authored
Hotfix/v2.1.6 (#165)
* hotfix/2.1.6
1 parent f72c69b commit f583ba4

File tree

6 files changed

+32
-41
lines changed

6 files changed

+32
-41
lines changed

.github/workflows/clone-metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Track Clone Metrics via GitHub App
1+
name: Track Clone Metrics
22

33
on:
44
schedule:
5-
- cron: '30 * * * *' # Run every hour at minute 30
5+
- cron: '0 8 * * *' # Run every day at 8am
66
workflow_dispatch:
77

88
jobs:

.github/workflows/download-metrics.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: Track Download Metrics via GitHub App
1+
name: Track Download Metrics
22

33
on:
4-
schedule:
5-
- cron: '30 * * * *' # Run every hour at minute 30
64
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["Track View Metrics"] # exact name of PyPI workflow
7+
types:
8+
- completed
79

810
jobs:
911
download-stats:

.github/workflows/publish_mcp.yml

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ name: Publish MCP Registry
33
on:
44
workflow_dispatch:
55
workflow_run:
6-
workflows: ["Publish PyPI"] # exact name of PyPI workflow
7-
types:
8-
- completed
6+
workflows: ["Publish PyPI"]
7+
types: [completed]
8+
branches: [main]
99

1010
concurrency:
1111
group: publish-${{ github.ref }}
1212
cancel-in-progress: true
1313

1414
jobs:
15-
registry:
15+
on-success:
1616
name: Publish to MCP Registry
1717
runs-on: ubuntu-latest
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1819
permissions:
1920
contents: read
20-
id-token: write # REQUIRED for MCP Registry GitHub OIDC login
21+
id-token: write
2122
steps:
2223
- name: Checkout
2324
uses: actions/checkout@v4
@@ -27,33 +28,21 @@ jobs:
2728
set -e
2829
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
2930
ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
30-
echo "Get the latest release version"
3131
LATEST_VERSION=$(curl -s https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r '.tag_name')
32-
echo "Installing MCP Publisher version: $LATEST_VERSION"
33-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${LATEST_VERSION}/mcp-publisher_${LATEST_VERSION#v}_${OS}_${ARCH}.tar.gz" \
34-
| tar xz mcp-publisher
32+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${LATEST_VERSION}/mcp-publisher_${LATEST_VERSION#v}_${OS}_${ARCH}.tar.gz" | tar xz mcp-publisher
3533
36-
- name: Login to MCP Registry (OIDC)
37-
run: |
38-
echo "Login to MCP Registry (OIDC)"
39-
./mcp-publisher login github-oidc
34+
- name: Login to MCP Registry
35+
run: ./mcp-publisher login github-oidc
4036

41-
- name: Publish server.json to MCP Registry
37+
- name: Publish to MCP Registry
4238
run: |
43-
echo "Publish server.json to MCP Registry"
44-
# Try to publish, with fallback for duplicate version
45-
if ./mcp-publisher publish; then
46-
echo "Successfully published to MCP Registry"
47-
else
48-
PUBLISH_EXIT_CODE=$?
49-
echo "Publish failed with exit code: $PUBLISH_EXIT_CODE"
50-
51-
# Check if it's a duplicate version error
52-
if [ $PUBLISH_EXIT_CODE -ne 0 ]; then
53-
echo "Checking if version already exists in registry..."
54-
55-
# Get current version from server.json
56-
CURRENT_VERSION=$(jq -r '.version' server.json)
57-
echo "Current version: $CURRENT_VERSION"
58-
fi
59-
fi
39+
echo "PyPI workflow succeeded - Publishing to MCP Registry"
40+
./mcp-publisher publish
41+
42+
on-failure:
43+
name: Handle PyPI Failure
44+
runs-on: ubuntu-latest
45+
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
46+
steps:
47+
- name: Log PyPI Failure
48+
run: echo "PyPI workflow failed - MCP Registry publication skipped"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ros-mcp"
3-
version = "2.1.5"
3+
version = "2.1.6"
44
description = "Connect AI Language Models with Robots on ROS using MCP"
55
readme = "README.md"
66
requires-python = ">=3.10"

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"url": "https://github.com/robotmcp/ros-mcp-server",
77
"source": "github"
88
},
9-
"version": "2.1.5",
9+
"version": "2.1.6",
1010
"packages": [
1111
{
1212
"registryType": "pypi",
1313
"registryBaseUrl": "https://pypi.org",
1414
"identifier": "ros-mcp",
15-
"version": "2.1.5",
15+
"version": "2.1.6",
1616
"transport": {
1717
"type": "stdio",
1818
"command": "ros-mcp",

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)