Repository navigation
v2.0.0 — Documentation + Agent Intelligence Layer
Live: https://libwatch.vercel.app
New: Documentation API
GET /api/library-docs?library=<name>— README + CHANGELOG for any npm package or GitHub repo (owner/repo). Falls back to GitHub raw when the npm registry omits its readme field. 5-minute cache.GET /api/library-resolve?q=<query>&limit=<n>— ranked library search across npm registry and GitHub repositories. 60-second cache.
New: MCP tool server (POST /api/mcp)
- Stateless Streamable-HTTP JSON-RPC endpoint for AI coding agents (Cursor, Claude Code, Codex, etc.)
resolve-library-id— finds the right library from a natural-language queryquery-docs— fetches current documentation for a specific library- Supports protocol versions 2024-11-05 / 2025-03-26 / 2025-06-18
New: Docs panel in the dashboard
- Resource inspector now has Metadata / Docs / Raw tabs
- Docs tab renders README + CHANGELOG inline via react-markdown + remark-gfm
- Raw tab shows the exact JSON payload for inspection
Architecture
server/cache.ts— generic in-memory cache helpers (per-key TTL)server/registry.ts— shared docs + resolution providers (npm + GitHub) used by REST and MCPserver/mcp.ts— stateless JSON-RPC handler (no long-lived sessions required for serverless)- Permissive CORS headers added globally for API + MCP clients
Config agent example (mcpServers)
{ libwatch: { url: https://libwatch.vercel.app/api/mcp } }