diff --git a/.github/workflows/mcp-registry.yml b/.github/workflows/mcp-registry.yml new file mode 100644 index 0000000..35e6664 --- /dev/null +++ b/.github/workflows/mcp-registry.yml @@ -0,0 +1,24 @@ +name: MCP registry +# Publishes server.json (the hosted server at mcp.openapi.com) to the official +# MCP registry as io.github.openapi/mcp-server, authenticated with GitHub OIDC. +on: + release: + types: [published] + workflow_dispatch: +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + # server.json always follows the version in pyproject.toml. + - run: | + version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])') + jq --arg v "$version" '.version = $v' server.json > server.tmp + mv server.tmp server.json + - run: | + curl -fsSL https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz | tar xz mcp-publisher + ./mcp-publisher login github-oidc + ./mcp-publisher publish diff --git a/glama.json b/glama.json new file mode 100644 index 0000000..da3474f --- /dev/null +++ b/glama.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://glama.ai/mcp/schemas/server.json", + "maintainers": ["francescobianco"] +} diff --git a/server.json b/server.json new file mode 100644 index 0000000..187eb64 --- /dev/null +++ b/server.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.github.openapi/mcp-server", + "title": "Openapi®", + "description": "Official Openapi® MCP server: Italian company data, PEC, SMS, vehicles, geocoding and more APIs.", + "repository": { + "url": "https://github.com/openapi/mcp-server", + "source": "github" + }, + "websiteUrl": "https://openapi.com/", + "version": "0.3.1", + "remotes": [ + { + "type": "streamable-http", + "url": "https://mcp.openapi.com/", + "headers": [ + { + "name": "Authorization", + "description": "Openapi® Bearer token, created at https://console.openapi.com/oauth with the scopes you need", + "value": "Bearer {token}", + "isRequired": true, + "isSecret": true, + "variables": { + "token": { + "description": "Openapi® Bearer token", + "isRequired": true, + "isSecret": true + } + } + } + ] + } + ] +}