mcpjam/inspector/create-mcp-eval

Claude Code and agent skill by mcpjam/inspector

Trust tier 2
  • community
LLM review pending
Source check pending

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

Generate comprehensive eval tests for any MCP server using @mcpjam/sdk. Supports Jest and Vitest with deterministic and LLM-driven test patterns.

Install

npx vskill@latest install mcpjam/inspector/create-mcp-eval

SKILL.md

The same SKILL.md was published earlier as mcpjam/inspector/create-mcp-eval.

create-mcp-eval

Generate eval tests for MCP servers using @mcpjam/sdk.

Read this file first. It carries the two things you need before writing any code — what to ask the user, and the rules the generated tests must follow — and routes you to the rest only when you actually need it.

Reference map

Load a reference when you reach the step that needs it, not before.

You are about to…Read
Scaffold package.json, tsconfig.json, .env.example, .gitignorereferences/project-setup.md
Call MCPClientManager, HostRunner, PromptResult, EvalTest, EvalSuite, validators, or the MCPJam reporterreferences/sdk-api.md
Choose a shape — config block, toggled suites, shared reporter, parameterized agents, save modes, multi-turn, validator coveragereferences/patterns.md
Write the file outreferences/template.md
Debug a test that runs but behaves oddlyreferences/common-mistakes.md
Turn an MCPJam Agent Brief into testsreferences/agent-brief.md

1. Context Gathering

Before generating any code, collect the following from the user:

QuestionOptionsDefault
Connection typestdio (local binary) or http (SSE/Streamable HTTP URL)http
Test frameworkjest, vitest, or none (SDK-only)_(detect from repo; fall back to vitest)_
LLM providerSee Supported Providers table below. Format: provider/model_(must ask user)_
Save results to MCPJamnone, auto (saves when MCPJAM_API_KEY is set), or reporter (shared EvalRunReporter). Use an MCPJam API key (sk_…) from Settings → API keys; optionally set MCPJAM_PROJECT_ID to file results under a specific project (defaults to the org’s Default project)._(must ask user)_
Tool listAsk user to paste their tool names or an Agent Brief (references/agent-brief.md)—

If the user provides an Agent Brief (markdown with ## Tools table), parse it to auto-populate tool names, descriptions, parameters, and suggested eval scenarios. See references/agent-brief.md.

Provider Selection (REQUIRED)

You MUST ask the developer which LLM provider they want before generating any code. Do not default to any provider.

Supported Providers:

ProviderModel formatEnv varExample model
openaiopenai/<model>OPENAI_API_KEYopenai/gpt-4o-mini
anthropicanthropic/<model>ANTHROPIC_API_KEYanthropic/claude-sonnet-4-20250514
googlegoogle/<model>GOOGLE_API_KEYgoogle/gemini-2.0-flash
mistralmistral/<model>MISTRAL_API_KEYmistral/mistral-small-latest
deepseekdeepseek/<model>DEEPSEEK_API_KEYdeepseek/deepseek-chat
xaixai/<model>XAI_API_KEYxai/grok-2
openrouteropenrouter/<model>OPENROUTER_API_KEYopenrouter/openai/gpt-4o-mini
azureazure/<deployment>AZURE_API_KEYazure/gpt-4o
ollamaollama/<model>_(none, local)_ollama/llama3
Custom<name>/<model>_(configurable)_litellm/gpt-4

Once the user selects a provider, use the corresponding env var name and model format in all generated code:

  • {LLM_ENV_VAR} — e.g., OPENAI_API_KEY
  • {LLM_MODEL} — e.g., openai/gpt-4o-mini
  • {LLM_KEY_EXAMPLE} — e.g., sk-...
Test Runner Selection

Before generating tests, check what the codebase already uses:

  • package.json scripts and devDependencies for jest or vitest
  • Config files: jest.config.*, vitest.config.*, vite.config.*

Then:

  • If Jest is present, use Jest (and ts-jest if TypeScript).
  • If Vitest is present, use Vitest.
  • If neither is present, default to Vitest.
  • If the developer prefers no test framework, the @mcpjam/sdk classes (EvalTest, EvalSuite) can run standalone — call .run() directly and check results in a plain script without Jest/Vitest.

In all cases, use @mcpjam/sdk for the eval harness (HostRunner, EvalTest, EvalSuite, validators).


5. Generation Guidelines

Follow these rules when generating eval test files:

  1. Deterministic suite first — always include a deterministic test section using HostRunner.mock() that validates the test structure itself without requiring LLM calls or server connections.
  1. One EvalTest per tool — create a separate EvalTest for each tool you want to evaluate. Each test should prompt the runner with a natural-language request and assert the correct tool was selected.
  1. Single-shot LLM tests are non-deterministic — a single runner.run() may not select the expected tool every time. For single-shot tests, prefer saving results to MCPJam without hard-asserting (expect(...).toBe(true)). Use EvalTest with iterations >= 3 and assert on accuracy() for reliable pass/fail gates. Reserve hard asserts for high-confidence cases (negative tests, multi-turn with clear context).
  1. Write unambiguous prompts for similar tools — when a server has tools with overlapping descriptions (e.g., create_view vs export_to_excalidraw), prompts must reference the tool's unique action. Mention specific verbs, targets, or outcomes. Bad: "Share my diagram". Good: "Export and upload my diagram to excalidraw.com so I can open it in a browser".
  1. Multi-turn for related tools — when tools logically chain together (e.g., get_user then list_workspaces), create a multi-turn test using { context: previousResult }.
  1. Negative test — always include at least one test that verifies the runner does NOT call tools when given an irrelevant prompt (e.g., "What is the capital of France?"). Use matchNoToolCalls().
  1. Reasonable defaults:
  • iterations: 5 for EvalTest runs
  • timeoutMs: 60_000 for LLM tests
  • maxSteps: 8 for HostRunner
  • retries: 1 for flaky network tolerance
  • concurrency: 5 (default, no need to set explicitly)
  1. Timeout on test cases — set explicit timeouts on it() blocks: 90_000 for single-turn, 120_000 for multi-turn and suite tests.
  1. Always `await` — every runner.run(), test.run(), suite.run(), reporter.record*(), and reporter.finalize() is async. Never forget await.
  1. One reporter per file — create the reporter at module level to save results to MCPJam, and finalize in afterAll. Never create multiple reporters in the same file.
  1. Use `describe.skip` for missing credentials — wrap LLM tests in conditional describe blocks so CI runs cleanly without secrets.
  1. Match the repo's test runner — check package.json and config files for an existing test framework before generating. Only default to Vitest if the repo has no test runner. If the user prefers no framework at all, use @mcpjam/sdk classes (EvalTest.run(), EvalSuite.run()) standalone in a plain script.
  1. Log key metrics — add console.log statements for accuracy, tool calls, and latency so CI output is informative.

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
2,062
Repository forks
245
7-day trend score
38

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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/mcpjam/inspector/create-mcp-eval/badge)](https://verified-skill.com/skills/mcpjam/inspector/create-mcp-eval)

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