Testing patterns for MCP tool/resource handlers using createMockContext and Vitest. Covers mock context options, handler testing, McpError assertions, format testing, Vitest config setup, and test isolation conventions.
$npx -y skills add cyanheads/mcp-ts-core --skill api-testingInstalls into the current project.
Run `npx skills use "https://github.com/cyanheads/mcp-ts-core" --skill "cyanheads/mcp-ts-core/api-testing"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/cyanheads/mcp-ts-core" that are relevant to the current task. Run `npx skills add "https://github.com/cyanheads/mcp-ts-core"` and select the relevant skills, then follow their instructions.