api-mock-server
Generate and run mock API servers from OpenAPI specifications
Best use case
api-mock-server is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate and run mock API servers from OpenAPI specifications
Teams using api-mock-server should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/api-mock-server/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How api-mock-server Compares
| Feature / Agent | api-mock-server | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate and run mock API servers from OpenAPI specifications
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# API Mock Server Skill
## Overview
Generates and runs mock API servers from OpenAPI specifications with dynamic response generation, request validation, and Prism/Mockoon integration.
## Capabilities
- Generate mock server from OpenAPI spec
- Dynamic response generation based on schemas
- Request validation against spec
- Prism and Mockoon integration
- Custom response scenarios
- Callback and webhook simulation
- Stateful mock behavior
## Target Processes
- api-design-specification
- microservices-decomposition
## Input Schema
```json
{
"type": "object",
"required": ["specPath"],
"properties": {
"specPath": {
"type": "string",
"description": "Path to OpenAPI specification"
},
"port": {
"type": "number",
"default": 4010
},
"engine": {
"type": "string",
"enum": ["prism", "mockoon", "custom"],
"default": "prism"
},
"options": {
"type": "object",
"properties": {
"dynamic": {
"type": "boolean",
"default": true,
"description": "Generate dynamic responses"
},
"validateRequest": {
"type": "boolean",
"default": true
},
"cors": {
"type": "boolean",
"default": true
},
"scenarios": {
"type": "array",
"description": "Custom response scenarios"
}
}
}
}
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"serverUrl": {
"type": "string"
},
"port": {
"type": "number"
},
"endpoints": {
"type": "array",
"items": {
"type": "object",
"properties": {
"method": { "type": "string" },
"path": { "type": "string" }
}
}
},
"pid": {
"type": "number",
"description": "Process ID of running server"
}
}
}
```
## Usage Example
```javascript
{
kind: 'skill',
skill: {
name: 'api-mock-server',
context: {
specPath: 'api/openapi.yaml',
port: 4010,
engine: 'prism',
options: {
dynamic: true,
validateRequest: true
}
}
}
}
```Related Skills
mock-data
Creates typed mock data files in src/data/ following project conventions. Use when needing test data for new features or components.
solidstart-advanced-server
SolidStart advanced server: getRequestEvent for request context, static assets handling, returning responses, request events and nativeEvent access.
server-management
Server management principles and decision-making. Process management, monitoring strategy, and scaling decisions. Teaches thinking, not commands.
quarkus-mcp-server-sse
Quarkus and MCP Server with HTTP SSE transport development standards and instructions Triggers on: *
php-mcp-server
Best practices for building Model Context Protocol servers in PHP using the official PHP SDK with attribute-based discovery and multiple transport options Triggers on: **/*.php
mcpserver
Migrates an MCP server with interactive widgets from the OpenAI Apps SDK (window.openai, text/html+skybridge) to the MCP Apps standard (@modelcontextprotocol/ext-apps), covering server-side and client-side changes.
MCP Server Architecture
This skill should be used when the user asks to "create an MCP server", "set up MCP server", "build ChatGPT app backend", "MCP transport type", "configure MCP endpoint", "server setup for Apps SDK", or needs guidance on MCP server architecture, transport protocols, or SDK setup for the OpenAI Apps SDK.
java-mcp-server
Best practices and patterns for building Model Context Protocol (MCP) servers in Java using the official MCP Java SDK with reactive streams and Spring integration. Triggers on: **/*.java, **/pom.xml, **/build.gradle, **/build.gradle.kts
github-mcp-server
GitHub MCP Server Documentation
bitbucket-server
This skill enables interaction with BitBucket Server REST API for Pull Request management. Use when the user wants to create, review, comment on, merge, list pull requests, read comments, or manage tasks on BitBucket Server.
asyncredux-observers
Set up observers for debugging and monitoring. Covers implementing actionObservers for dispatch logging, stateObserver for state change tracking, combining observers with globalWrapError, and using observers for analytics.
api-testing-observability-api-mock
You are an API mocking expert specializing in realistic mock services for development, testing, and demos. Design mocks that simulate real API behavior and enable parallel development.