← Back to Skills

openapi-mock-server

v1.0.0 approved Development ⬇ 6 1d ago
USK v3 ✅ Verified ⚡ Auto-Convert
⬇ Download
Install Guide↓
🤖 Agent install commands (curl / MCP / Claude Desktop)
▸ curl one-liner
curl -L -o openapi-mock-server.skill   "https://aiskillstore.io/v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=ClaudeCode"
▸ MCP tool call (after registering Skill Store MCP)
{
  "tool": "download_skill",
  "arguments": {
    "skill_id": "ea8429fb-0e8b-451b-8b75-8a124147650b",
    "platform": "ClaudeCode"
  }
}
▸ Claude Desktop / Cursor MCP config (one-time)
{
  "mcpServers": {
    "skill-store": {
      "url": "https://aiskillstore.io/mcp/"
    }
  }
}
📖 Full agent API guide: /llms.txt  ·  MCP server card

Parse OpenAPI 3.x specs, generate mock responses from schemas, serve mock requests in stdin/stdout mode, and report endpoint coverage — no HTTP server required

# openapi # mock # api-testing # swagger # fake-data # development # testing

Basic Info

Owner 👤 aiskillstore-team Category Development Registered 2026-05-13 Last Updated 2026-05-14 Latest Version 1.0.0 Packaged At 2026-05-13 Vetting Status approved Downloads 6 Checksum (SHA256) 4748c461cdba1c7a6637c8d45b02484eb1d27be91a2853e66ded25a56ba2db44

⚡ AGENT INFO USK v3

Capabilities
openapi_mock_generation api_spec_parsing fake_data_generation mock_server api_coverage_reporting
Permissions
✗ network
✗ filesystem
✗ subprocess
Interface
type: cli   entry_point: main.py   runtime: python3   call_pattern: stdin_stdout
Agent API
# 스킬 스키마 조회 (에이전트가 호출 방법을 파악) GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/schema # 플랫폼별 자동 변환 다운로드 GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=OpenClaw GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=ClaudeCode GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=ClaudeCodeAgentSkill GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=Cursor GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=GeminiCLI GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=CodexCLI GET /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=CustomAgent

Installation

Compatible Platforms any

1
Install the skill using openclaw_skill_manager.py.
python openclaw_skill_manager.py --install openapi-mock-server
2
Verify installation
python openclaw_skill_manager.py --list-installed
3
Install a specific version (optional)
python openclaw_skill_manager.py --install openapi-mock-server --version 1.0.0
1
Download the skill package.
curl -O https://aiskillstore.io/v1/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download
2
Place it in the Claude Code commands directory.
unzip openapi-mock-server.skill -d ~/.claude/commands/openapi-mock-server/
3
Use it as a slash command in Claude Code.
/openapi-mock-server
1
Download the Agent Skills package.
curl -O https://aiskillstore.io/v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=ClaudeCodeAgentSkill
2
Unzip it into the Claude Code skills directory.
unzip openapi-mock-server-agent-skill-*.skill -d ~/.claude/skills/openapi-mock-server/
3
Restart Claude Code — the skill is auto-loaded at session start. No slash command needed.
1
Download the Cursor-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=Cursor
2
Unzip and place it in a permanent location.
unzip openapi-mock-server-cursor-*.skill -d ~/.cursor/skills/openapi-mock-server/
3
Add the MCP server config to .cursor/mcp.json, then restart Cursor.
cat ~/.cursor/skills/openapi-mock-server/cursor_mcp_config.json
1
Download the Gemini CLI-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=GeminiCLI
2
Unzip and place it in a permanent location.
unzip openapi-mock-server-geminicli-*.skill -d ~/.gemini/skills/openapi-mock-server/
3
Add the MCP server config to ~/.gemini/settings.json, then restart Gemini CLI.
cat ~/.gemini/skills/openapi-mock-server/gemini_settings_snippet.json
1
Download the Codex CLI-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download?platform=CodexCLI
2
Unzip and place it in a permanent location.
unzip openapi-mock-server-codexcli-*.skill -d ~/.codex/skills/openapi-mock-server/
3
Add the MCP server config to ~/.codex/config.toml, then restart Codex CLI.
cat ~/.codex/skills/openapi-mock-server/codex_config_snippet.toml
1
Download the skill package via REST API.
GET https://aiskillstore.io/v1/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/download
2
Place it in your agent platform's skills directory.
cp openapi-mock-server.skill ./skills/
3
Fetch platform-specific details via the Install Guide API.
GET https://aiskillstore.io/v1/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/install-guide?platform=CustomAgent

Security Vetting Report

Vetting Result CAUTION

