← 返回 Skills 市场
lancer07

智能接口工具箱

作者 Lancer Lin · GitHub ↗ · v1.1.2 · MIT-0
cross-platform ✓ 安全检测通过
154
总下载
1
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install mocklab
功能描述
MockLab 是一个**智能接口工具箱**,支持 Mock 数据生成、请求转发、数据复现——接口开发调试一站式解决。 支持任意格式的接口文档(Markdown、Word、Java 源码、纯文本等)和任意结构(表格、嵌套 JSON、加密字段、数组对象等)。模型自动理解文档并驱动整个流程:解析文档 → 生成 Sch...
安全使用建议
This skill is internally consistent with its claimed purpose (local mock server + AI-driven schema generation). Before installing/running: 1) Review the code locally (mock_server.py, ui.html). 2) Be aware the UI loads an external CDN JS file — if you prefer, host assets locally or replace the remote script. 3) The 'Real Proxy' will forward requests (and any headers you configure) to arbitrary targets — do not forward sensitive credentials or internal endpoints you don't trust. 4) The server will create schema_store/ and state_store.json in the skill folder; those files may contain generated tokens/state—store them appropriately. 5) You must install Python dependencies (FastAPI, uvicorn, httpx) and optionally Playwright; prefer installing from official package indexes. If you want higher assurance, run the server in an isolated environment (container or VM) and audit/replace external CDN usage before exposing it to others.
功能分析
Type: OpenClaw Skill Name: mocklab Version: 1.1.2 The MockLab skill bundle is a comprehensive tool for generating mock API responses and managing development workflows. The Python server (mock_server.py) implements a robust mock engine for synthetic data generation (e.g., ID cards, phone numbers) and includes a proxy feature for forwarding requests to local backends. While the proxy functionality and file-writing capabilities (schema_store/) represent a standard attack surface for SSRF or path traversal, the implementation is consistent with the stated purpose of a developer utility. No evidence of intentional data exfiltration, malicious code execution, or harmful prompt injection was found across the code, tests, or documentation.
能力评估
Purpose & Capability
Name/description (MockLab: mock data, proxy, state, UI) match the included code and UI: mock_server.py implements a FastAPI server, a UI is embedded, schema/state are persisted. No unrelated cloud credentials or unrelated binaries are requested.
Instruction Scope
SKILL.md instructs the agent to read documents from local files, fetch URLs, or accept pasted content — this is necessary for parsing API docs. It also instructs starting a local Python server and opening http://localhost:18080. This scope is appropriate for a mock-server skill, but it does give the agent access to any document you point it at; do not feed it files containing unrelated secrets or credentials.
Install Mechanism
There is no automated install spec; the repo includes Python code, Playwright tests, and package.json but does not install dependencies automatically. The UI (ui.html) references an external CDN (https://cdn.xjietiao.com) to load a JS file — that external resource will be fetched by clients viewing the UI and should be considered a trust/untrusted origin decision. Dependencies (FastAPI, uvicorn, httpx) must be installed by the user.
Credentials
The skill requests no environment variables or external credentials, which is proportional. However, the server exposes a 'Real Proxy' feature that will forward requests (including headers) to arbitrary target addresses you configure — if you supply Authorization headers or target internal services, sensitive data can be transmitted. The server also persists schema_store/ and state_store.json on local disk.
Persistence & Privilege
always:false and no special privileges requested. The server creates local files (schema_store/, state_store.json, custom_store.json) which is expected for this functionality. It does not attempt to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mocklab
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mocklab 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.2
MockLab 1.1.2 - 引入自动化测试体系,新增 Playwright 测试脚本与相关配置(tests/e2e.spec.js、playwright.config.js等)。 - 新增多份文档与日志文件支持(.gitignore、TEST_GUIDE.md、debug.log、output.txt)。 - 增加 package.json,便于 Node.js 测试环境依赖管理。 - 内置静态资源文件 static/jquery.min.js。 - SKILL.md 产品文案升级,更突出功能定位“智能接口工具箱”,强调 Mock 数据生成、请求转发、数据复现等能力。
v1.0.5
- 添加了参考示例与字段规范文件(references/demo.json, references/demo__实际返回示例.json, references/field_keys.md),用于指导 Schema 生成。 - SKILL.md 强制要求 Schema 生成时,字段名必须与接口文档保持一致,禁止转换/发明字段名,并强调参考 field_keys.md。 - 新增本地环境配置和静态样式文件,完善 UI 与本地配置支持。 - SKILL.md 增补 "is_ref" 作为跨接口状态关联标记,字段说明更精确。 - 其它文档与结构性文件同步更新,提升整体易用性和一致性。
v1.1.1
mocklab 1.1.0 - No file changes detected in this version. - SKILL.md structure and content remain unchanged. - No new features, bug fixes, or updates introduced.
v1.1.0
Initial release of mocklab. - Added third-party API mock server for interface debugging and testing. - Supports automatic parsing of diverse API documentation formats and structures. - Auto-generates schemas and launches a FastAPI-based mock server with UI. - State persistence with `state_store.json` for cross-request value retention. - Schema storage per project to support multiple independent mock configurations.
v1.0.0
MockLab 1.0.0 — 第三方接口一键 Mock 服务器 - 支持解析任意格式、任意结构的第三方接口文档,自动生成 Mock Schema。 - 一键启动本地 Mock Server,内嵌可视化 UI,支持多项目管理与热加载。 - 字段语义智能判断,常用字段类型(手机号、身份证、金额、嵌套对象等)自动推断 mock 规则。 - 支持字段加密处理、跨接口状态引用、状态自动持久化。 - 自动端口占用处理、错误友好提示与关键字段缺失标注。 - 可通过多种触发词快速搭建 Mock 服务,便于调试第三方 API。
元数据
Slug mocklab
版本 1.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

智能接口工具箱 是什么?

MockLab 是一个**智能接口工具箱**,支持 Mock 数据生成、请求转发、数据复现——接口开发调试一站式解决。 支持任意格式的接口文档(Markdown、Word、Java 源码、纯文本等)和任意结构(表格、嵌套 JSON、加密字段、数组对象等)。模型自动理解文档并驱动整个流程:解析文档 → 生成 Sch... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。

如何安装 智能接口工具箱?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mocklab」即可一键安装,无需额外配置。

智能接口工具箱 是免费的吗?

是的,智能接口工具箱 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

智能接口工具箱 支持哪些平台?

智能接口工具箱 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 智能接口工具箱?

由 Lancer Lin(@lancer07)开发并维护,当前版本 v1.1.2。

💬 留言讨论