Skip to content

Commit 131515c

Browse files
authored
Merge pull request #822 from upstash/fix/registery-publish
2 parents ebcbeaa + 56f1c98 commit 131515c

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Release
1111
runs-on: ubuntu-latest
1212
permissions:
13-
id-token: write # Required for OIDC authentication with MCP Registry
13+
id-token: write # Required for OIDC authentication with MCP Registry
1414
contents: read
1515
steps:
1616
- name: Checkout Repo
@@ -41,6 +41,10 @@ jobs:
4141
run: |
4242
sed -i "s/version: \"[0-9]*\.[0-9]*\.[0-9]*\"/version: \"${{ env.VERSION }}\"/" src/index.ts
4343
44+
- name: Update package version in server.json
45+
run: |
46+
echo $(jq --arg v "${{ env.VERSION }}" '(.packages[0].version) = $v' server.json) > server.json
47+
4448
- name: Install Dependencies
4549
run: bun install
4650

@@ -69,7 +73,7 @@ jobs:
6973
- name: Install MCP Publisher
7074
if: "!github.event.release.prerelease"
7175
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
76+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.3.3/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
7377
7478
- name: Login to MCP Registry
7579
if: "!github.event.release.prerelease"

‎gemini-extension.json‎

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
{
2-
"name": "context7",
3-
"description": "Up-to-date code docs for any prompt",
4-
"version": "1.0.0",
5-
"mcpServers": {
6-
"context7": {
7-
"command": "npx",
8-
"args": [
9-
"-y",
10-
"@upstash/context7-mcp",
11-
"--api-key",
12-
"${CONTEXT7_API_KEY}"
13-
]
14-
}
2+
"name": "context7",
3+
"description": "Up-to-date code docs for any prompt",
4+
"version": "1.0.0",
5+
"mcpServers": {
6+
"context7": {
7+
"command": "npx",
8+
"args": ["-y", "@upstash/context7-mcp", "--api-key", "${CONTEXT7_API_KEY}"]
159
}
16-
}
10+
}
11+
}

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@upstash/context7-mcp",
33
"version": "1.0.0",
4+
"mcpName": "io.github.upstash/context7",
45
"description": "MCP server for Context7",
56
"scripts": {
67
"test": "echo \"Error: no test specified\" && exit 1",

‎server.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
]
4242
}
4343
]
44-
}
44+
}

0 commit comments

Comments
 (0)