aimock Documentation
aimock is the complete mock infrastructure for AI application testing. Start with LLM API mocking, add MCP tools, A2A agents, vector databases, and services as your stack grows. One package. Zero dependencies.
The Suite
Quick Start
I want to mock LLM APIs
Programmatic usage
ts
import { LLMock } from "@copilotkit/aimock";
const mock = new LLMock();
await mock.start();
mock.onMessage("hello", { content: "Hi there!" });
I want to mock my entire AI stack
aimock.json config
json
{
"llm": { "fixtures": "./fixtures/llm" },
"mcp": { "tools": ["search", "fetch"] },
"a2a": { "agents": ["planner"] },
"vector": { "provider": "pinecone" }
}