oaslint-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OASLINT_DIR | No | The directory containing the OpenAPI/Swagger spec files that the server is allowed to read. Equivalent to the --dir command-line option; file access is sandboxed to this directory. Defaults to the current directory. | . |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Lint OpenAPI 3.0 / 3.1 / Swagger 2.0 specs and, above all, find BREAKING CHANGES between two versions of a spec. Offline and read-only: remote $refs are never fetched. Every spec/old/new argument is a path to a .yaml/.yml/.json file inside the allowed directory (relative paths are fine), or the spec text pasted inline. Start with spec_overview, then lint_spec; before releasing an API change run diff_specs(old, new) and read the BREAKING and POTENTIALLY_BREAKING sections; changelog_markdown writes the release notes. find_endpoints, describe_operation and validate_example help you work with one operation at a time.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| spec_overviewA | Summarise an API description: format/version read, title, servers, number of tags, paths and operations (by method), auth schemes, schema count, deprecated count and any unresolved $refs (remote refs are reported, never fetched).
|
| lint_specA | Lint a spec. Findings have a rule id (OAS1001+), severity (error/warning/info), a JSON pointer, the source line when known, and a concrete fix. Rules cover operationIds, missing or non-2xx responses, path parameters vs the URL template, parameter naming, unused components, untyped schemas, required-not-in-properties, enum/default/example mismatches (checked with a built-in JSON Schema validator), missing descriptions, undefined security schemes, http:// production servers, POST-200 on creation, trailing slashes, duplicate paths and deprecations without a replacement note.
|
| diff_specsA | Compare two versions of an API and classify every change as BREAKING, POTENTIALLY_BREAKING (needs a human look), NON_BREAKING or INFO, with the reason and exact location (operation, schema path, JSON pointer, line). Rules follow request/response variance: in a request, tightening is breaking (new required parameter or property, narrower type, removed enum value, stricter min/max/pattern); in a response, loosening or removing guarantees is breaking (property removed or made optional, type changed, nullable added, success code removed). Also checks auth changes, content types, parameter style/location, oneOf/anyOf/allOf and discriminator. Equivalent specs written differently (reordered keys, $ref vs inline, nullable vs type [x,'null'], Swagger 2.0 vs OpenAPI 3) report no changes.
|
| changelog_markdownA | Write a human-readable markdown changelog for the move from |
| find_endpointsA | List operations of a spec, optionally filtered. |
| describe_operationB | Describe one operation: parameters (merged path-level + operation-level), the request
body and every response with their schemas fully resolved and shown as a compact outline
( |
| validate_exampleA | Check a JSON document against the resolved schema of an operation. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct action on the spec: summarise (spec_overview), lint, diff, changelog, search operations (find_endpoints), describe one operation, and validate an example. The main overlap is diff_specs vs changelog_markdown, which operate on the same old/new inputs and differ only in output format, and spec_overview vs find_endpoints both surface operation inventories. Descriptions make the boundaries clear enough that misselection is unlikely.
Most names follow a verb_noun snake_case pattern (lint_spec, diff_specs, find_endpoints, describe_operation, validate_example). Two deviate into noun_noun (spec_overview, changelog_markdown), which is a minor inconsistency rather than a breakdown. Casing is uniformly snake_case throughout.
Seven tools is well within the ideal range and each earns its place: read/summarise, lint, diff, render changelog, search, inspect one operation, and validate payloads. No redundant or filler tools; the surface is tightly scoped to static OpenAPI analysis.
The core lifecycle for spec analysis is covered: understand, lint, compare, document, navigate, and validate against schemas. Minor gaps remain, such as no autofix/apply-suggestion tool despite lint reporting concrete fixes, and no schema-only validation or spec conversion (Swagger 2.0 to OAS 3) beyond diffing. These are workaroundable but would be natural additions.