[{"data":1,"prerenderedAt":434},["ShallowReactive",2],{"doc-seo-\u002Fdocs":3,"content-query-ptYrpYqhqU":6},{"title":4,"description":5},"Introduction","Local OpenAPI MCP server, CLI, and reusable TypeScript engine for AI coding agents and CI pipelines.",{"_path":7,"_dir":8,"_draft":9,"_partial":9,"_locale":8,"title":4,"description":5,"badge":10,"body":11,"_type":428,"_id":429,"_source":430,"_file":431,"_stem":432,"_extension":433},"\u002Fdocs","",false,"v0.1.0",{"type":12,"children":13,"toc":420},"root",[14,37,42,49,54,105,110,116,121,258,264,362,368,380],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19,26,28,35],{"type":15,"tag":20,"props":21,"children":22},"strong",{},[23],{"type":24,"value":25},"text","OpenAPI MCP",{"type":24,"value":27}," (",{"type":15,"tag":29,"props":30,"children":32},"code",{"className":31},[],[33],{"type":24,"value":34},"@dimassetoid\u002Fopenapi-mcp",{"type":24,"value":36},") is a local MCP server, CLI, and TypeScript engine for OpenAPI 3.0, OpenAPI 3.1, and Swagger 2.0 specifications.",{"type":15,"tag":16,"props":38,"children":39},{},[40],{"type":24,"value":41},"Instead of pasting thousands of lines of YAML or JSON into an AI prompt, agents inspect compact indexes, run sandboxed queries against resolved schemas, and compare API versions locally.",{"type":15,"tag":43,"props":44,"children":46},"h2",{"id":45},"why-openapi-mcp-exists",[47],{"type":24,"value":48},"Why OpenAPI MCP Exists",{"type":15,"tag":16,"props":50,"children":51},{},[52],{"type":24,"value":53},"Working with API specifications in AI-assisted workflows usually breaks down in three ways:",{"type":15,"tag":55,"props":56,"children":57},"ol",{},[58,77,95],{"type":15,"tag":59,"props":60,"children":61},"li",{},[62,67,69,75],{"type":15,"tag":20,"props":63,"children":64},{},[65],{"type":24,"value":66},"Context overflow",{"type":24,"value":68}," — Loading an entire ",{"type":15,"tag":29,"props":70,"children":72},{"className":71},[],[73],{"type":24,"value":74},"openapi.yml",{"type":24,"value":76}," file into a prompt consumes thousands of tokens just to check one endpoint or error response.",{"type":15,"tag":59,"props":78,"children":79},{},[80,93],{"type":15,"tag":20,"props":81,"children":82},{},[83,85,91],{"type":24,"value":84},"Scattered ",{"type":15,"tag":29,"props":86,"children":88},{"className":87},[],[89],{"type":24,"value":90},"$ref",{"type":24,"value":92}," files",{"type":24,"value":94}," — Multi-file specs split parameters, request bodies, and shared schemas across directories, making plain text search unreliable.",{"type":15,"tag":59,"props":96,"children":97},{},[98,103],{"type":15,"tag":20,"props":99,"children":100},{},[101],{"type":24,"value":102},"Silent breaking changes",{"type":24,"value":104}," — Removing an enum value, changing a field from optional to required, or dropping a status code is easy to miss during code review.",{"type":15,"tag":16,"props":106,"children":107},{},[108],{"type":24,"value":109},"OpenAPI MCP keeps the full specification local and exposes only the exact contract, sample payload, or diff the agent or CI check asks for.",{"type":15,"tag":43,"props":111,"children":113},{"id":112},"how-it-works",[114],{"type":24,"value":115},"How It Works",{"type":15,"tag":16,"props":117,"children":118},{},[119],{"type":24,"value":120},"OpenAPI MCP provides four complementary surfaces built on a single TypeScript engine:",{"type":15,"tag":122,"props":123,"children":124},"table",{},[125,145],{"type":15,"tag":126,"props":127,"children":128},"thead",{},[129],{"type":15,"tag":130,"props":131,"children":132},"tr",{},[133,140],{"type":15,"tag":134,"props":135,"children":137},"th",{"align":136},"left",[138],{"type":24,"value":139},"Surface",{"type":15,"tag":134,"props":141,"children":142},{"align":136},[143],{"type":24,"value":144},"What it gives you",{"type":15,"tag":146,"props":147,"children":148},"tbody",{},[149,166,196,212],{"type":15,"tag":130,"props":150,"children":151},{},[152,161],{"type":15,"tag":153,"props":154,"children":155},"td",{"align":136},[156],{"type":15,"tag":20,"props":157,"children":158},{},[159],{"type":24,"value":160},"MCP Resources",{"type":15,"tag":153,"props":162,"children":163},{"align":136},[164],{"type":24,"value":165},"Compact, paginated indexes for specs, endpoints, schemas, and single-pass validation diagnostics.",{"type":15,"tag":130,"props":167,"children":168},{},[169,177],{"type":15,"tag":153,"props":170,"children":171},{"align":136},[172],{"type":15,"tag":20,"props":173,"children":174},{},[175],{"type":24,"value":176},"MCP Tools",{"type":15,"tag":153,"props":178,"children":179},{"align":136},[180,186,188,194],{"type":15,"tag":29,"props":181,"children":183},{"className":182},[],[184],{"type":24,"value":185},"openapi_query",{"type":24,"value":187}," for sandboxed JavaScript queries and ",{"type":15,"tag":29,"props":189,"children":191},{"className":190},[],[192],{"type":24,"value":193},"openapi_diff",{"type":24,"value":195}," for breaking-change analysis.",{"type":15,"tag":130,"props":197,"children":198},{},[199,207],{"type":15,"tag":153,"props":200,"children":201},{"align":136},[202],{"type":15,"tag":20,"props":203,"children":204},{},[205],{"type":24,"value":206},"MCP Prompts",{"type":15,"tag":153,"props":208,"children":209},{"align":136},[210],{"type":24,"value":211},"Four guided workflows for frontend API alignment, error contract audits, diff reviews, and test fixtures.",{"type":15,"tag":130,"props":213,"children":214},{},[215,223],{"type":15,"tag":153,"props":216,"children":217},{"align":136},[218],{"type":15,"tag":20,"props":219,"children":220},{},[221],{"type":24,"value":222},"CLI & Engine",{"type":15,"tag":153,"props":224,"children":225},{"align":136},[226,232,234,240,242,248,250,256],{"type":15,"tag":29,"props":227,"children":229},{"className":228},[],[230],{"type":24,"value":231},"serve",{"type":24,"value":233},", ",{"type":15,"tag":29,"props":235,"children":237},{"className":236},[],[238],{"type":24,"value":239},"check",{"type":24,"value":241},", and ",{"type":15,"tag":29,"props":243,"children":245},{"className":244},[],[246],{"type":24,"value":247},"diff",{"type":24,"value":249}," commands for local terminals and CI, plus ",{"type":15,"tag":29,"props":251,"children":253},{"className":252},[],[254],{"type":24,"value":255},"@dimassetoid\u002Fopenapi-mcp\u002Fengine",{"type":24,"value":257},".",{"type":15,"tag":43,"props":259,"children":261},{"id":260},"supported-specifications",[262],{"type":24,"value":263},"Supported Specifications",{"type":15,"tag":265,"props":266,"children":267},"ul",{},[268,300,318,336],{"type":15,"tag":59,"props":269,"children":270},{},[271,276,278,283,285,290,292,298],{"type":15,"tag":20,"props":272,"children":273},{},[274],{"type":24,"value":275},"OpenAPI 3.1",{"type":24,"value":277},": Full local ",{"type":15,"tag":29,"props":279,"children":281},{"className":280},[],[282],{"type":24,"value":90},{"type":24,"value":284}," resolution, sibling keywords alongside ",{"type":15,"tag":29,"props":286,"children":288},{"className":287},[],[289],{"type":24,"value":90},{"type":24,"value":291}," preserved via ",{"type":15,"tag":29,"props":293,"children":295},{"className":294},[],[296],{"type":24,"value":297},"allOf",{"type":24,"value":299},", and deterministic JSON examples.",{"type":15,"tag":59,"props":301,"children":302},{},[303,308,310,316],{"type":15,"tag":20,"props":304,"children":305},{},[306],{"type":24,"value":307},"OpenAPI 3.0",{"type":24,"value":309},": YAML and JSON parsing with 1-based ",{"type":15,"tag":29,"props":311,"children":313},{"className":312},[],[314],{"type":24,"value":315},"{ file, line }",{"type":24,"value":317}," source locations and merged path + operation parameters.",{"type":15,"tag":59,"props":319,"children":320},{},[321,326,328,334],{"type":15,"tag":20,"props":322,"children":323},{},[324],{"type":24,"value":325},"Swagger 2.0",{"type":24,"value":327},": Support for ",{"type":15,"tag":29,"props":329,"children":331},{"className":330},[],[332],{"type":24,"value":333},"definitions",{"type":24,"value":335}," schemas, reverse usage tracking, diagnostics, and semantic diffing.",{"type":15,"tag":59,"props":337,"children":338},{},[339,344,346,352,354,360],{"type":15,"tag":20,"props":340,"children":341},{},[342],{"type":24,"value":343},"Monorepos",{"type":24,"value":345},": Automatic workspace spec catalog (",{"type":15,"tag":29,"props":347,"children":349},{"className":348},[],[350],{"type":24,"value":351},"openapi:\u002F\u002Fspecs\u002Fcatalog",{"type":24,"value":353},") with per-request ",{"type":15,"tag":29,"props":355,"children":357},{"className":356},[],[358],{"type":24,"value":359},"spec_path",{"type":24,"value":361}," selection.",{"type":15,"tag":43,"props":363,"children":365},{"id":364},"scope-limits",[366],{"type":24,"value":367},"Scope & Limits",{"type":15,"tag":16,"props":369,"children":370},{},[371,373,378],{"type":24,"value":372},"OpenAPI MCP performs ",{"type":15,"tag":20,"props":374,"children":375},{},[376],{"type":24,"value":377},"read-only local analysis",{"type":24,"value":379}," on your specification files.",{"type":15,"tag":265,"props":381,"children":382},{},[383,410,415],{"type":15,"tag":59,"props":384,"children":385},{},[386,388,393,395,401,402,408],{"type":24,"value":387},"Remote ",{"type":15,"tag":29,"props":389,"children":391},{"className":390},[],[392],{"type":24,"value":90},{"type":24,"value":394}," URLs (",{"type":15,"tag":29,"props":396,"children":398},{"className":397},[],[399],{"type":24,"value":400},"http:\u002F\u002F",{"type":24,"value":233},{"type":15,"tag":29,"props":403,"children":405},{"className":404},[],[406],{"type":24,"value":407},"https:\u002F\u002F",{"type":24,"value":409},") and paths escaping the workspace root are blocked for security.",{"type":15,"tag":59,"props":411,"children":412},{},[413],{"type":24,"value":414},"Queries run in an isolated QuickJS WASM sandbox and never make network requests or execute against live API servers.",{"type":15,"tag":59,"props":416,"children":417},{},[418],{"type":24,"value":419},"Always run your project's own API tests alongside static spec checks.",{"title":8,"searchDepth":421,"depth":421,"links":422},3,[423,425,426,427],{"id":45,"depth":424,"text":48},2,{"id":112,"depth":424,"text":115},{"id":260,"depth":424,"text":263},{"id":364,"depth":424,"text":367},"markdown","content:docs:index.md","content","docs\u002Findex.md","docs\u002Findex","md",1795576105724]