Development
Setup
sh
pnpm installRequirements:
- Node.js 20+
pnpm10+
Commands
sh
pnpm format
pnpm lint
pnpm test
pnpm buildFor local docs development:
sh
pnpm docs:dev
pnpm docs:build
pnpm docs:previewFor MCP smoke checks:
sh
pnpm smoke
pnpm smoke:edgeSet MCP_ENDPOINT to test a non-default endpoint:
sh
MCP_ENDPOINT=http://localhost:3030/mcp pnpm smokeProject Shape
src/mcp.ts: shared MCP server and tool registrationsrc/server.ts: local Express Streamable HTTP adaptersrc/worker.ts: Cloudflare Worker adaptersrc/climatenet.ts: ClimateNet API client and normalization helperstests/: Vitest unit and integration testsdocs/: VitePress documentation site
Hooks
This repo uses Husky and lint-staged. The pre-commit hook runs oxfmt on staged files.