Skip to main content
Glama
publish-npm.yml984 B
name: Publish to npm registry on: push: branches: - main # Trigger on pushes to the main branch jobs: build-and-publish: name: Publish to npm runs-on: ubuntu-latest steps: # Step 1: Checkout the repository - uses: actions/checkout@v4 # Step 2: Set up Node.js - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' # Step 3: Install dependencies - name: Install dependencies run: npm install # Step 4: Build the project - name: Build run: npm run build # Step 5: Ensure correct npm registry - name: Ensure correct npm registry run: npm config set registry https://registry.npmjs.org/ # Step 6: Publish to npm - name: Publish to npm run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

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/gitmotion/ntfy-me-mcp'

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