@dimassetoid/openapi-mcp 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +144 -2
- package/dist/cli/update.d.ts +38 -0
- package/dist/cli/update.js +235 -0
- package/dist/engine/budget.d.ts +40 -0
- package/dist/engine/budget.js +96 -0
- package/dist/engine/example-generator.d.ts +47 -0
- package/dist/engine/example-generator.js +273 -0
- package/dist/engine/index-builder.d.ts +50 -0
- package/dist/engine/index-builder.js +155 -0
- package/dist/engine/index.d.ts +12 -0
- package/dist/engine/index.js +12 -0
- package/dist/engine/json.d.ts +1 -0
- package/dist/engine/json.js +3 -0
- package/dist/engine/lazy-expander.d.ts +37 -0
- package/dist/engine/lazy-expander.js +235 -0
- package/dist/engine/openapi-utils.d.ts +13 -0
- package/dist/engine/openapi-utils.js +48 -0
- package/dist/engine/query-sandbox.d.ts +29 -0
- package/dist/engine/query-sandbox.js +345 -0
- package/dist/engine/schema-index.d.ts +42 -0
- package/dist/engine/schema-index.js +145 -0
- package/dist/engine/source-map.d.ts +15 -0
- package/dist/engine/source-map.js +50 -0
- package/dist/engine/spec-catalog.d.ts +14 -0
- package/dist/engine/spec-catalog.js +99 -0
- package/dist/engine/spec-diagnostics.d.ts +28 -0
- package/dist/engine/spec-diagnostics.js +393 -0
- package/dist/engine/spec-diff.d.ts +32 -0
- package/dist/engine/spec-diff.js +406 -0
- package/dist/engine/spec-loader.d.ts +100 -0
- package/dist/engine/spec-loader.js +528 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +371 -0
- package/dist/mcp/prompts.d.ts +51 -0
- package/dist/mcp/prompts.js +161 -0
- package/dist/mcp/resources.d.ts +33 -0
- package/dist/mcp/resources.js +207 -0
- package/dist/mcp/server.d.ts +88 -0
- package/dist/mcp/server.js +588 -0
- package/dist/telemetry/telemetry.d.ts +90 -0
- package/dist/telemetry/telemetry.js +299 -0
- package/docs/feature/README.md +53 -0
- package/docs/feature/getting-started.md +167 -0
- package/docs/feature/index-and-prompts.md +53 -0
- package/docs/feature/openapi-query.md +53 -0
- package/docs/feature/spec-loader.md +34 -0
- package/package.json +77 -4
- package/skills/use-openapi-mcp/SKILL.md +43 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Code Mode Query, Diagnostics, Inspect & Semantic Diff
|
|
2
|
+
|
|
3
|
+
## `openapi_query`
|
|
4
|
+
|
|
5
|
+
`openapi_query` evaluates synchronous JavaScript expressions, arrow functions, or statement bodies with `return`. The tool accepts non-empty `code` (required, 1–16,384 characters with at least one non-whitespace character), optional `root` and `spec_path`, and optional integer `max_bytes` (1–1,048,576; default `16384`). When `spec_path` is omitted, a non-breaking `Resolved spec: <path>` text note is appended in a second content block while `content[0].text` and `structuredContent` remain pure query JSON.
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
helpers.op('POST', '/orders')
|
|
9
|
+
helpers.example('POST', '/orders', '422')
|
|
10
|
+
helpers.schemaRefs('ProblemDetails')
|
|
11
|
+
helpers.meta()
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Built-in Read-Only `helpers`
|
|
15
|
+
|
|
16
|
+
Inside the QuickJS guest runtime, a frozen `helpers` global is exposed alongside `spec` (pure guest JS, zero host callbacks):
|
|
17
|
+
|
|
18
|
+
- `helpers.op(method, path)`: Returns the merged operation contract with path-level + operation-level `parameters` combined (operation overrides path on matching `in` + `name`), effective `security` (inheriting top-level `spec.security` unless overridden), and `sourceLocation`.
|
|
19
|
+
- `helpers.example(method, path, statusCode?)` or `helpers.example(schema)`: Deterministically synthesizes JSON sample payloads (honoring `example`/`examples` → `const` → `default` → `enum` → `format` → `type`, merging `allOf`, respecting `readOnly`/`writeOnly`, and safely terminating `[Circular: ...]` markers).
|
|
20
|
+
- `helpers.schemaRefs(schemaName?)`: Returns reverse references (`[{ method, path, section }]`) recorded during `$ref` resolution before inlining.
|
|
21
|
+
- `helpers.meta()`: Returns `{ specPath, rootDir, title, version, openapiVersion }` for the active loaded specification.
|
|
22
|
+
|
|
23
|
+
### Execution & Resource Bounds
|
|
24
|
+
|
|
25
|
+
- **Isolated timeouts:** Guest spec bootstrap (`JSON.parse` + recursive `Object.freeze`) has a bounded 2,000 ms setup cap, separate from the query execution deadline (default **150 ms**). Large specs do not cause false `SANDBOX_TIMEOUT` failures before the query runs.
|
|
26
|
+
- **Memory & stack:** Guest memory is limited to 64 MiB and stack to 512 KiB. Promise/thenable return values are rejected.
|
|
27
|
+
- **Byte budget:** Successful result text defaults to 16 KiB UTF-8 (configurable up to 1 MiB). Oversized results return `RESPONSE_BUDGET_EXCEEDED` with available keys and narrowing hints.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## `openapi_diagnostics` & `openapi_inspect`
|
|
32
|
+
|
|
33
|
+
- `openapi_diagnostics({ root?, spec_path?, max_bytes? })`: Runs `diagnoseOpenApiSpec` directly as an MCP tool, supporting explicit `root` overrides (within `--root` when pinned) for clients that do not expose resource templates.
|
|
34
|
+
- `openapi_inspect({ target?, root?, spec_path?, q?, tag?, method?, pathPrefix?, operationId?, missingErrorContracts?, usedByPath?, unusedOnly?, pointer?, offset?, limit?, max_bytes? })`: Discovers workspace specs (`target: "catalog"`), queries endpoint (`target: "endpoints"`, $O(\text{endpoints})$ lazy load) or schema (`target: "schemas"`) indexes (`limit` `1–100`, default `20` when paginated), or lazily resolves a single JSON Pointer subtree (`pointer`, e.g. `"/paths/~1users/get"` or `"/components/schemas/Order"`, invalid when combined with `target: "catalog"`). When an unfiltered index exceeds `max_bytes`, it automatically falls back to a paginated slice (`limit: 20`).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## `openapi_diff`
|
|
39
|
+
|
|
40
|
+
`openapi_diff` compares two local OpenAPI specifications inside the configured workspace (`base_spec_path` vs `target_spec_path`, plus optional `root`, `include_non_breaking`, and `max_bytes`).
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"base_spec_path": "openapi.yml",
|
|
45
|
+
"target_spec_path": "docs/openapi.yml"
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
It returns `hasBreakingChanges`, `summary` (`breakingCount`, `nonBreakingCount`, `addedEndpoints`, `removedEndpoints`, `totalChanges`, `truncated`), `breaking[]`, and `nonBreaking[]`, capping `breaking` and `nonBreaking` at 250 items independently so non-breaking volume never starves breaking detections. If serialized JSON exceeds `max_bytes` (default 16 KiB) or `include_non_breaking: false` is passed, all `breaking` entries are preserved while `nonBreaking` is returned empty with `nonBreakingSummary` (counts by change code) and `nonBreakingTruncatedByBudget: true` or `nonBreakingOmitted: true`.
|
|
50
|
+
|
|
51
|
+
Classifications:
|
|
52
|
+
- **Breaking:** removed endpoints, removed parameters, removed response status codes or media types, new required parameters or request properties, optional-to-required request changes, required-to-optional response changes, schema type changes, removed request enum values, added response enum values.
|
|
53
|
+
- **Non-breaking:** added endpoints, newly deprecated endpoints, new optional request parameters/properties, added response statuses or properties, new request media types.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Specification Loader
|
|
2
|
+
|
|
3
|
+
The engine, indexes, search templates, and query sandbox use `loadOpenApiSpec` to select, parse, and resolve an immutable OpenAPI snapshot.
|
|
4
|
+
|
|
5
|
+
Discovery checks `openapi.yml`, `openapi.yaml`, and `openapi.json` in the workspace root, followed by `api/` and `docs/`. An explicit `spec_path` or `--spec` option takes precedence over convention-based discovery.
|
|
6
|
+
|
|
7
|
+
For monorepos or nested services, read `openapi://specs/catalog` and pass the desired path as `spec_path`.
|
|
8
|
+
|
|
9
|
+
## Local `$ref` Resolution
|
|
10
|
+
|
|
11
|
+
Relative `$ref` paths are resolved from the referring file. The loader accepts local regular files inside the workspace and resolves JSON Pointer fragments, including percent-encoding, escaped keys (`~0`, `~1`), and empty keys. Remote references and paths whose canonical `realpath` escapes the workspace boundary are rejected.
|
|
12
|
+
|
|
13
|
+
- Missing referenced files raise `REF_FILE_NOT_FOUND`, identifying both the referring file and missing target.
|
|
14
|
+
- When an entry specification is missing, `openapi://endpoints/*`, `openapi://schemas/*`, and `openapi://spec/diagnostics` resources return `status: "spec_not_found"` with checked candidates, whereas MCP tools (`openapi_query`, `openapi_diagnostics`, `openapi_inspect`) return `isError: true` (`SPEC_NOT_FOUND` / `SPEC_FILE_NOT_FOUND`) and `openapi-mcp check` exits `1`.
|
|
15
|
+
|
|
16
|
+
Cyclic references are tracked by object identity and replaced with a `[Circular: <ref>]` marker so recursive schemas remain inspectable without infinite expansion.
|
|
17
|
+
|
|
18
|
+
For OpenAPI 3.1 Schema Objects with sibling keywords alongside `$ref`, the target schema is preserved via `allOf` alongside the local keywords. Schema-resource identifiers (`$id`) and dynamic references (`$dynamicRef`) are outside the supported resolver subset and raise `INVALID_REF`; named `$anchor` definitions are not resolved as fragment anchors.
|
|
19
|
+
|
|
20
|
+
## Source Mapping & Reverse Schema Usage
|
|
21
|
+
|
|
22
|
+
`loadOpenApiSpec` parses each YAML/JSON file once using `yaml` v2 `parseDocument` and `LineCounter` ([source-map.ts](../../src/engine/source-map.ts)), producing 1-based `{ file, line, col }` `sourceLocations` for paths, operations, and component schemas without a second parse pass.
|
|
23
|
+
|
|
24
|
+
During `$ref` expansion, before inlining removes reference boundaries, the loader builds a reverse usage map (`schemaUsages`) linking each local `components.schemas` / `definitions` entry to the operations and sections (`requestBody`, `parameters`, `response:<status>`, or `operation`) that reference it. Both `sourceLocations` and `schemaUsages` are frozen and exposed to indexes and sandbox `helpers`.
|
|
25
|
+
|
|
26
|
+
## Caching & Resource Limits
|
|
27
|
+
|
|
28
|
+
The loader caches resolved entry specifications keyed by workspace root and canonical entry path (`${root}\0${entry}`), while `loadRawOpenApiDocument` ([lazy-expander.ts](../../src/engine/lazy-expander.ts)) caches raw parsed documents for $O(\text{endpoints})$ shallow indexing (`buildRawEndpointSummary`) and single-pointer lazy `$ref` expansion (`expandPointerSubtree`, 64-entry subtree cache). On a cache hit, an `O(F)` `statSync` check compares `mtimeMs`, `ctimeMs`, and `size` across all dependencies before falling back to a full read and SHA-256 verification. Deleted `$ref` files and retargeted symlinks invalidate stale cache entries automatically.
|
|
29
|
+
|
|
30
|
+
Safety limits enforced during loading (default / bounded environment overrides via `resolveSpecLimits`):
|
|
31
|
+
- **Source files:** max `128` files (`OPENAPI_MCP_MAX_SPEC_FILES`, `1..1024`), max `8 MiB` cumulative input (`OPENAPI_MCP_MAX_SPEC_BYTES`, `1 KiB..64 MiB`)
|
|
32
|
+
- **Expansion & caching:** max `250,000` node visits (`OPENAPI_MCP_MAX_NODE_VISITS`, `1,000..2,000,000`), max depth `128`, max `8 MiB` serialized snapshot, max `8` cached specs (`OPENAPI_MCP_MAX_CACHED_SPECS`, `1..32`)
|
|
33
|
+
- **Telemetry override:** `OPENAPI_MCP_LOG_PATH` overrides the default log path (`<workspaceRoot>/.openapi-mcp/openapi.log` when `.openapi-mcp/` exists, otherwise `~/.openapi-mcp/openapi.log`)
|
|
34
|
+
- **Error codes:** `WORKSPACE_NOT_FOUND`, `INVALID_SPEC_PATH`, `SPEC_NOT_FOUND`, `SPEC_FILE_NOT_FOUND`, `REF_FILE_NOT_FOUND`, `INVALID_REF`, `REMOTE_REF_DENIED`, `PATH_TRAVERSAL_DENIED`, `SPEC_PARSE_ERROR`, `SPEC_CHANGED`, `SPEC_LIMIT`
|
package/package.json
CHANGED
|
@@ -1,6 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimassetoid/openapi-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Local Code Mode MCP server and reusable OpenAPI engine for AI coding agents",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"bin": {
|
|
12
|
+
"openapi-mcp": "dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./engine": {
|
|
20
|
+
"types": "./dist/engine/index.d.ts",
|
|
21
|
+
"default": "./dist/engine/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/**/*.js",
|
|
26
|
+
"dist/**/*.d.ts",
|
|
27
|
+
"docs/feature",
|
|
28
|
+
"skills",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18.20.0",
|
|
34
|
+
"bun": ">=1.4.3"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/Shironim/openapi-mcp.git"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/Shironim/openapi-mcp#readme",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/Shironim/openapi-mcp/issues"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"mcp",
|
|
46
|
+
"model-context-protocol",
|
|
47
|
+
"openapi",
|
|
48
|
+
"swagger",
|
|
49
|
+
"code-mode",
|
|
50
|
+
"ai-agent",
|
|
51
|
+
"sandbox",
|
|
52
|
+
"schema-validation",
|
|
53
|
+
"api-contract"
|
|
54
|
+
],
|
|
55
|
+
"author": "dimassetoid",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"scripts": {
|
|
58
|
+
"start": "bun run src/index.ts",
|
|
59
|
+
"serve": "bun run src/index.ts serve",
|
|
60
|
+
"test": "bun test",
|
|
61
|
+
"typecheck": "tsc --noEmit",
|
|
62
|
+
"build": "tsc -p tsconfig.build.json && node -e \"if(process.platform!=='win32')require('node:fs').chmodSync('dist/index.js',0o755)\"",
|
|
63
|
+
"compile:all": "bun run scripts/compile.ts",
|
|
64
|
+
"prepublishOnly": "bun run typecheck && bun run build && bun test"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@jitl/quickjs-singlefile-cjs-release-sync": "0.32.0",
|
|
68
|
+
"@modelcontextprotocol/sdk": "^1.6.0",
|
|
69
|
+
"acorn": "8.19.0",
|
|
70
|
+
"quickjs-emscripten-core": "0.32.0",
|
|
71
|
+
"yaml": "^2.7.0",
|
|
72
|
+
"zod": "4.6.7"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/bun": "^1.4.0",
|
|
76
|
+
"@types/node": "^22.13.4",
|
|
77
|
+
"typescript": "^5.7.3"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: use-openapi-mcp
|
|
3
|
+
description: >-
|
|
4
|
+
Inspect, validate, diff, and generate sample payloads from OpenAPI 3.0/3.1 and Swagger 2.0 specifications via openapi-mcp without loading raw YAML/JSON files into context. Use when listing endpoints or schemas, finding endpoints affected by a schema change, auditing 4xx/5xx error responses, syncing frontend/backend API contracts, comparing spec revisions for breaking changes, or working with multi-file $ref specs.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# use-openapi-mcp
|
|
8
|
+
|
|
9
|
+
Prefer `openapi-mcp` over reading raw `openapi.yml`/`openapi.json` files directly. Reading raw spec files into context wastes tokens and commonly causes three issues:
|
|
10
|
+
1. **Missed `$ref` targets and inherited rules:** Searching raw files often misses cross-file `$ref` targets, path-level `parameters` inherited from `paths[p].parameters`, and global `security` vs operation-level `security: []` overrides.
|
|
11
|
+
2. **Missing error contracts:** Inspecting only `2xx` responses overlooks `4xx`/`5xx` error schemas, undocumented status codes, and `readOnly`/`writeOnly` field differences.
|
|
12
|
+
3. **Lost component references after `$ref` expansion:** Expanding `$ref` inline removes component schema names, making it harder to see which endpoints depend on a shared schema.
|
|
13
|
+
|
|
14
|
+
## Core Practices
|
|
15
|
+
|
|
16
|
+
- **Read indexes before querying details:** Start with compact indexes (`openapi_inspect({ target: "endpoints" })` / `openapi://endpoints/index` or `schemas/index`) before querying details. Prefer `openapi_inspect({ pointer: "/paths/~1users/get" })` for fast lazy single-subtree `$ref` expansion, and reserve `openapi_query` for custom expressions or `helpers.example` / `helpers.schemaRefs`. Narrow scopes rather than inflating `max_bytes`.
|
|
17
|
+
- **Validate the spec before relying on it:** Existing specs can contain broken `$ref`s, undeclared `{path}` parameters, unknown `security` schemes, or missing error schemas. Run diagnostics before treating a spec as accurate.
|
|
18
|
+
- **Check schema consumers before editing:** Use pre-expansion usage tracking (`schemas/index` or `helpers.schemaRefs`) to identify all affected endpoints before modifying a shared schema.
|
|
19
|
+
- **Fallback when MCP is unavailable:** Prefer `openapi-mcp` MCP resources/tools when connected. If no MCP server is attached, use the `openapi-mcp check`, `openapi-mcp diff`, `openapi-mcp stats`, or `openapi-mcp update` CLI commands if installed, or fall back to targeted `rg` and file reads while manually checking path-level parameters, `$ref` targets, and `4xx`/`5xx` responses.
|
|
20
|
+
|
|
21
|
+
## Intent-to-Primitive Routing
|
|
22
|
+
|
|
23
|
+
| Intent | MCP Resource / Tool | Purpose |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| **Discover specs in a monorepo** | `read_resource("openapi://specs/catalog")` or `openapi_inspect({ target: "catalog", root? })` | Finds entry specs while skipping unreadable (`EACCES`) and build/vendor directories; pass `root` and `spec_path` consistently thereafter. |
|
|
26
|
+
| **List endpoints & error coverage** | `read_resource("openapi://endpoints/index")` or `openapi_inspect({ target: "endpoints", root?, spec_path? })` | Lists methods, paths, `2xx`/`4xx`/`5xx` codes, `errorBodies`, `security`, `deprecated`, `tags`, and `sourceLocation` (`{ file, line }`). |
|
|
27
|
+
| **Filter & paginate large indexes** | `openapi_inspect({ target: "endpoints", q?, method?, pathPrefix?, tag?, operationId?, missingErrorContracts?, limit: 20, offset: 0, root?, spec_path? })` or `openapi://endpoints/search?...` | Avoids oversized responses; follow `nextUri` (resource) or `hasMore`/`offset` (tool) for subsequent pages. |
|
|
28
|
+
| **List schemas & their consumers** | `openapi_inspect({ target: "schemas", q?, unusedOnly?, usedByPath?, root?, spec_path? })` or `openapi://schemas/index` / `openapi://schemas/search` | Exposes `required`, `properties`, `sourceLocation`, and pre-expansion `usedBy` references. |
|
|
29
|
+
| **Validate contract health** | `openapi_diagnostics({ root?, spec_path? })` or `read_resource("openapi://spec/diagnostics?root=...&spec_path=...")` | Reports all broken `$ref`s, duplicate `operationId`, undeclared `{path}` params, unknown `security` schemes, missing error contracts, and auth `401`/`403` coverage in one pass. |
|
|
30
|
+
| **Inspect one merged operation lazily** | `openapi_inspect({ pointer: "/paths/~1orders/post", root?, spec_path? })` or `openapi_query({ code: "helpers.op('POST', '/orders')", root?, spec_path? })` | `pointer` expands **only** that JSON Pointer subtree without resolving the rest of a huge spec; `helpers.op` runs against full resolved spec with merged parameters, effective `security`, and `sourceLocation`. |
|
|
31
|
+
| **Generate deterministic sample payloads** | `openapi_query({ code: "helpers.example('POST', '/orders', '201')", root?, spec_path? })` | Generates format-aware, circular-safe JSON samples respecting `readOnly`/`writeOnly` fields (also accepts `helpers.example(schema)`). |
|
|
32
|
+
| **Find endpoints using a schema** | `openapi_query({ code: "helpers.schemaRefs('Order')", root?, spec_path? })` | Returns `[{ method, path, section }]` captured prior to `$ref` expansion. |
|
|
33
|
+
| **Detect breaking changes** | `openapi_diff({ base_spec_path, target_spec_path, root?, include_non_breaking? })` | Classifies `breaking` vs `non_breaking` changes across endpoints, parameters, request bodies, and responses; preserves all `breaking` items even when `non_breaking` exceeds `max_bytes`. |
|
|
34
|
+
|
|
35
|
+
## Client Compatibility
|
|
36
|
+
|
|
37
|
+
MCP clients that only expose `resources/list` (and not `resources/templates/list`) can pass query parameters directly to `read_resource` or use the `openapi_inspect` / `openapi_diagnostics` tools with `root` and `spec_path`:
|
|
38
|
+
- `openapi://specs/catalog?root=<dir>`
|
|
39
|
+
- `openapi://endpoints/index?root=<dir>&spec_path=<path>`
|
|
40
|
+
- `openapi://endpoints/search?q=<term>&limit=20&root=<dir>&spec_path=<path>`
|
|
41
|
+
- `openapi://schemas/index?root=<dir>&spec_path=<path>`
|
|
42
|
+
- `openapi://schemas/search?q=<term>&limit=20&root=<dir>&spec_path=<path>`
|
|
43
|
+
- `openapi://spec/diagnostics?root=<dir>&spec_path=<path>`
|