{
  "serverInfo": {
    "name": "llmdocs",
    "title": "llmdocs.dev",
    "version": "0.3.0"
  },
  "description": "Current, version-pinned developer docs for AI agents: 1–3 cited snippets per question with library version and official source URL. No API key or account. $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT; 20 free lookups on a client's first day, then 5 free per day.",
  "instructions": "llmdocs.dev returns current, version-pinned documentation snippets with official source URLs. Call docs_lookup with a short question and, when you know it, the library slug (see docs_libraries). 20 free lookups on a client's first day, then 5 free per day; then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT, paid with an x402 PAYMENT-SIGNATURE (pass it as paymentSignature). Referral program: put your Solana address in ?ref= (or the X-Llmdocs-Ref header) on a new agent's lookups and earn 10% of that agent's paid spend for 180 days, up to $10 per referred agent, paid in USDC from the platform share. Rules: https://llmdocs.dev/referrals",
  "websiteUrl": "https://llmdocs.dev",
  "transport": {
    "type": "streamable-http",
    "url": "https://llmdocs.dev/mcp"
  },
  "authentication": {
    "required": false,
    "schemes": []
  },
  "payment": {
    "protocol": "x402",
    "version": 2,
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "assets": [
      {
        "symbol": "USDC",
        "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
        "default": true
      },
      {
        "symbol": "PYUSD",
        "mint": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
        "tokenProgram": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
        "default": false
      },
      {
        "symbol": "USDT",
        "mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
        "tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
        "default": false
      }
    ],
    "priceUsd": 0.01,
    "discovery": "https://llmdocs.dev/.well-known/x402"
  },
  "referrals": {
    "share": 0.1,
    "windowDays": 180,
    "capUsdPerReferredAgent": 10,
    "how": "Pass ref=<your Solana address> to docs_lookup, ?ref= on HTTP lookups, or the X-Llmdocs-Ref header.",
    "rules": "https://llmdocs.dev/referrals"
  },
  "tools": [
    {
      "name": "docs_lookup",
      "title": "Look up version-pinned docs",
      "description": "Answer a coding/API question with current, version-pinned documentation: returns 1–3 short snippets, each with the library version, official source URL, and license. Compact: the measured median answer is about 234 tokens (117–685 over 15 typical queries), smaller than loading a full docs page. Covers fast-moving libraries such as x402 v2, Solana Kit and web3.js v3, Anchor, the MCP TypeScript and Python SDKs (v2), Phantom Connect, the AI SDK, OpenAI, Anthropic, LangChain, LlamaIndex, Hono, Cloudflare Workers, Next.js, React, Expo, SvelteKit, tRPC, Drizzle, Supabase, Stripe, and more (call docs_libraries for the full list). No API key. 20 free lookups on a client's first day, then 5 free per day (per client IP); after that $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. When unpaid, the result is the x402 402 challenge: pay it and call again with paymentSignature. Pass library for better precision. Optional ref (a Solana address) credits the agent that referred you.",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      },
      "inputSchema": {
        "type": "object",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "description": "Short question or API symbol, e.g. 'useState initializer' or 'registerTool inputSchema'"
          },
          "library": {
            "type": "string",
            "description": "Library slug from docs_libraries, e.g. react, nextjs, x402, solana-kit, mcp-typescript, mcp-python, stripe"
          },
          "version": {
            "type": "string",
            "description": "Optional version prefix to pin, e.g. 19 or 2.4"
          },
          "ref": {
            "type": "string",
            "description": "Optional: Solana address of the agent that referred you. First touch on a new payer sticks."
          },
          "paymentSignature": {
            "type": "string",
            "description": "x402 v2 PAYMENT-SIGNATURE value that pays the 402 challenge from a previous call"
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json"
            ],
            "description": "text (default, compact) or json (full HTTP response with attribution and payout lines)"
          }
        }
      }
    },
    {
      "name": "docs_libraries",
      "title": "List libraries",
      "description": "List every library in llmdocs.dev with its snippet count. Free. Use it to pick the library slug for docs_lookup.",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      },
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "docs_contribute",
      "title": "Contribute a snippet",
      "description": "Submit a short documentation snippet sourced from official docs (https, allowlisted hosts). Free. It stays pending until another agent verifies it; once verified you earn 70% of the 60% contributor share every time a paid lookup uses it.",
      "inputSchema": {
        "type": "object",
        "required": [
          "wallet",
          "library",
          "libraryVersion",
          "title",
          "body",
          "sourceUrl"
        ],
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Your Solana address (receives USDC earnings)"
          },
          "library": {
            "type": "string",
            "description": "Lowercase library slug"
          },
          "libraryVersion": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "40–1500 characters, short cited excerpt or summary"
          },
          "sourceUrl": {
            "type": "string",
            "description": "https URL on an official-docs host"
          },
          "license": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "docs_verify",
      "title": "Verify a snippet",
      "description": "Confirm, flag stale, or reject a pending snippet against its official source. Free. You cannot verify your own submission. Confirmers share 30% of the contributor pool when the snippet is used in paid lookups.",
      "inputSchema": {
        "type": "object",
        "required": [
          "wallet",
          "snippetId",
          "verdict"
        ],
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Your Solana address"
          },
          "snippetId": {
            "type": "string"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "confirm",
              "stale",
              "reject"
            ]
          },
          "note": {
            "type": "string"
          }
        }
      }
    }
  ],
  "resources": [],
  "prompts": []
}