# MCP Knowledge Base API This is a Model Context Protocol (MCP) server for managing coding knowledge. ## Endpoints - `POST /mcp` - Main MCP protocol endpoint - `GET /health` - Health check - `GET /docs` - This documentation ## MCP Methods - `tools/list` - List available tools - `tools/call` - Execute a tool - `search` - Search the knowledge base - `store` - Store new knowledge ## Headers - `mcp-session-id` - Session identifier for stateful operations - `Content-Type: application/json` ## Environment Variables Set these in your Cloudflare Worker: - `SUPABASE_URL` - Your Supabase project URL - `SUPABASE_ANON_KEY` - Supabase anonymous key - `OPENAI_API_KEY` - OpenAI API key for embeddings Deployed at: 2025-11-28T07:59:19.108Z