oasdiff

Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~715token 数(工具定义)
~785 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.56%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "oasdiff": {
      "url": "https://api.oasdiff.com/mcp"
    }
  }
}

远程端点

https://api.oasdiff.com/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟡oasdiff_breaking_changes(base, revision)

Detect breaking API changes between two OpenAPI specifications. Pass the base (old) and revision (new) specs as YAML or JSON; returns the breaking and warning-level changes. Use this when the question is whether an API change breaks existing clients. Use oasdiff_changelog instead to list every change including non-breaking and informational ones, oasdiff_diff for the raw added/removed/modified structure, or oasdiff_validate to check a single spec rather than compare two. Both specs must be valid, self-contained OpenAPI (external $ref URLs or files are not resolved).

输入模式

{
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "description": "the base (old) OpenAPI specification, as YAML or JSON"
    },
    "revision": {
      "type": "string",
      "description": "the revision (new) OpenAPI specification, as YAML or JSON"
    }
  },
  "required": [
    "base",
    "revision"
  ],
  "additionalProperties": false
}
🟡oasdiff_changelog(base, revision)

Produce a full changelog of every detected change between two OpenAPI specifications (base vs revision), down to informational changes. Pass both specs as YAML or JSON. Use this when you want the complete set of changes at every severity. Use oasdiff_breaking_changes instead when you only care whether the change is breaking (less noise), or oasdiff_diff for the raw structural diff without a backward-compatibility judgment. Both specs must be valid, self-contained OpenAPI (external $ref URLs or files are not resolved).

输入模式

{
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "description": "the base (old) OpenAPI specification, as YAML or JSON"
    },
    "revision": {
      "type": "string",
      "description": "the revision (new) OpenAPI specification, as YAML or JSON"
    }
  },
  "required": [
    "base",
    "revision"
  ],
  "additionalProperties": false
}
🟢oasdiff_diff(base, revision)

Show the structural diff between two OpenAPI specifications (base vs revision): what was added, removed, or modified. Pass both specs as YAML or JSON. Use this when you want the raw structural changes rather than a backward-compatibility verdict. Use oasdiff_breaking_changes to judge whether changes break clients, or oasdiff_changelog for a severity-classified changelog. Both specs must be valid, self-contained OpenAPI (external $ref URLs or files are not resolved).

输入模式

{
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "description": "the base (old) OpenAPI specification, as YAML or JSON"
    },
    "revision": {
      "type": "string",
      "description": "the revision (new) OpenAPI specification, as YAML or JSON"
    }
  },
  "required": [
    "base",
    "revision"
  ],
  "additionalProperties": false
}
🟢oasdiff_validate(spec)

Validate a single OpenAPI specification against the OpenAPI and JSON Schema rules. Pass the spec as YAML or JSON; returns the findings (empty when the spec is valid). Use this when you have one spec and want to check it is well-formed. For comparing two specs, use oasdiff_breaking_changes, oasdiff_changelog, or oasdiff_diff instead. The spec must be self-contained (external $ref URLs or files are not resolved).

输入模式

{
  "type": "object",
  "properties": {
    "spec": {
      "type": "string",
      "description": "the OpenAPI specification to validate, as YAML or JSON"
    }
  },
  "required": [
    "spec"
  ],
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具
已验证未记录版本4 个工具