← Back to Skills Marketplace
智能接口工具箱
by
Lancer Lin
· GitHub ↗
· v1.1.2
· MIT-0
154
Downloads
1
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install mocklab
Description
MockLab 是一个**智能接口工具箱**,支持 Mock 数据生成、请求转发、数据复现——接口开发调试一站式解决。 支持任意格式的接口文档(Markdown、Word、Java 源码、纯文本等)和任意结构(表格、嵌套 JSON、加密字段、数组对象等)。模型自动理解文档并驱动整个流程:解析文档 → 生成 Sch...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mocklab - After installation, invoke the skill by name or use
/mocklab - Provide required inputs per the skill's parameter spec and get structured output
Version History
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。
Metadata
Frequently Asked Questions
What is 智能接口工具箱?
MockLab 是一个**智能接口工具箱**,支持 Mock 数据生成、请求转发、数据复现——接口开发调试一站式解决。 支持任意格式的接口文档(Markdown、Word、Java 源码、纯文本等)和任意结构(表格、嵌套 JSON、加密字段、数组对象等)。模型自动理解文档并驱动整个流程:解析文档 → 生成 Sch... It is an AI Agent Skill for Claude Code / OpenClaw, with 154 downloads so far.
How do I install 智能接口工具箱?
Run "/install mocklab" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 智能接口工具箱 free?
Yes, 智能接口工具箱 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 智能接口工具箱 support?
智能接口工具箱 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 智能接口工具箱?
It is built and maintained by Lancer Lin (@lancer07); the current version is v1.1.2.
More Skills