Repo Build & Publish
Build, test, and publish the pokemon-pocket-mcp-server npm package.
Commands
# Type check all workspaces
bun run typecheck
# Build MCP server (copies CSV + compiles TS)
bun run build
# Run tests
cd mcp-server && bun test
# Run MCP server locally (dev mode)
cd mcp-server && bun run dev
# Manual server test
cd mcp-server && bun run test:manual
Build Process
prebuild— copiesdata/pokemon_pocket_cards.csvtomcp-server/data/tsc— compilesmcp-server/src/→mcp-server/dist/- Output:
dist/index.js(standalone entry point)
Publishing
Package: pokemon-pocket-mcp-server
Manual:
cd mcp-server
bun run build
npm publish
Automatic (CI/CD):
- Push to
master/maintriggers.github/workflows/release.yml - Semantic release auto-versions based on conventional commits
- Requires
NPM_TOKENsecret in GitHub
Claude Desktop Config
After publishing, users configure:
{
"mcpServers": {
"pokemon-pocket": {
"command": "npx",
"args": ["pokemon-pocket-mcp-server"]
}
}
}
For local development:
{
"mcpServers": {
"pokemon-pocket": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/dist/index.js"]
}
}
}
Pre-Release Checklist
-
bun run typecheckpasses -
bun run buildsucceeds -
cd mcp-server && bun testpasses - CSV data fresh (
bun run scrapeif needed) - Commit uses conventional commit format (
feat:,fix:,chore:)
CI Pipeline
.github/workflows/release.yml: Checkout → Setup Bun → Install → Typecheck → Build → Semantic Release