diff --git a/.github/workflows/publish-oss.yml b/.github/workflows/publish-oss.yml new file mode 100644 index 0000000..b6f108a --- /dev/null +++ b/.github/workflows/publish-oss.yml @@ -0,0 +1,29 @@ +name: Publish MCP Server + +on: + push: + tags: + - 'v*.*.*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Update server.json version from tag + run: | + VERSION=${GITHUB_REF_NAME#v} + echo "Updating server.json to version $VERSION" + jq --arg v "$VERSION" '.version = $v' server.json > server.json.tmp && mv server.json.tmp server.json + + - name: Download mcp-publisher + run: | + curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64" -o mcp-publisher + chmod +x mcp-publisher + + - name: Login and Publish to MCP Registry + run: | + ./mcp-publisher login dns --domain webflow.com --private-key ${{ secrets.OSS_PRIVATE_KEY }} + ./mcp-publisher publish diff --git a/.gitignore b/.gitignore index 35c9586..fc7310f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,9 @@ node_modules/ .idea/ .vscode/ .cursor -pnpm-lock.yaml \ No newline at end of file +pnpm-lock.yaml + +# Private keys +key.pem +key.pem.pub +*.pem \ No newline at end of file diff --git a/server.json b/server.json new file mode 100644 index 0000000..53789dc --- /dev/null +++ b/server.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json", + "name": "com.webflow/mcp", + "description": "AI-powered design and management for Webflow Sites", + "repository": { + "url": "https://github.com/webflow/mcp-server", + "source": "github" + }, + "version": "2.0.0", + "remotes": [ + { + "type": "streamable-http", + "url": "https://mcp.webflow.com/mcp" + } + ] +} \ No newline at end of file