{"name":"magpie-x402","version":"0.1.0","description":"x402 payment-required API for the Magpie Capital protocol","docs":"https://github.com/magpiecapital/magpie-x402#readme","endpoints":{"free":["GET /health","GET /.well-known/x402.json","GET /openapi.json","GET /api/v1/pool — live on-chain LendingPool state (15s cache)","GET /api/v1/tiers — protocol tier constants (1h cache)","GET /api/v1/loan/:loanId — single loan by u64 id","GET /api/v1/wallet/:wallet/loans — all loans for a wallet (8s cache)","GET /api/v1/simulate-borrow — preview a loan from caller-supplied prices (free)","GET /api/v1/collateral/eligible — full collateral catalog (1h cache)","GET /api/v1/markets/liquidatable — past-due active loans for liquidation bots (8s cache)","GET /api/v1/agent/activity — anonymized recent borrow/repay/liquidate events (15s cache)","GET /api/v1/agent/protocol-pulse — 24h aggregate volume + counts (30s cache)","GET /api/v1/agent/leaderboard — top wallets by Magpie credit score (60s cache)","GET /api/v1/agent/lp-state?wallet=<pubkey> — depositor position + pool context (10s cache)"],"paid":["GET /api/v1/credit-score?wallet=<pubkey> — 0.001 SOL","GET /api/v1/agent/token-risk?mint=<pubkey> — 0.001 SOL (per-token risk profile)","GET /api/v1/agent/credit-attest?wallet=<pubkey> — 0.0005 SOL (signed, portable)","POST /api/v1/agent/build-borrow — 0.005 SOL (full anti-exploit gate eval)","POST /api/v1/agent/build-repay — 0.002 SOL","POST /api/v1/agent/build-extend — 0.002 SOL","POST /api/v1/agent/build-topup — 0.002 SOL","POST /api/v1/agent/build-partial-repay — 0.002 SOL","POST /api/v1/agent/build-deposit — 0.002 SOL (LP — deposit SOL into the LendingPool)","POST /api/v1/agent/build-withdraw — 0.002 SOL (LP — withdraw shares)","POST /api/v1/agent/build-liquidate — 0.003 SOL (liquidate a past-due loan, receive keeper bounty)","POST /api/v1/agent/intent — 0.01 SOL (conditional borrow, single payment for lifecycle)","GET /api/v1/agent/intent?id=<intent_id> — 0.0005 SOL","GET /api/v1/agent/intents?wallet=<pubkey> — 0.001 SOL"],"examples":"https://github.com/magpiecapital/magpie-x402/tree/main/examples","mcp_server":"https://github.com/magpiecapital/magpie-x402/tree/main/mcp"},"repository":"https://github.com/magpiecapital/magpie-x402"}