Skip to content

Commit d1d2c28

Browse files
committed
chore: bump version; update GitHub workflow
Signed-off-by: Rai Siqueira <rai93siqueira@gmail.com>
1 parent 23ecbdc commit d1d2c28

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

.github/workflows/publish.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,57 @@ jobs:
9999
# Automatically generates PEP 740 attestations (like npm provenance)
100100
- name: Publish to PyPI
101101
uses: pypa/gh-action-pypi-publish@release/v1
102+
103+
# Job 4: Publish to MCP Registry
104+
# Runs after successful PyPI publication
105+
publish-to-mcp-registry:
106+
name: Publish to MCP Registry
107+
needs: [publish-to-pypi]
108+
runs-on: ubuntu-latest
109+
110+
# Required permission for OIDC authentication with MCP Registry
111+
permissions:
112+
id-token: write
113+
contents: read
114+
115+
steps:
116+
# Check out the repository to access server.json
117+
- name: Check out repository
118+
uses: actions/checkout@v4
119+
120+
# Extract version from git tag (removes 'v' prefix)
121+
# e.g., v0.1.1 -> 0.1.1
122+
- name: Extract version from tag
123+
id: version
124+
run: |
125+
VERSION=${GITHUB_REF#refs/tags/v}
126+
echo "version=$VERSION" >> $GITHUB_OUTPUT
127+
echo "Publishing version: $VERSION"
128+
129+
# Update server.json with the current version
130+
# This ensures the MCP registry knows which PyPI version to use
131+
- name: Update server.json version
132+
run: |
133+
VERSION="${{ steps.version.outputs.version }}"
134+
# Update both top-level version and package version
135+
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/g" server.json
136+
echo "Updated server.json:"
137+
cat server.json
138+
139+
# Install MCP Publisher CLI
140+
# Downloads the latest release from GitHub
141+
- name: Install MCP Publisher
142+
run: |
143+
curl -fsSL https://github.com/modelcontextprotocol/publisher/releases/latest/download/mcp-publisher-linux-amd64 -o mcp-publisher
144+
chmod +x mcp-publisher
145+
./mcp-publisher --version
146+
147+
# Authenticate with GitHub using OIDC
148+
# No secrets needed - uses GitHub's identity token
149+
- name: Login to MCP Registry
150+
run: ./mcp-publisher login github-oidc
151+
152+
# Publish the server to the MCP Registry
153+
# This makes it discoverable at registry.modelcontextprotocol.io
154+
- name: Publish to MCP Registry
155+
run: ./mcp-publisher publish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "django-telescope"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "A Model Context Protocol (MCP) server for Django applications, inspired by Laravel Boost"
55
readme = "README.md"
66
authors = [

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/raisiqueira/django-telescope",
77
"source": "github"
88
},
9-
"version": "0.1.1",
9+
"version": "0.1.2",
1010
"packages": [
1111
{
1212
"registryType": "pypi",
1313
"identifier": "django-telescope",
14-
"version": "0.1.1",
14+
"version": "0.1.2",
1515
"transport": {
1616
"type": "stdio"
1717
},

0 commit comments

Comments
 (0)