Skip to main content
Glama
publish.yml1.67 kB
name: Publish on: release: types: [published] jobs: publish-npm: runs-on: ubuntu-latest permissions: contents: read id-token: write # Needed for npm provenance steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: '22' registry-url: 'https://registry.npmjs.org/' - run: npm ci - run: npm run build - run: npm run lint - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_MCP_WRITE }} publish-mcp: runs-on: ubuntu-latest needs: publish-npm permissions: id-token: write # Required for GitHub OIDC authentication contents: read steps: - name: Checkout code uses: actions/checkout@v6 - name: Sync version in server.json with package.json # Just in case the version is not in sync run: | VERSION=$(node -p "require('./package.json').version") echo "Syncing version to: $VERSION" jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp.json && mv tmp.json server.json echo "Updated server.json:" cat 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: Login to MCP Registry run: ./mcp-publisher login github-oidc - name: Publish to MCP Registry run: ./mcp-publisher publish

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProfessionalWiki/MediaWiki-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server