oasdiff

io.github.oasdiff由 GitHub 账号 oasdiff 发布v1.0.0更新于 Oct 25, 2026

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

已验证Streamable HTTP可网页运行开发者工具数据与分析

概览

AI 生成的概览

一个远程 MCP 服务器,让助手校验 OpenAPI 规范,并比较两个版本以找出破坏性变更、生成变更日志和结构差异。

可以做什么
按 OpenAPI 与 JSON Schema 规则校验单个 OpenAPI 规范并返回检查结果,规范有效时结果为空。比较基准版本与修订版本,识别影响现有客户端的破坏性和警告级变更。生成涵盖所有已检测变更(直至信息级)的完整变更日志。展示两个规范之间新增、删除或修改的原始结构差异。规范以 YAML 或 JSON 传入。
适用场景
适合在发布前审查 API 变更是否破坏现有客户端,需要两个规范版本之间的完整变更日志,或检查单个 OpenAPI 文档是否格式正确时使用。
运行要求
远程 streamable HTTP 端点 api.oasdiff.com;未声明认证、环境变量或请求头。规范以 YAML 或 JSON 在工具调用中传入,需要能访问该端点的网络。
安装前请注意
传入的规范会发送到第三方远程服务,请避免包含机密 API 定义或其中嵌入的密钥。这些工具只做分析和报告,不会修改你的规范。

安装

在 SourceWeft 中

  1. 打开 控制台中的 oasdiff,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.oasdiff%2Foasdiff/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

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

工具

4

oasdiff_breaking_changes

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).

输入参数base必填revision必填

oasdiff_changelog

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).

输入参数base必填revision必填

oasdiff_diff

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).

输入参数base必填revision必填

oasdiff_validate

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).

输入参数spec必填

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。