Documentation

SDK & API

Client hooks, MCP tools, and server endpoints for embedding YieldPilot on Pika Vault.

MCP Tool Endpoints

  • POST /tools/forecast_refunds_24h
  • POST /tools/compute_reserve_and_sweep
  • POST /tools/quote_exit_paths
  • POST /tools/execute_best_exit
  • POST /tools/post_journal

Client Hooks (Web)

const { data: quotes } = useQuotes(amountUSDC6);
const best = pickBest(quotes);
await executeBestExit(quotes, amountUSDC6, address);

Server Endpoints

  • /stripe/webhook — payment/refund events.
  • /shopify/webhook — optional parity.