{
  "openapi": "3.1.0",
  "info": {
    "title": "GovScout Pro Public API",
    "version": "1.0.0",
    "description": "Read-only public endpoints for GovScout Pro content: site search index, pricing, entity facts, and a Model Context Protocol (MCP) server. No authentication. Account and billing APIs are private and not listed here.",
    "contact": {
      "name": "Steven Harriman",
      "email": "stevenh@govscout.pro",
      "url": "https://govscout.pro/contact"
    }
  },
  "servers": [
    {
      "url": "https://govscout.pro"
    }
  ],
  "paths": {
    "/search-index.json": {
      "get": {
        "operationId": "getSearchIndex",
        "summary": "Index of every public GovScout Pro page (title, H1, description, URL, last modified).",
        "responses": {
          "200": {
            "description": "Search index",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            }
          }
        }
      }
    },
    "/pricing.md": {
      "get": {
        "operationId": "getPricing",
        "summary": "Current plans, limits, and optional service prices.",
        "responses": {
          "200": {
            "description": "Pricing in Markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/entities.txt": {
      "get": {
        "operationId": "getEntities",
        "summary": "Entity disambiguation for GovScout Pro, Harriman Solution Group, Steven Harriman, and Marcus.",
        "responses": {
          "200": {
            "description": "Entities",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "LLM-oriented site overview and authoritative URLs.",
        "responses": {
          "200": {
            "description": "llms.txt",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "XML sitemap of every public page.",
        "responses": {
          "200": {
            "description": "Sitemap",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "Model Context Protocol server (Streamable HTTP, stateless JSON). Tools: search_govscout_guides, get_govscout_pricing, get_govscout_company_facts.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted"
          }
        }
      }
    },
    "/a2a": {
      "post": {
        "operationId": "a2a",
        "summary": "Agent2Agent (A2A) JSON-RPC endpoint. Method message/send answers federal contracting questions with GovScout Pro guide links.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/agent-card.json": {
      "get": {
        "operationId": "getAgentCard",
        "summary": "A2A agent card.",
        "responses": {
          "200": {
            "description": "Agent card",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SearchIndex": {
        "type": "object",
        "properties": {
          "generated": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "pages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "path": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "h1": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "section": {
                  "type": "string"
                },
                "lastmod": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "JsonRpcRequest": {
        "type": "object",
        "required": [
          "jsonrpc",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "integer",
              "string"
            ]
          },
          "method": {
            "type": "string",
            "examples": [
              "initialize",
              "tools/list",
              "tools/call"
            ]
          },
          "params": {
            "type": "object"
          }
        }
      }
    }
  }
}
