Skip to content

Commit e1797b4

Browse files
committed
chore: publish to MCP registry
1 parent 9204618 commit e1797b4

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
publish:
13+
publish-to-npm:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out repository
@@ -38,3 +38,39 @@ jobs:
3838
- name: Publish
3939
run: |
4040
npm publish --provenance --access public
41+
42+
publish-to-mcp-registry:
43+
runs-on: ubuntu-latest
44+
needs: publish-to-npm
45+
steps:
46+
- name: Check out repository
47+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
48+
with:
49+
fetch-depth: 2
50+
51+
- name: Set up Node.js
52+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
53+
with:
54+
cache: npm
55+
node-version-file: '.nvmrc'
56+
registry-url: 'https://registry.npmjs.org'
57+
58+
# Ensure npm 11.5.1 or later is installed
59+
- name: Update npm
60+
run: npm install -g npm@latest
61+
62+
- name: Install dependencies
63+
run: npm ci
64+
65+
- name: Build
66+
run: npm run build
67+
68+
- name: Install MCP Publisher
69+
run: |
70+
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
71+
72+
- name: Login to MCP Registry
73+
run: ./mcp-publisher login github-oidc
74+
75+
- name: Publish to MCP Registry
76+
run: ./mcp-publisher publish

server.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
3+
"name": "io.github.ChromeDevTools/chrome-devtools-mcp",
4+
"description": "MCP server for Chrome DevTools",
5+
"status": "active",
6+
"repository": {
7+
"url": "https://github.com/ChromeDevTools/chrome-devtools-mcp",
8+
"source": "github"
9+
},
10+
"version": "0.2.1",
11+
"packages": [
12+
{
13+
"registry_type": "npm",
14+
"registry_base_url": "https://registry.npmjs.org",
15+
"identifier": "chrome-devtools-mcp",
16+
"version": "0.2.1",
17+
"transport": {
18+
"type": "stdio"
19+
},
20+
"environment_variables": []
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)