Skip to content

Commit 469b207

Browse files
Merge pull request #59 from sveltejs/use-dns-mcp-publish
2 parents e12a0c9 + fc39b44 commit 469b207

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.changeset/curly-pets-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/mcp': patch
3+
---
4+
5+
fix: use DNS to publish MCP

.github/workflows/publish-mcp.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Publish to MCP Registry
33
on:
44
workflow_call:
55

6-
permissions:
7-
id-token: write # OpenID Connect token needed for MCP registry authentication
8-
96
jobs:
107
publish-mcp:
118
name: Publish to MCP Registry
@@ -16,6 +13,8 @@ jobs:
1613

1714
- name: Publish to MCP Registry
1815
working-directory: packages/mcp-stdio
16+
env:
17+
MCP_KEY: ${{ secrets.MCP_KEY }}
1918
run: |
2019
NAME=mcp-publisher_1.2.3_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz
2120
# Download MCP Publisher pinned to v1.2.3 using latest https for security and save it to a file named mcp-publisher.tar.gz
@@ -31,8 +30,8 @@ jobs:
3130
# Install the MCP Publisher binary
3231
install -m 0755 tmp/mcp-publisher .
3332
34-
# Login using GitHub OIDC
35-
./mcp-publisher login github-oidc
33+
# Login using DNS
34+
./mcp-publisher login dns --domain svelte.dev --private-key "${MCP_KEY}"
3635
3736
# Publish to MCP Registry
3837
./mcp-publisher publish

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,4 @@ jobs:
6464
publish-mcp:
6565
needs: release
6666
if: needs.release.outputs.published == 'true'
67-
permissions:
68-
id-token: write
6967
uses: ./.github/workflows/publish-mcp.yml

packages/mcp-stdio/server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3-
"name": "io.github.sveltejs/svelte",
3+
"name": "dev.svelte/mcp",
44
"description": "The official Svelte MCP server providing docs and autofixing tools for Svelte development",
55
"repository": {
66
"id": "1054419133",

0 commit comments

Comments
 (0)