A tool to retrieve API interface information from YApi, with authentication configurable via environment variables.
一个基于 Model Context Protocol (MCP) 的 YApi 接口信息获取工具
git clone https://github.com/twelve-web/yapi-mcp.git
cd yapi-mcp
npm install
npm run build
创建 .env
文件并添加 YApi 认证信息(可选):
YAPI_TOKEN=""
BASE_URL=""
node>18
npm 官方源
在 mcp.json 中添加:
{
"mcpServers": {
"auto-yapi-mcp": {
"command": "npx",
"args": ["-y", "auto-yapi-mcp"],
"env": {
"YAPI_TOKEN": "aa270a5a35f043540xxxxxxx5c908164f6fcae",
"BASE_URL": "https://fed.xxxx.com"
}
}
}
}
获取指定分类下的接口列表
参数:
url
(string): YApi 分类页面 URL,格式如 https://xxxxx.com/project/810/interface/api/cat_2783
示例:
工具: yapi_get_interfaces
参数: url = "https://xxxxx.com/project/810/interface/api/cat_2783"
获取指定接口的详细信息(请求体和响应体)
参数:
id
(string): 接口 ID,来自接口列表中的 _id
字段示例:
工具: yapi_get_interface_detail
参数: https://xxxxxxx/project/1219/interface/api/42726
yapi_get_interfaces
获取分类下的所有接口yapi_get_interface_detail
获取详细信息MIT
欢迎提交 Issue 和 Pull Request!
如有问题,请提交 Issue 或联系作者。
An MCP server for managing the software development lifecycle, with support for an optional external SQLite database.
Up-to-date documentation for your coding agent. Covers 1000s of public repos and sites. Built by ref.tools
🍎 Build iOS Xcode workspace/project and feed back errors to llm.
A test server that demonstrates all features of the MCP protocol, including prompts, tools, resources, and sampling.
A server for JavaScript/TypeScript development with intelligent project tooling and testing capabilities.
A server for Zep, a long-term memory store for AI applications, requiring a ZEP_API_KEY for access.
iOS Swift Package Manager server written in Swift
Popular MCP server that enables AI agents to scaffold, build, run and test iOS, macOS, visionOS and watchOS apps or simulators and wired and wireless devices. It has powerful UI-automation capabilities like controlling the simulator, capturing run-time logs, as well as taking screenshots and viewing the accessibility hierarchy.
A reasoning engine with multiple strategies, including Beam Search and Monte Carlo Tree Search.
Client implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.