{
"mcpServers": {
"API 文档": {
"command": "npx",
"args": [
"-y",
"apifox-mcp-server@latest",
"--oas=<oas-url-or-path>"
]
}
}
}<oas-url-or-path> 可以是:https://petstore.swagger.io/v2/swagger.json~/data/petstore/swagger.jsonmcp.json 文件中添加以下配置,注意替换 https://petstore.swagger.io/v2/swagger.json 为你的 OpenAPI 文件路径或 URL:{
"mcpServers": {
"API 文档": {
"command": "npx",
"args": [
"-y",
"apifox-mcp-server@latest",
"--oas=https://petstore.swagger.io/v2/swagger.json"
]
}
}
}请通过 MCP 获取 API 文档,并告诉我项目中有几个接口.json 文件中添加以下配置,注意替换 <oas-url-or-path> 为你的 OpenAPI 文件路径或 URL:{
"mcpServers": {
"API 文档": {
"command": "npx",
"args": [
"-y",
"apifox-mcp-server@latest",
"--oas=https://petstore.swagger.io/v2/swagger.json"
]
}
}
}请通过 MCP 获取 API 文档,并告诉我项目中有几个接口