diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e5a541..623906e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,3 +24,22 @@ jobs: - run: npm run build - run: npm test - run: npm publish --provenance --access public + + # Publish the listing to the official MCP Registry + # (registry.modelcontextprotocol.io) under the io.pasteapp/paste namespace. + # Auth is domain-based: the registry verifies the Ed25519 key served at + # https://pasteapp.io/.well-known/mcp-registry-auth against a signature + # made with MCP_REGISTRY_PRIVATE_KEY. The well-known file must be live + # before this runs. The npm step above must have published this version, + # which carries the matching `mcpName` for package validation. + - name: Sync server.json version to package.json + run: | + VERSION="$(jq -r .version package.json)" + jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > server.tmp + mv server.tmp server.json + - name: Install mcp-publisher + run: curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + - name: Authenticate to the MCP Registry (pasteapp.io domain auth) + run: ./mcp-publisher login http --domain pasteapp.io --private-key "${{ secrets.MCP_REGISTRY_PRIVATE_KEY }}" + - name: Publish server to the MCP Registry + run: ./mcp-publisher publish diff --git a/package.json b/package.json index aa02b37..7e86ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@pasteapp/mcp", - "version": "0.1.1", + "version": "0.1.2", + "mcpName": "io.pasteapp/paste", "description": "Local MCP server bridge for Paste — give Claude Desktop, Claude Code, Cursor, Codex, and other AI tools access to your Mac clipboard history and pinboards.", "keywords": [ "mcp", diff --git a/server.json b/server.json new file mode 100644 index 0000000..5a4d57b --- /dev/null +++ b/server.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.pasteapp/paste", + "description": "Give AI tools access to your Mac clipboard history and pinboards from Paste. Runs locally.", + "version": "0.1.2", + "websiteUrl": "https://pasteapp.io/mcp", + "repository": { + "url": "https://github.com/pasteapp/paste-mcp", + "source": "github" + }, + "packages": [ + { + "registryType": "npm", + "identifier": "@pasteapp/mcp", + "version": "0.1.2", + "transport": { + "type": "stdio" + } + } + ] +}