By tianmuji
YApi API documentation management plugin. Search, query, create, and export API documentation via YApi MCP server.
用于在 Claude Code 中查询和管理 YApi 接口文档的 MCP Server,支持 SSO 扫码认证。
| 工具 | 说明 |
|---|---|
yapi-auth | SSO 扫码登录(支持扫码 + 密码两步认证) |
yapi-logout | 退出登录 |
list_projects | 列出所有项目 |
get_project_info | 获取项目信息 |
list_apis | 列出项目下所有接口(按分类) |
get_api_detail | 获取接口详情 |
search_api | 搜索接口 |
create_api | 创建新接口(支持结构化 headers/query/body) |
update_api | 修改接口(支持结构化 headers/query/body) |
export_swagger | 导出 Swagger 文档 |
import_api_docs | 批量导出接口文档 |
前提条件:需要安装 Node.js(自带 npx)
通过插件安装可同时获得 MCP 工具和 /yapi skill:
# 1. 添加插件市场(仅首次需要)
claude plugin marketplace add tianmuji/camscanner-plugins
# 2. 安装 YApi 插件
claude plugin install yapi@camscanner-plugins
安装完成后重启 Claude Code,即可使用:
/yapi 激活 YApi 助手,自动引导完成认证和操作Windows 上 npx 需要 cmd /c 包装,请直接编辑配置文件 %USERPROFILE%\.claude\.mcp.json:
{
"mcpServers": {
"yapi": {
"command": "cmd",
"args": ["/c", "npx", "-y", "git+https://gitlab.intsig.net/cs-templates/skills/yapi-mcp-server.git"],
"env": {
"YAPI_BASE_URL": "https://web-api.intsig.net",
"SSO_LOGIN_URL": "https://web-sso.intsig.net/login",
"SSO_PLATFORM_ID": "odVOyexj6maKIHAXv9LflO8tw7WNOI4I",
"SSO_CALLBACK_DOMAIN": "https://www-sandbox.camscanner.com/activity/mcp-auth-callback",
"SSO_CALLBACK_PORT": "9876"
}
}
}
}
如果文件中已有其他 MCP 配置,将
yapi部分合并到mcpServers对象中即可。
重启 Claude Code,在对话中调用 yapi-auth 完成 SSO 扫码登录即可使用。
无需克隆仓库、无需配置 hosts 文件,开箱即用。
| 变量 | 必填 | 默认值 | 说明 |
|---|---|---|---|
YAPI_BASE_URL | 是 | - | YApi 服务地址 |
SSO_LOGIN_URL | 否 | https://web-sso.intsig.net/login | SSO 登录页 |
SSO_PLATFORM_ID | 否 | odVOyexj6maKIHAXv9LflO8tw7WNOI4I | SSO 平台 ID |
SSO_CALLBACK_DOMAIN | 是 | - | 中转页 URL 或本地回调域名 |
SSO_CALLBACK_PORT | 否 | 9876 | 回调端口 |
# 列出项目
> 列出我能访问的所有 YApi 项目
# 查看接口
> 查看项目 3470 的所有接口
# 搜索接口
> 搜索项目 3470 中包含 "脱敏" 的接口
# 创建接口(支持完整的结构化定义)
> 在项目 3959 分类 69247 下创建一个 POST /api/test 接口,
> 包含 Content-Type header、token query 参数、JSON body 和响应体
# 复制接口
> 把项目 3470 的批量脱敏接口复制到项目 3959
# 批量导出
> 导出项目 3470 的所有接口文档
~/.yapi-mcp/credentials.jsonyapi-authExternal network access
Connects to servers outside your machine
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub tianmuji/camscanner-plugins --plugin yapiCamScanner encrypted log decryption plugin. Decrypt iOS/Android encrypted logs via operate platform.
TAPD bug tracking management plugin. Query bug lists, view bug details, and fix bugs with e2e test verification.
CamScanner backend configuration management plugin.
C3S customer service platform plugin. Query tickets, view complaint details, and analyze media attachments.
CamScanner multi-language string integration plugin. Search, export, and write locale strings via MCP language server.
Use YApi from Claude Code through the local yapi CLI. Install it automatically, reuse existing login state, inspect interfaces, and run docs-sync workflows.
Generate comprehensive API documentation from OpenAPI/Swagger specs
Generate API documentation for endpoints
Creates professional API documentation using OpenAPI specifications with endpoints, authentication, and interactive examples. Use when documenting REST APIs, creating SDK references, or building developer portals.
Create comprehensive documentation for code, APIs, and projects.
OpenAPI CLI expert for @desplega.ai/oapi - register specs, execute requests, manage auth