HomeOpen Console
Using the API

MCP server

Endpoint

POST /mcp speaks the Model Context Protocol over Streamable HTTP with JSON responses (protocol version 2025-06-18). An agent can list the islands and ask one without knowing our API.

Tools

ToolInputReturns
list_islandsnoneid, title, tokens and source of each island
ask_islandisland, questionthe answer as text, with usage and prefill in structuredContent

Client config

{ "mcpServers": { "prefill": { "type": "http", "url": "https://<gateway>/mcp", "headers": { "Authorization": "Bearer pf_..." } } } }
curl https://<gateway>/mcp -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call", "params":{"name":"ask_island","arguments":{"island":"uniswap-v4","question":"What is flash accounting?"}}}'