載入 OpenAPI 3.x 規格
拖放或貼上內部 .yaml、.yml 或 .json API 規格檔案。
私密橋接內部 REST API 至 Claude、Cursor 與 AI 代理人 — 清理 <=64 字元的工具名稱、解析 $ref 主體,並輸出 TypeScript MCP 存根程式碼。
選擇 OpenAPI YAML / JSON
OpenAPI 3.x YAML/JSON · Zod v4 Schema · 僅限 GET 篩選.yaml · .yml · .json
零上傳限制 · 執行於瀏覽器記憶體
立即產生 MCP 伺服器 TypeScript
openapi: 3.0.3
info:
title: Orders API
version: 1.0.0
paths:
/orders:
get:
operationId: listOrders
summary: List recent customer orders
parameters:
- name: limit
in: query
required: false
schema:
type: integer
post:
operationId: createOrder
summary: Create a new order
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [sku, qty]
properties:
sku:
type: string
qty:
type: integerpetstore-openapi.yaml 的瀏覽器本機輸出預覽| 屬性 | OpenAPI / MCP |
|---|---|
| 副檔名 | .ts |
| MIME 類型 | application/yaml |
| 結構類型 | 強型別 Schema |
| 編碼方式 | UTF-8 純文字 |
| 巢狀支援 | 是 |
| LLM Token 效率 | 中 |
| Schema / 型別約束 | 是 |
| 最佳適用場景 | 將現有 REST API 規格乾淨地封裝為 Claude Desktop、Cursor、Antigravity 等用戶端可呼叫的 MCP 代理工具。 |
在本機將 OpenAPI YAML/JSON 規格轉換為 Model Context Protocol (MCP) TypeScript 工具定義與 Zod v4 輸入 Schema。
拖放或貼上內部 .yaml、.yml 或 .json API 規格檔案。
設定伺服器識別名稱、啟用 Zod v4 輸入 Schema,或篩選僅包含 GET 端點。
在本機複製或下載立即可用的 McpServer.tool(...) 定義程式碼。
將樣本 JSON 轉換為嚴格的 OpenAI response_format(strict: true、additionalProperties: false)或 Anthropic Tool Use Schema。
將 JSON Schema($defs、$ref、enum、minimum、minLength、description)編譯為道地的 Zod v4 TypeScript 程式碼。
離線量測精確的 o200k_base 與 cl100k_base BPE Token 數、上下文視窗佔比、API 費用估算與 TOON 節省量。
絕不會。YAML/JSON 解析、$ref 參照展開與 TypeScript 程式碼產生皆嚴格在瀏覽器記憶體中執行。
operationId 名稱?每個工具名稱都會清理為符合 ^[a-zA-Z0-9_-]{1,64}$ 格式,若發生截斷或去重則會顯示診斷訊息。
可以。勾選「僅包含唯讀 GET 端點」,即可略過會修改資料的 POST、PUT、PATCH 與 DELETE 端點。