Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added server.json for official MCP registry
  • Loading branch information
Dusan Vystrcil authored and Dusan Vystrcil committed Sep 18, 2025
commit 7bacdcbae61b5cac1028b175aa91e6be08b8aae4
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,43 @@ jobs:
- name: Publish to NPM
run: npm publish --tag latest

publish_to_mcp_registry:
name: Publish to MCP Registry
needs: [ release_metadata, update_changelog, publish_to_npm ]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.update_changelog.outputs.changelog_commitish }}
- name: Verify commit SHA
run: |
CURRENT_SHA=$(git rev-parse HEAD)
EXPECTED_SHA="${{ needs.update_changelog.outputs.changelog_commitish }}"
echo "Expected commit SHA: $EXPECTED_SHA"
echo "Actual checked out SHA: $CURRENT_SHA"
if [ "$EXPECTED_SHA" != "$CURRENT_SHA" ]; then
echo "ERROR: Checked out SHA differs from expected!"
exit 1
else
echo "✓ Commit SHA matches expected"
fi
- name: Update server.json version
run: |
EXPECTED_VERSION="${{ needs.release_metadata.outputs.version_number }}"
jq --arg version "$EXPECTED_VERSION" '.version = $version | .packages[0].version = $version' server.json > server.json.tmp && mv server.json.tmp server.json
echo "Updated server.json to version $EXPECTED_VERSION"
- name: Install MCP Publisher
run: |
curl -L "https://github.com/modelcontextprotocol/publisher/releases/latest/download/mcp-publisher-linux-x64.tar.gz" | tar xz
chmod +x mcp-publisher
- name: Login to MCP Registry
run: ./mcp-publisher login github-oidc
- name: Publish to MCP Registry
run: ./mcp-publisher publish

env:
NODE_AUTH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ storage/key_value_stores/default/*
.venv
.env
.aider*

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.4.10",
"type": "module",
"description": "Apify MCP Server",
"mcpName": "com.apify/apify-mcp-server",
"engines": {
"node": ">=18.0.0"
},
Expand Down
31 changes: 31 additions & 0 deletions server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
"name": "com.apify/apify-mcp-server",
"description": "Apify MCP Server providing access to thousands of web scraping and automation tools from Apify Store",
"status": "active",
"repository": {
"url": "https://github.com/apify/apify-mcp-server",
"source": "github"
},
"version": "0.4.10",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to update this value too? Is there some simple way?
If not, let's push it now and we will automate it later

"packages": [
{
"registry_type": "npm",
"registry_base_url": "https://registry.npmjs.org",
"identifier": "@apify/actors-mcp-server",
"version": "0.4.10",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, we need to update version (can be automated later)

"transport": {
"type": "stdio"
},
"environment_variables": [
{
"description": "Apify API token for authentication with Apify platform services",
"is_required": false,
"format": "string",
"is_secret": true,
"name": "APIFY_TOKEN"
}
]
}
]
}
Loading