Skip to content

Commit d6e9d5d

Browse files
committed
ci: add MCP Registry publish via GitHub OIDC (bypasses org-membership bug)
Interactive `mcp-publisher login github` under the org namespace (io.github.meridian-silkdev/*) hits a confirmed, currently-open upstream bug (modelcontextprotocol/registry#1537 and others) where the registry never grants org-namespace permission despite verified-public, admin-role org membership. Reported our own repro there. github-oidc verifies the *workflow's* repo identity via GitHub Actions' own OIDC claims rather than checking which orgs the human is a member of, which is a different code path and may not hit the same bug at all - worth testing directly rather than waiting on the upstream fix. continue-on-error is set on the publish step so a still-broken registry never blocks the npm release itself. Also adds server.json (validated against the registry's schema). Claude-Session: https://claude.ai/code/session_01WSckBdQyCcibX87jMdyoLW
1 parent fe97ebf commit d6e9d5d

2 files changed

Lines changed: 58 additions & 1 deletion

File tree

‎.github/workflows/publish.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
contents: read
9-
id-token: write # required for npm Trusted Publishing (OIDC) — no NPM_TOKEN secret needed
9+
id-token: write # required for npm Trusted Publishing AND MCP Registry GitHub-OIDC auth — no secrets needed for either
1010

1111
jobs:
1212
publish:
@@ -33,3 +33,17 @@ jobs:
3333
- name: Ensure npm supports Trusted Publishing
3434
run: npm install -g npm@latest
3535
- run: npm publish --access public --provenance
36+
37+
- name: Install mcp-publisher
38+
run: |
39+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
40+
- name: Sync server.json version to release tag
41+
run: |
42+
VERSION="${{ github.event.release.tag_name }}"
43+
VERSION="${VERSION#v}"
44+
jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > server.tmp && mv server.tmp server.json
45+
- name: Authenticate to MCP Registry (GitHub OIDC — bypasses the org-membership 403 bug tracked in modelcontextprotocol/registry#1537, since it verifies the workflow's repo identity, not the human's org list)
46+
run: ./mcp-publisher login github-oidc
47+
- name: Publish server to MCP Registry
48+
run: ./mcp-publisher publish
49+
continue-on-error: true # remove once modelcontextprotocol/registry#1537 is confirmed fixed or this OIDC path is confirmed to work

‎server.json‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3+
"name": "io.github.meridian-silkdev/meridian-mcp",
4+
"description": "MCP server for Meridian: services, requests, workflow, payments, meetings for founders.",
5+
"repository": {
6+
"url": "https://github.com/meridian-silkdev/meridian-mcp",
7+
"source": "github"
8+
},
9+
"version": "0.1.0",
10+
"packages": [
11+
{
12+
"registryType": "npm",
13+
"identifier": "@meridiantoolkit/mcp",
14+
"version": "0.1.0",
15+
"transport": {
16+
"type": "stdio"
17+
},
18+
"environmentVariables": [
19+
{
20+
"description": "Meridian app base URL (defaults to http://localhost:3000)",
21+
"isRequired": false,
22+
"format": "string",
23+
"isSecret": false,
24+
"name": "MERIDIAN_API_URL"
25+
},
26+
{
27+
"description": "mrd_ API key for authenticated REST calls. Without it, every tool still responds in dry-run mode with a placeholder hint.",
28+
"isRequired": false,
29+
"format": "string",
30+
"isSecret": true,
31+
"name": "MERIDIAN_API_KEY"
32+
},
33+
{
34+
"description": "Log level: debug, info, warn, or error (default info)",
35+
"isRequired": false,
36+
"format": "string",
37+
"isSecret": false,
38+
"name": "MERIDIAN_MCP_LOG_LEVEL"
39+
}
40+
]
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)