library/specializations/cli-mcp-development/skills/mcp-mock-client/SKILL.md
Create mock MCP client for server testing with request/response simulation.
npx skillsauth add a5c-ai/babysitter mcp-mock-clientInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create mock MCP client for server testing.
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;
}
development
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.