From 566dfa901c6ae3dd874ffb7d8cc020f9d6937b10 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 28 Sep 2025 08:08:30 +0530 Subject: [PATCH] fix: mcp registry file --- .github/workflows/publish-mcp.yml | 27 ------------------- .github/workflows/publish.yml | 23 +++++++++++++++- pyproject.toml | 2 +- server.json | 45 +++++-------------------------- 4 files changed, 29 insertions(+), 68 deletions(-) delete mode 100644 .github/workflows/publish-mcp.yml diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml deleted file mode 100644 index 58ab85a..0000000 --- a/.github/workflows/publish-mcp.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Publish to MCP Registry - -on: - release: - types: [published] - -jobs: - publish-mcp: - name: Publish to MCP Registry - runs-on: ubuntu-latest - permissions: - id-token: write # Required for OIDC authentication - contents: read - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Install MCP Publisher - run: | - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.1.0/mcp-publisher_1.1.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher - chmod +x mcp-publisher - - - name: Login to MCP Registry - run: ./mcp-publisher login github-oidc - - - name: Publish to MCP Registry - run: ./mcp-publisher publish diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index decda39..af001c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,4 +28,25 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: twine upload dist/* \ No newline at end of file + run: twine upload dist/* + + publish-mcp: + name: Publish to MCP Registry + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Install MCP Publisher + run: | + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.1.0/mcp-publisher_1.1.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + chmod +x mcp-publisher + + - name: Login to MCP Registry + run: ./mcp-publisher login github-oidc + + - name: Publish to MCP Registry + run: ./mcp-publisher publish diff --git a/pyproject.toml b/pyproject.toml index b50d4d8..ff41782 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mcp-server-appwrite" -version = "0.2.2" +version = "0.2.3" description = "MCP (Model Context Protocol) server for Appwrite" readme = "README.md" requires-python = ">=3.12" diff --git a/server.json b/server.json index bfa1cec..6b7a4b8 100644 --- a/server.json +++ b/server.json @@ -1,54 +1,21 @@ { + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-16/server.schema.json", "name": "io.github.appwrite/mcp-for-api", "description": "MCP (Model Context Protocol) server for Appwrite", - "version": "0.2.2", - "author": "Appwrite", - "license": "MIT", - "homepage": "https://github.com/appwrite/mcp-for-api", + "version": "0.2.3", + "websiteUrl": "https://github.com/appwrite/mcp-for-api", "repository": { - "type": "git", - "url": "https://github.com/appwrite/mcp-for-api.git", - "source": "https://github.com/appwrite/mcp-for-api" + "url": "https://github.com/appwrite/mcp-for-api", + "source": "github" }, "packages": [ { - "version": "0.2.2", + "version": "0.2.3", "registryType": "pypi", "identifier": "mcp-server-appwrite", "transport": { "type": "stdio" } } - ], - "capabilities": { - "tools": true - }, - "command": { - "type": "pip", - "package": "mcp-server-appwrite", - "command": "mcp-server-appwrite" - }, - "environment": { - "APPWRITE_PROJECT_ID": { - "description": "Your Appwrite project ID", - "required": true - }, - "APPWRITE_API_KEY": { - "description": "Your Appwrite API key with necessary scopes", - "required": true - }, - "APPWRITE_ENDPOINT": { - "description": "Your Appwrite endpoint URL (optional, defaults to cloud.appwrite.io)", - "required": false, - "default": "https://cloud.appwrite.io/v1" - } - }, - "keywords": [ - "mcp", - "model-context-protocol", - "appwrite", - "database", - "backend", - "api" ] }