@frontmcp/testing is the official testing library for FrontMCP, providing a complete toolkit for end-to-end testing of MCP servers. Test your tools, resources, prompts, authentication, plugins, and the full MCP protocol.
Fixture-Based
Playwright-inspired fixtures inject ready-to-use test clients
The repository ships apps/demo-showcase, a minimal notes server dedicated to @frontmcp/testing. Use it as a blueprint for wiring fixtures, HTTP mocking, and the prompts/resources APIs end to end.
The Notes app lives in apps/demo-showcase/src/apps/notes with an in-memory notesStore. The Jest suites under apps/demo-showcase/e2e default to test.describe.skip until local auth ships—remove .skip when you are ready to run them locally.
tools.e2e.ts exercises the create/list/get/delete tools, validates Zod errors, and clears shared state between tests.
resources.e2e.ts covers resources/list, resources/templates/list, and typed JSON reads for the notes:// URIs.
prompts.e2e.ts checks prompts/list, prompts/get, argument validation, and multi-message payloads backed by live tool calls.
openapi.e2e.ts demonstrates httpMock.interceptor() stubs for Beeceptor endpoints while allowing passthrough for the OpenAPI spec.
Pair the suite with httpMock.interceptor() from openapi.e2e.ts to keep every test offline—mock the endpoints you expect to hit, allow passthrough for the OpenAPI spec, then call interceptor.restore() in finally to clean up.