Skip to content

Commit 11cd244

Browse files
committed
feat: publish to registry
1 parent 8785ad2 commit 11cd244

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

.changeset/sad-ways-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/mcp': minor
3+
---
4+
5+
feat: publish to registry

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,16 @@ jobs:
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
NPM_CONFIG_PROVENANCE: true
59+
60+
- name: Publish to MCP Registry
61+
if: steps.changesets.outputs.published == 'true'
62+
working-directory: packages/mcp-stdio
63+
run: |
64+
# Download MCP Publisher pinned to v1.2.3
65+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.2.3/mcp-publisher_1.2.3_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
66+
67+
# Login using GitHub OIDC
68+
./mcp-publisher login github-oidc
69+
70+
# Publish to MCP Registry
71+
./mcp-publisher publish

packages/mcp-stdio/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.3",
44
"type": "module",
55
"license": "MIT",
6+
"mcpName": "io.github.sveltejs/svelte",
67
"homepage": "https://github.com/sveltejs/mcp#readme",
78
"bugs": {
89
"url": "https://github.com/sveltejs/mcp/issues"

packages/mcp-stdio/server.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3+
"name": "io.github.sveltejs/svelte",
4+
"description": "The official Svelte MCP server providing docs and autofixing tools for Svelte development",
5+
"repository": {
6+
"id": "1054419133",
7+
"url": "https://github.com/sveltejs/mcp",
8+
"subfolder": "packages/mcp-stdio",
9+
"source": "github"
10+
},
11+
"version": "0.1.0",
12+
"websiteUrl": "https://svelte.dev/docs/mcp/overview",
13+
"packages": [
14+
{
15+
"registryType": "npm",
16+
"identifier": "@sveltejs/mcp",
17+
"version": "0.1.0",
18+
"runtimeHint": "npx",
19+
"transport": {
20+
"type": "stdio"
21+
}
22+
}
23+
],
24+
"remotes": [
25+
{
26+
"url": "https://mcp.svelte.dev/mcp",
27+
"type": "streamable-http"
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)