API Mock Server
Official6 toolsby lazymac2x · JavaScript
Cloudflare Workers MCP server: api-mock-server
Creates mock API endpoints for testing and development.
Topics
Captured live from the server via tools/list.
create_mock
OpenAPI/Swagger 스펙(JSON)으로 목업 API 서버를 생성합니다. 즉시 사용 가능한 엔드포인트 URL을 반환합니다.
Parameters (3)
- namestringrequired
목업 서버 이름
- specobjectrequired
OpenAPI 3.0 또는 Swagger 2.0 스펙 JSON 객체
- descriptionstring
목업 서버 설명 (선택)
list_mocks
생성된 모든 목업 서버 목록을 반환합니다.
No parameters.
get_mock_endpoint
특정 목업 서버의 상세 정보와 엔드포인트 목록을 반환합니다.
Parameters (1)
- mock_idstringrequired
목업 서버 ID
delete_mock
목업 서버를 삭제합니다.
Parameters (1)
- mock_idstringrequired
삭제할 목업 서버 ID
update_mock_response
특정 엔드포인트의 응답을 수정하거나 새 엔드포인트를 추가합니다.
Parameters (6)
- mock_idstringrequired
목업 서버 ID
- methodstringrequired
HTTP 메서드
- pathstringrequired
API 경로 (예: /users/{id})
- statusinteger
HTTP 상태 코드 (기본: 200)
- responseobject
반환할 응답 JSON 객체
- headersobject
추가 응답 헤더 (선택)
get_mock_logs
목업 서버에 들어온 요청 로그를 조회합니다.
Parameters (2)
- mock_idstringrequired
목업 서버 ID
- limitinteger
최대 로그 수 (기본: 50, 최대: 100)
README not available yet.
Install
Remote endpoint
Streamable HTTPHosted server - connect over the network, no local install.
https://api.lazy-mac.com/api-mock-server/mcpclaude_desktop_config.json
{
"mcpServers": {
"api-mock-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.lazy-mac.com/api-mock-server/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.