mcp-client-patterns

Invoke MCP server tools via HTTP JSON-RPC with discovery and error handling.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/abzhaw/juliaz_agents --skill mcp-client-patterns-abzhaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-client-patterns
Source: https://github.com/abzhaw/juliaz_agents/tree/main/.agent/skills/mcp-client-patterns
Command: npx skills add https://github.com/abzhaw/juliaz_agents --skill mcp-client-patterns-abzhaw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable reliable remote tool invocation on MCP servers by codifying common client patterns.

Core Features & Use Cases

  • HTTP JSON-RPC Tool Invocation: Provides a simple callMcpTool function to invoke named MCP tools with arguments over POST to the /mcp endpoint.
  • Tool Discovery & Server Mapping: Includes a pattern to list available tools and to map calls from an orchestrator to MCP servers (bridge, cowork-mcp).
  • Session Management & Error Handling: Demonstrates timeout handling and error propagation for failed tool responses.

Quick Start

Invoke the MCP client to call a tool on an MCP server, using the tools/call endpoint to execute a named tool.

Frequently Asked Questions about mcp-client-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke tools on an MCP server from an orchestrator?

To invoke tools on an MCP server, use the standardized HTTP JSON-RPC client pattern to POST a tools/call request to the /mcp endpoint, mapping named tool arguments from the orchestrator directly to the remote server for reliable execution.

What is the HTTP JSON-RPC pattern for MCP tool discovery?

MCP tool discovery uses an HTTP JSON-RPC tools/list pathway to query available tools on the server, allowing the orchestrator to map and identify callable remote functions for subsequent execution.

How does MCP client pattern handle timeouts and error propagation?

The MCP client pattern handles timeouts and error propagation by implementing basic timeout management during remote tool invocation and forwarding failed tool responses back to the orchestrator, ensuring reliable session management and fault detection.

Can I use these client patterns to bridge multiple MCP servers?

Yes, these client patterns include server mapping configurations designed to bridge and map calls from an orchestrator to multiple MCP servers, allowing agents to coordinate tool invocation across different remote endpoints.

Do I need specific dependencies to run MCP client patterns?

No specific dependencies are required to implement these MCP client patterns; the design relies on standard HTTP JSON-RPC protocols, allowing integration of tool discovery and invocation directly into existing orchestrator environments.