mcp-mock-client

Solid

Create mock MCP client for server testing with request/response simulation.

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
49
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MCP Mock Client Create mock MCP client for server testing. ## Generated Patterns ```typescript import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'; import { spawn } from 'child_process'; export async function createTestClient(serverCmd: string, args: string[]) { const proc = spawn(serverCmd, args, { stdio: ['pipe', 'pipe', 'inherit'] }); const transport = new StdioClientTransport({ reader: proc.stdout!, writer: proc.stdin! }); const client = new Client({ name: 'test-client', version: '1.0.0' }, { capabilities: {} }); await client.connect(transport); return { client, close: () => proc.kill() }; } export async function testTool(client: Client, name: string, args: Record<string, unknown>) { const result = await client.callTool({ name, arguments: args }); return result; } ``` ## Target Processes - mcp-server-testing-suite - mcp-tool-implementation

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

mcp-csharp-test

Test C# MCP servers at multiple levels: unit tests for individual tools and integration tests using the MCP client SDK. USE FOR: unit testing MCP tool methods, integration testing with in-memory MCP client/server, end-to-end testing via MCP protocol, testing HTTP MCP servers with WebApplicationFactory, mocking dependencies in tool tests, creating evaluations for MCP servers, writing eval questions, measuring tool quality. DO NOT USE FOR: testing MCP clients (this is server testing only), load or performance testing, testing non-.NET MCP servers, debugging server issues (use mcp-csharp-debug).

3,219 Updated today
dotnet
AI & Automation Solid

mcp-server-patterns

Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API.

199,470 Updated yesterday
affaan-m
AI & Automation Solid

mcp-server-patterns

Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API.

148,923 Updated 1 months ago
affaan-m
AI & Automation Solid

typescript-mcp-server-generator

Generate a complete MCP server project in TypeScript with tools, resources, and proper configuration

34,233 Updated today
github
AI & Automation Solid

csharp-mcp-server-generator

Generate a complete MCP server project in C# with tools, prompts, and proper configuration

34,233 Updated today
github