Skip to content

Commit 9df4308

Browse files
authored
Merge pull request #778 from upstash/feat/mcp-registery
2 parents b9a0c6d + ffee8c8 commit 9df4308

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

‎.github/workflows/release.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write # Required for OIDC authentication with MCP Registry
14+
contents: read
1215
steps:
1316
- name: Checkout Repo
1417
uses: actions/checkout@v3
@@ -58,3 +61,20 @@ jobs:
5861
run: |
5962
npm pkg delete scripts.prepare
6063
npm publish --access public --tag=canary
64+
65+
- name: Validate server.json
66+
if: "!github.event.release.prerelease"
67+
run: npx mcp-registry-validator validate server.json
68+
69+
- name: Install MCP Publisher
70+
if: "!github.event.release.prerelease"
71+
run: |
72+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
73+
74+
- name: Login to MCP Registry
75+
if: "!github.event.release.prerelease"
76+
run: ./mcp-publisher login github-oidc
77+
78+
- name: Publish to MCP Registry
79+
if: "!github.event.release.prerelease"
80+
run: ./mcp-publisher publish

‎server.json‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3+
"name": "io.github.upstash/context7",
4+
"title": "Context7",
5+
"description": "Up-to-date code docs for any prompt",
6+
"repository": {
7+
"url": "https://github.com/upstash/context7",
8+
"source": "github"
9+
},
10+
"version": "1.0.0",
11+
"packages": [
12+
{
13+
"registryType": "npm",
14+
"identifier": "@upstash/context7-mcp",
15+
"version": "1.0.21",
16+
"transport": {
17+
"type": "stdio"
18+
},
19+
"environmentVariables": [
20+
{
21+
"description": "API key for authentication",
22+
"isRequired": false,
23+
"format": "string",
24+
"isSecret": true,
25+
"name": "CONTEXT7_API_KEY"
26+
}
27+
]
28+
}
29+
],
30+
"remotes": [
31+
{
32+
"type": "streamable-http",
33+
"url": "https://mcp.context7.com/mcp",
34+
"headers": [
35+
{
36+
"name": "CONTEXT7_API_KEY",
37+
"description": "API key for authentication",
38+
"isRequired": false,
39+
"isSecret": true
40+
}
41+
]
42+
}
43+
]
44+
}

0 commit comments

Comments
 (0)