https://petstore.swagger.io/v2/swagger.json)~/data/petstore/swagger.json){
"mcpServers": {
"API specification": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--oas=<oas-url-or-path>"
]
}
}
}<oas-url-or-path> 替换为:https://petstore.swagger.io/v2/swagger.json)~/data/petstore/swagger.json)mcp.json 文件中,添加以下配置。将 https://petstore.swagger.io/v2/swagger.json 替换为你的实际 OpenAPI 文件路径或 URL:{
"mcpServers": {
"API specification": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--oas=https://petstore.swagger.io/v2/swagger.json"
]
}
}
}Please fetch API documentation via MCP and tell me how many endpoints exist in the project--oas 参数。{
"mcpServers": {
"Petstore API": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--oas=https://petstore.swagger.io/v2/swagger.json"
]
},
"Local API": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--oas=~/data/my-api/openapi.yaml"
]
}
}
}{
"mcpServers": {
"API specification": {
"command": "npx",
"args": [
"-y",
"apidog-mcp-server@latest",
"--oas=<oas-url-or-path>",
"--apidog-api-base-url=<your-server-url>"
]
}
}
}<your-server-url> 替换为你的本地化服务器 API 地址(以 http:// 或 https:// 开头)。确保可以通过网络访问 www.npmjs.com。