Skip to content

Development

  • Python 3.14+ with uv
  • Docker - required for integration tests (testcontainers)
  • Supabase CLI - brew install supabase/tap/supabase
  • Google Cloud OAuth client configured with localhost redirect URIs (see Google Cloud prerequisites)
  1. Clone your fork and install dependencies:
Terminal window
git clone https://github.com/<your-username>/protocol.git
cd protocol/server
uv sync
  1. Copy .env.example to .env and fill in your values:
Terminal window
cp .env.example .env
  1. Link and push database migrations (if not done already):
Terminal window
supabase login
supabase link --project-ref <project-ref>
supabase db push

VSCode: Open the project, press F5 (or Run → Start Debugging). The launch config (.vscode/launch.json) loads .env automatically and starts the server with the debugger attached.

Terminal:

Terminal window
cd server
uv run main.py

The server starts at http://localhost:8000.

  1. Run MCP Inspector locally:
Terminal window
npx @modelcontextprotocol/inspector
  1. Set the connection URL to http://localhost:8000/mcp
  2. Authenticate using "OAuth Authentication" - "Quick OAuth Flow"
  3. Click Connect
  4. Use Inspector to query Resources, Tools, Prompts, etc.