We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ankimcp/anki-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Publish to npm (@ankimcp/anki-mcp-server)
on:
push:
tags:
- 'v*'
workflow_dispatch: # Allows manual triggering from GitHub UI
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish to npm as @ankimcp/anki-mcp-server
run: |
VERSION=$(node -p "require('./package.json').version")
echo "Package version: $VERSION"
# Extract prerelease tag (e.g., "beta" from "0.12.0-beta.1")
if [[ "$VERSION" =~ -([a-zA-Z]+) ]]; then
NPM_TAG="${BASH_REMATCH[1]}"
echo "Publishing prerelease to tag: $NPM_TAG"
npm publish --access public --tag "$NPM_TAG"
else
echo "Publishing stable release to latest"
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}