mock-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOCK_MCP | No | Enables the test runner hook so intercepted requests are routed to mock-mcp. | unset |
| MOCK_MCP_CACHE_DIR | No | Override the cache directory for daemon files (registry, socket, lock). | ~/.cache/mock-mcp |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_statusA | Get the current status of the mock-mcp daemon, including active test runs and pending batches. |
| list_runsB | List all active test runs connected to the daemon. |
| claim_next_batchA | Claim the next pending mock batch for processing. This acquires a lease on the batch. You MUST call this before provide_batch_mock_data. The batch will be locked for 30 seconds (configurable via leaseMs). If you don't provide mock data within the lease time, the batch will be released for another adapter to claim. |
| get_batchA | Get details of a specific batch by ID (read-only, does not claim). |
| provide_batch_mock_dataA | Provide mock response data for a claimed batch. You MUST first call claim_next_batch to get the batchId and claimToken. The mocks array must contain exactly one mock for each request in the batch. |
| release_batchA | Release a claimed batch without providing mock data. Use this if you cannot generate appropriate mocks. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcpland/mock-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server