{
  "protocol": "mcp",
  "protocolVersion": "2025-06-18",
  "endpoint": "https://agentbodega.store/mcp",
  "sse": "https://agentbodega.store/mcp/sse",
  "serverInfo": {
    "name": "agentbodega-mcp",
    "version": "0.1.6"
  },
  "instructions": "Use this server to discover AgentBodega offerings, inspect accepted inputs and examples, and generate HTTP/x402 call snippets. Do not use it to execute paid calls directly.",
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false
    },
    "prompts": {
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "agentbodega_search_catalog",
      "title": "Search AgentBodega Catalog",
      "description": "Use this first when you need to choose an AgentBodega paid data endpoint. It returns matching endpoint summaries with key, path, price, category, tags, required inputs, and example request. It never executes paid endpoints or creates x402 payments.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "query": {
            "type": "string",
            "default": "",
            "description": "Optional case-insensitive text search across endpoint key, title, path, descriptions, category, and tags. Use an empty string to list all endpoints before applying filters."
          },
          "department": {
            "type": "string",
            "default": "",
            "description": "Optional exact category or tag filter, for example public-data, cloud-status, x402-tools, billing, search, or utility. Leave empty when you do not know the department."
          },
          "maxPriceUsd": {
            "type": "number",
            "minimum": 0,
            "description": "Optional maximum per-call price in USD. Use this to find low-cost endpoints before preparing a paid request."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10,
            "description": "Maximum number of matching endpoint summaries to return. Values are clamped to 1 through 50."
          }
        }
      }
    },
    {
      "name": "agentbodega_get_endpoint",
      "title": "Get AgentBodega Endpoint",
      "description": "Use this after search_catalog when you know the endpoint key, title, path, or URL and need the complete contract before paying. It returns method, URL, price, category, tags, long description, required inputs, input/output schemas, example request, and output example when available. It does not call the paid endpoint.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "endpoint"
        ],
        "properties": {
          "endpoint": {
            "type": "string",
            "minLength": 1,
            "description": "Endpoint identifier from search_catalog. Accepts the endpoint key, title, API path such as /api/status/github, or full AgentBodega URL."
          },
          "includeSchemas": {
            "type": "boolean",
            "default": true,
            "description": "When true, return the full contract with schemas, examples, and long description. When false, return a compact summary suitable for ranking candidate endpoints."
          }
        }
      }
    },
    {
      "name": "agentbodega_call_snippet",
      "title": "Generate AgentBodega Call Snippet",
      "description": "Use this after selecting an endpoint to prepare an HTTP request an agent or user can run outside MCP. It returns curl and JavaScript snippets with the example JSON body, an X-PAYMENT placeholder, and x402 verification notes. It does not fetch a live 402 challenge, spend funds, or execute the paid call.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "endpoint"
        ],
        "properties": {
          "endpoint": {
            "type": "string",
            "minLength": 1,
            "description": "Endpoint identifier from search_catalog or get_endpoint. Accepts the endpoint key, title, API path, or full AgentBodega URL."
          }
        }
      }
    },
    {
      "name": "agentbodega_payment_guide",
      "title": "AgentBodega Payment Guide",
      "description": "Use this when an agent needs to understand how AgentBodega x402 payment discovery and settlement work before making paid HTTP calls. It explains the blockchain-settled per-call model, discovery URLs, balance source of truth, and an optional sample challenge request. It does not validate wallets, create discounts, or perform payments.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "includeCurl": {
            "type": "boolean",
            "default": true,
            "description": "When true, include a sample curl command for requesting a live 402 payment challenge."
          }
        }
      }
    }
  ],
  "resources": [
    {
      "uri": "agentbodega://catalog",
      "name": "agentbodega_catalog",
      "title": "AgentBodega Catalog",
      "description": "Compact live AgentBodega endpoint catalog.",
      "mimeType": "application/json"
    },
    {
      "uri": "agentbodega://x402",
      "name": "agentbodega_x402",
      "title": "AgentBodega x402 Discovery",
      "description": "Live /.well-known/x402 document.",
      "mimeType": "application/json"
    },
    {
      "uri": "agentbodega://openapi",
      "name": "agentbodega_openapi",
      "title": "AgentBodega OpenAPI",
      "description": "Live OpenAPI document for AgentBodega HTTP endpoints.",
      "mimeType": "application/json"
    }
  ],
  "prompts": [
    {
      "name": "agentbodega_start",
      "title": "Start With AgentBodega",
      "description": "A prompt for agents that need to find an AgentBodega resource and prepare a paid HTTP call.",
      "arguments": [
        {
          "name": "task",
          "description": "The task the agent should solve with AgentBodega.",
          "required": false
        }
      ]
    }
  ]
}