10 days ago
Reusable MCP server for reading YApi interface metadata from a URL, interface ID, or project ID.
It is intentionally project-agnostic: this server fetches structured YApi data, while your coding agent or project-specific generator decides how to create services, TypeScript types, models, or API clients.
用于读取 YApi 接口元数据的 MCP server。你可以通过 YApi 页面 URL、接口 ID 或项目 ID 获取接口路径、请求参数、请求体、响应结构等信息。
它刻意保持项目无关:这个 MCP 只负责从 YApi 拉取结构化数据,至于如何生成 services、TypeScript 类型、model 或 API client,可以交给你的编码 agent 或项目专用生成器完成。
サーバー設定
{
"mcpServers": {
"yapi": {
"command": "npx",
"args": [
"-y",
"yapi-fetch-mcp"
],
"env": {
"YAPI_HOST": "https://yapi.example.com",
"YAPI_TOKEN": "project-token"
}
}
}
}