关于Yapi的mcp可获取接口地址及其请求、返回参数。快速生成前端api文件
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add auto-api-yapi -- npx -y auto-yapi-mcp~/.codex/config.toml
[mcp_servers.auto-api-yapi]
command = "npx"
args = ["-y", "auto-yapi-mcp"]
# codex mcp add auto-api-yapi -- npx -y auto-yapi-mcp~/.cursor/mcp.json
{
"mcpServers": {
"auto-api-yapi": {
"command": "npx",
"args": [
"-y",
"auto-yapi-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"auto-api-yapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"auto-yapi-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"auto-api-yapi": {
"command": "npx",
"args": [
"-y",
"auto-yapi-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"auto-api-yapi": {
"command": "npx",
"args": [
"-y",
"auto-yapi-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"auto-api-yapi": {
"command": "npx",
"args": [
"-y",
"auto-yapi-mcp"
]
}
}
}