🚨 Security risks detected:

  • main.py: __import__(

Findings: ["메타데이터 경고: 권장 필드 없음: 'requirements' (SKILL.md v2 권장)", "메타데이터 경고: 권장 필드 없음: 'changelog' (SKILL.md v2 권장)"]

AI Review Stage

Reviewer gemini Risk Level 🟢 Low Review Summary OpenAPI 스펙 파싱 및 목업 응답 생성 스킬로, 선언된 제한적인 권한을 준수하며 안전하게 동작합니다.
Reasoning

스킬 메타데이터에 선언된 네트워크, 파일 시스템, 서브프로세스 접근 권한 없음(`network: false`, `filesystem: false`, `subprocess: false`)을 코드에서 충실히 준수하고 있습니다. `main.py`에서 발견된 `__import__` 플래그는 Python의 모듈 로딩 메커니즘(예: `from lib.parser import ...`)에 의한 것으로, 사용자 입력에 기반한 동적 임포트나 악의적인 코드 실행과는 무관한 정적 임포트입니다. 이는 정적 분석 도구의 오탐으로 판단됩니다. `lib/parser.py`에서 YAML 파싱 시 `yaml.safe_load`를 사용하여 잠재적인 보안 취약점(임의 코드 실행)을 방지하고 있습니다. 스킬은 표준 입출력(`stdin_stdout`)을 통해서만 통신하며, 외부 통신이나 무단 데이터 수집/전송의 징후가 없습니다. 전반적으로 안전하며 스킬의 목적에 부합하는 고품질 코드입니다.

Version History

Version USK v3 Vetting Status Packaged At Downloads Changelog
v1.0.0 approved 2026-05-13 ⬇ 6

Examples 8

Representative input/output examples for this skill. Agents can use these to understand how to invoke the skill and what output to expect.

Parse OpenAPI spec

Extract all endpoints from an OpenAPI 3.x YAML spec

📥 Input
{
  "action": "parse",
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users:\n    get:\n      summary: List users\n      responses:\n        \"200\":\n          description: OK\n  /users/{id}:\n    get:\n      summary: Get user\n      responses:\n        \"200\":\n          description: OK\n"
}
📤 Output
{
  "endpoints": [
    {
      "method": "get",
      "path": "/users",
      "summary": "List users"
    },
    {
      "method": "get",
      "path": "/users/{id}",
      "summary": "Get user"
    }
  ],
  "ok": true
}
Generate mock response from schema

Auto-generate fake response data from an OpenAPI schema definition

📥 Input
{
  "action": "generate",
  "method": "get",
  "path": "/users/{id}",
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users/{id}:\n    get:\n      responses:\n        \"200\":\n          content:\n            application/json:\n              schema:\n                type: object\n                properties:\n                  id:\n                    type: integer\n                  name:\n                    type: string\n                  email:\n                    type: string\n",
  "status_code": 200
}
📤 Output
{
  "mock_response": {
    "body": {
      "email": "mock_string_email",
      "id": 1,
      "name": "mock_string_name"
    },
    "headers": {
      "content-type": "application/json"
    },
    "status_code": 200
  },
  "ok": true
}
Serve a mock request

Handle a mock API call and return a generated response matching the spec

📥 Input
{
  "action": "serve",
  "request": {
    "method": "get",
    "path": "/users/42"
  },
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users/{id}:\n    get:\n      responses:\n        \"200\":\n          content:\n            application/json:\n              schema:\n                type: object\n                properties:\n                  id:\n                    type: integer\n                  name:\n                    type: string\n"
}
📤 Output
{
  "mock_response": {
    "body": {
      "id": 1,
      "name": "mock_string_name"
    },
    "matched_path": "/users/{id}",
    "method": "get",
    "status_code": 200
  },
  "ok": true
}
Record an actual response as example

Save a real API response into the spec as an example for future mocking

📥 Input
{
  "action": "record",
  "method": "get",
  "path": "/users/1",
  "recorded_response": {
    "body": {
      "email": "alice@example.com",
      "id": 1,
      "name": "Alice"
    },
    "status_code": 200
  },
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users/{id}:\n    get:\n      responses:\n        \"200\":\n          description: OK\n"
}
📤 Output
{
  "matched_path": "/users/{id}",
  "ok": true,
  "recorded": true
}
Coverage report

Check which endpoints have mock examples defined and which do not

📥 Input
{
  "action": "coverage",
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users:\n    get:\n      responses:\n        \"200\":\n          content:\n            application/json:\n              examples:\n                default:\n                  value:\n                    id: 1\n  /products:\n    get:\n      responses:\n        \"200\":\n          description: OK\n"
}
📤 Output
{
  "coverage": {
    "coverage_pct": 50.0,
    "missing": [
      {
        "method": "get",
        "path": "/products",
        "status_code": 200
      }
    ],
    "total": 2,
    "with_examples": 1,
    "without_examples": 1
  },
  "ok": true
}
Error — invalid spec format

Returns structured error when spec cannot be parsed

📥 Input
{
  "action": "parse",
  "spec": "this is not valid yaml: or json { ["
}
📤 Output
{
  "error": {
    "code": "SPEC_PARSE_ERROR",
    "message": "Failed to parse spec: invalid YAML/JSON format"
  },
  "ok": false
}
Error — path not found in spec

Returns error when requested path does not exist in spec

📥 Input
{
  "action": "generate",
  "method": "get",
  "path": "/nonexistent",
  "spec": "openapi: \"3.0.0\"\ninfo:\n  title: Test API\n  version: \"1.0\"\npaths:\n  /users:\n    get:\n      responses:\n        \"200\":\n          description: OK\n"
}
📤 Output
{
  "error": {
    "code": "PATH_NOT_FOUND",
    "message": "Path \u0027/nonexistent\u0027 with method \u0027get\u0027 not found in spec"
  },
  "ok": false
}
Error — missing action

Returns structured error when action field is missing

📥 Input
{
  "spec": "openapi: 3.0.0"
}
📤 Output
{
  "error": {
    "code": "MISSING_ACTION",
    "message": "Field \u0027action\u0027 is required"
  },
  "ok": false
}

All examples are also available via the agent API: /v1/agent/skills/ea8429fb-0e8b-451b-8b75-8a124147650b/schema

Reviews & Ratings

No reviews yet. Be the first to leave one!

✍️ Write a Review