By leeguooooo
Query YApi API interfaces by ID, keyword, path, or category; manage logins and authentication; bind local docs directories to YApi projects; and run sync workflows—all via integrated local CLI with automatic installation and state reuse.
Create a docs-sync binding between local docs and a YApi category.
Fetch a YApi interface by numeric ID.
List YApi interfaces under a category ID.
Prepare the local YApi CLI and then run yapi login using the user's existing config flow.
Run YApi docs-sync for one binding or for all configured bindings.
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.
面向 API 开发/测试的 Chrome 扩展:绕过 CORS 发请求、自动生成 cURL,并对 YApi「运行」页做增强(内嵌 cURL、路径参数 {param} 引导填写)。
本仓库包含生态内的多个子项目:
packages/yapi-mcp — CLI / Skill(发布包名保持为 @leeguoo/yapi-mcp,MCP 配置作为兼容方案保留,不影响扩展打包)plugins/yapi-plugin — Cursor 与 Claude Code 插件(已从原独立仓库 leeguooooo/yapi-plugin 归档并整合回本仓库)当前推荐安装链路是 npx skills add leeguooooo/cross-request-master -y -g 安装 Skill,再用 yapi config init 初始化 ~/.yapi/config.toml。yapi-mcp 已支持浏览器登录同步 Cookie(yapi login --browser),可用于仅支持 SSO/无法账号密码登录的 YApi 场景。
crossRequest,由扩展后台代发{param} 时提示填写,避免请求失败npx skills add)/ Cursor 与 Claude Code 插件(plugins/yapi-plugin/)/ MCP 配置(兼容)/ CLI 使用与 docs-syncfetch / Promise 工作流,兼容历史 $.ajaxChrome Web Store(推荐)
https://chrome.google.com/webstore/detail/efgjanhcajpiljllnehiinpmicghbgfm
开发者模式
git clone https://github.com/leeguooooo/cross-request-master.git
cd cross-request-master
./build-extension.sh
然后在 chrome://extensions/ 开启开发者模式 → “加载已解压的扩展程序” → 选择 build/。
安装后直接在 YApi「运行」页发送请求即可,扩展会自动处理跨域、显示 cURL,并把 JSON 响应解析为对象供脚本使用。
在接口详情页(基本信息区域右上角)额外提供:
npx skills add)、MCP 配置(兼容)、CLI 使用与 docs-sync 说明(自动拼好命令)如果你要在本机直接装好 Skill + CLI,当前最短路径是:
npm install -g @leeguoo/yapi-mcp
npx skills add leeguooooo/cross-request-master -y -g
yapi config init --base-url=https://your-yapi-domain.com --auth-mode=global [email protected]
yapi login --base-url=https://your-yapi-domain.com --browser
更完整说明见 packages/yapi-mcp/README.md。
clawhub sync --all):pnpm run clawhub:sync:dry
pnpm run clawhub:sync
扩展在页面侧额外暴露 window.crossRequest.yapiMcp(也可用 window.crossRequest.yapi),把 YApi OpenAPI 封装成与 Yapi-MCP 一致的 5 个方法,方便直接在浏览器控制台/脚本里操作接口文档:
// 先配置(支持多项目:'28:token1,29:token2')
window.crossRequest.yapiMcp.configure({
baseUrl: 'https://your-yapi-domain.com',
token: '28:your_project_token'
});
// 查接口、拉分类、搜索、保存
const api = await window.crossRequest.yapiMcp.yapi_get_api_desc({ projectId: '28', apiId: '66' });
window.crossRequest({
url: 'https://api.example.com/data',
method: 'GET',
headers: { Authorization: 'Bearer token' },
success(res) {
console.log('Success:', res);
},
error(err) {
console.error('Error:', err);
}
});
crossRequest 也会返回 Promise:
const resp = await window.crossRequest({ url: '/api/ping' });
console.log(resp.status, resp.data);
大多数场景建议直接使用 fetch + window.crossRequest。以下仅用于历史页面仍依赖 $.ajax 时:
$.ajax。如需关闭:crossRequest: falsecrossRequest: true$.ajax({
url: 'https://api.example.com/data',
method: 'GET',
crossRequest: true
});
const fd = new FormData();
fd.append('file', fileInput.files[0]);
fd.append('name', 'demo');
await window.crossRequest({
url: 'https://api.example.com/upload',
method: 'POST',
body: fd
});
仓库内置 types/cross-request.d.ts,可直接复制到你的项目并在 tsconfig.json 中 include,或在 global.d.ts 引用:
/// <reference path="./types/cross-request.d.ts" />
Access-Control-Request-Headers:这是浏览器 CORS 预检行为,需要服务端正确返回 Access-Control-Allow-Headers。npx claudepluginhub leeguooooo/cross-request-master --plugin yapi-pluginLightweight Claude Code status-line monitor with switchable styles, themes, and slash commands. v3.14.1 lowers the projection red line to 85% (yellow now 70–84) so a 7d window heading for →99% reads red instead of merely warm. v3.14.0 colours the 5h/7d bars by where usage is HEADED, not where it is now: once an end-of-window projection exists, the bar fill, label, and reset clock take their severity from the projected % against the cap (green <80, yellow 80–99, red ≥100) while the fill length still shows current usage — so a 7d window at 24% but on track for →96% reads yellow instead of a falsely-healthy green (all three styles). It also fixes the →NN% projection reading far too low for the first ~15 min after a reset (it was seeded from the used=0 first tick and lagged); it now holds `→--` until MIN_ELAPSED, then seeds from the first trustworthy reading. v3.13.3–v3.13.5 fix the 5h/7d bars sticking at a stale high % after Anthropic re-baselines usage mid-window (e.g. weekly limit raised): the cross-session merge now accepts an official downward revision once the old reading goes unconfirmed for 120s, idle windows replaying hours-old rate_limits blobs (expired 5h reset) can no longer overwrite or re-confirm the shared reading, and the →NN% projection drops its old-denominator samples and relearns after a re-baseline instead of freezing for the rest of the window. v3.13.0 adds a ⚙ session-mode line — effort (low/medium/high/xhigh/max/ultracode/auto) · thinking · fast · output-style — with a distinct static colour gradient per effort tier. v3.12.0 adds an always-on end-of-window projection (→NN%, learned from your local work rhythm) + an at-risk `⚠eta` forecast after each reset timer, session lines on by default, and a faint on-bar version that shows a `↑` hint when a newer release is on PyPI. v3.10.0 adds an opt-in live-activity line (in-progress todo, active tool, completed-tool rollup), git ahead/behind + session duration/lines on the project line, running-subagent lines, an opt-in `bar_shimmer` starfield on the battery bars, and a self-hosted plugin marketplace — plus a reliability fix so auto-update actually runs in daemon mode (detached, non-blocking) and the cache countdown is now per-session-correct. v3.9.0 makes the `cache` countdown auto-detect the real prompt-cache TTL (5m vs 1h) from the transcript, fixing a ~55-minute early `cache COLD` for Claude subscription users (Claude Code requests the 1-hour TTL automatically). v3.7.0 defends against status-line hijacking: a new `cs --setup --project [PATH]` writes a project-level override so another tool stealing the global `~/.claude/settings.json` slot can't kick `cs` out of this project; when displacement is detected, the bar also surfaces a one-line warning. v3.6.0 makes daemon (fast) mode the default for `cs --setup` — under 1% CPU continuously instead of ~3% inline at refreshInterval=1; pass `--inline` to opt back. Requires the `cs` CLI from PyPI (`pip install claude-statusbar` or `uv tool install claude-statusbar`).
Cloudflare Wrangler multi-account helper with a bundled skill and Bash guard hook for Claude Code.
Cloudflare Wrangler multi-account helper with a bundled skill and Bash guard hook for Claude Code.
Use ZenTao from Claude Code through the local zentao CLI. Install it automatically, reuse existing login state, inspect products and bugs, and run self-test workflows.
Decrypt encrypted curl request parameters and encrypt payloads for test-service calls through a local curl-crypto CLI.
Full API lifecycle management for Claude Code. Sync collections, generate client code, discover APIs, run tests, create mocks, publish docs, and audit security. Powered by the Postman MCP Server.
OpenAPI CLI expert for @desplega.ai/oapi - register specs, execute requests, manage auth
Generate comprehensive API documentation from OpenAPI/Swagger specs
Use this agent to update, synchronize, or validate the OpenAPI specification (openapi.yml) against the actual REST API implementation. This includes adding new endpoints, updating request/response schemas, fixing discrepancies between the spec and code, or ensuring complete API documentation coverage.
Generate API documentation for endpoints
API design, documentation, and testing with OpenAPI spec generation