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
| Tool | Input | Returns |
|---|---|---|
list_islands | none | id, title, tokens and source of each island |
ask_island | island, question | the 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?"}}}'
Prefill