agentfront/frontmcp/frontmcp-testing

Claude Code and agent skill by agentfront/frontmcp

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Use for anything about testing FrontMCP servers: writing or running unit, integration, and E2E tests and reaching the 95%+ coverage bar. Covers Jest setup and coverage gating; unit-testing a ToolContext execute() with mock context, inputs, and Zod schema validation; testing resources and prompts; in-memory testing via create() and connectOpenAI / connectClaude (no HTTP); full MCP-protocol E2E over HTTP with McpTestClient and TestServer; authenticated tests with TestTokenFactory, MockOAuthServer, and role-based access; browser-bundle validation with Playwright; and CLI-binary / SEA startup tests. Triggers: write tests, run tests, add e2e tests, improve coverage, test a tool / resource / prompt, mock auth, jest config. The skill for ALL testing needs.

Install

npx vskill@latest install agentfront/frontmcp/frontmcp-testing

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as agentfront/frontmcp/frontmcp-testing.

FrontMCP Testing Router

Entry point for testing FrontMCP applications. This skill helps you navigate testing strategies across component types and find the right patterns for unit, integration, and E2E tests.

When to Use This Skill

Must Use
  • Setting up testing infrastructure for a new FrontMCP project
  • Deciding how to test a specific component type (tool, resource, prompt, agent)
  • Planning a testing strategy that covers unit, E2E, and coverage requirements
Recommended
  • Looking up testing patterns for a component type you haven't tested before
  • Understanding the relationship between unit tests, E2E tests, and coverage thresholds
  • Troubleshooting test failures or coverage gaps
Skip When
  • You need detailed Jest configuration and test harness setup (go directly to setup-testing)
  • You need to build components, not test them (see frontmcp-development)
  • You need to deploy, not test (see frontmcp-deployment)
Decision: Use this skill for testing strategy and routing. Open the setup-testing reference under references/ for hands-on Jest configuration and test writing.

Prerequisites

  • A FrontMCP project with at least one component to test (see frontmcp-development).
  • Jest installed and configured — if not, start with setup-testing before opening any other testing skill.
  • The component itself implemented and exported; tests reach decorated classes through the SDK, not by importing internal builders.

Steps

This is a router skill. Follow this order to pick a testing approach, then move to the target reference under references/.

  1. Pick the test layer — unit (fastest, mock DI), integration (real DI scope), or E2E (real MCP client + server). Use the Testing Strategy table below.
  2. Pick the component flavour — tool / resource / prompt / agent / job — each has a distinct recipe.
  3. Pick the runtime concern — auth, browser/CLI build, direct vs streamable transport — and add the matching reference to your reading list.
  4. Open the target reference (e.g. references/test-tool-unit.md, references/test-e2e-handler.md, references/test-auth.md) and follow its Steps section.
  5. Enforce coverage — confirm the project's 95%+ thresholds are wired into Jest before merging (see references/setup-testing.md).

Scenario Routing Table

ScenarioReference / SectionDescription
Set up Jest, coverage, and test harnesssetup-testingFull Jest config, test utilities, and coverage thresholds
Write unit tests for a tooltest-tool-unitMock DI, validate input/output, test error paths
Write unit tests for a resourcesetup-testing (Unit Testing)Test URI resolution, template params, read results
Write unit tests for a promptsetup-testing (Unit Testing)Test argument handling, message generation
Write E2E protocol-level testssetup-testing (E2E Testing)Real MCP client/server, full protocol flow
Test authenticated endpointstest-authE2E with OAuth tokens, session validation, role-based access
Test deployment buildssetup-testing + deploy-to-*Smoke tests against built output
Test browser buildstest-browser-buildSmoke-test a frontmcp build --target browser bundle (import the bundle, optional Playwright suite)
Test CLI binary buildstest-cli-binarySpawn-and-curl smoke tests for frontmcp build --target cli artifacts
Test with the direct API clienttest-direct-clientIn-memory testing via create(), connectOpenAI(), connectClaude() (no HTTP)
Write E2E test handler patternstest-e2e-handlerManual McpTestClient + TestServer E2E patterns (alternative to fixture API)
Unit test individual toolstest-tool-unitUnit testing individual ToolContext subclasses with a mock context
Catch regressions with recorded callsreplay-callsRecord calls with CallRecorderPlugin; replay with replaySession() or frontmcp test --replay

Testing Strategy by Component Type

ComponentUnit Test FocusE2E Test FocusKey Assertions
ToolInput validation, execute logic, error paths, DI mockingtools/call via MCP clientOutput matches schema, errors return MCP codes
ResourceURI resolution, read content, template param handlingresources/read via MCP clientContent type correct, URI patterns resolve
PromptArgument validation, message generation, multi-turnprompts/get via MCP clientMessages match expected structure
AgentLLM config, tool selection, handoff logicAgent loop via MCP clientTools called in order, result synthesized
ProviderLifecycle hooks, factory output, singleton behaviorcreateContainer(), or via tool/resource testsInstance reuse, onShutdown() on dispose()
JobProgress tracking, retry logic, attempt countingJob execution via test harnessProgress events emitted, retries respected
WorkflowStep dependencies, conditions, input mapping functionsWorkflow run via test harnessSteps execute in order, conditions evaluated, continueOnError respected
SkillInstruction loading (inline/file/url), tool validationSkill discovery via MCP/HTTPInstructions resolve, tool refs validated per toolValidation mode
PluginContext extensions, provider registration, hook firingIndirectly via tool testsExtensions available on this, hooks fire at correct stages

Cross-Cutting Testing Patterns

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
147
Repository forks
6
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Aug 2026, 3 months ago.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/agentfront/frontmcp/frontmcp-testing/badge)](https://verified-skill.com/skills/agentfront/frontmcp/frontmcp-testing)

Something wrong with this skill or its page? Tell us.