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。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。