Skip to content

Commit 4381801

Browse files
chore: Added MCP registry publishing workflows to GH actions (#148)
1 parent ff5bafc commit 4381801

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,16 @@ jobs:
103103
--title "Release ${{ steps.version.outputs.tag }}" \
104104
--notes-file release_body.md
105105
fi
106+
107+
# From https://github.com/modelcontextprotocol/registry/blob/main/docs/guides/publishing/github-actions.md
108+
- name: Install MCP Publisher
109+
run: |
110+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
111+
112+
# Login to GitHub - apparently this works out of the box with GH Workflows
113+
- name: Login to MCP Registry
114+
run: ./mcp-publisher login github-oidc
115+
116+
# Publish the package to the MCP Registry
117+
- name: Publish to MCP Registry
118+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)