MCP Client skill

MCP Client is an agent skill for AI coding assistants (Claude Code, OpenClaw, Cursor, Codex). Consume MCP (Model Context Protocol) servers over stdio (local) or Streamable HTTP (remote): initialize handshake, call tools, read resources, get prompts, pagination/timeouts/errors, OAuth/bearer auth, plus Claude Desktop/Code, Cursor, OpenClaw config. Use when wiring an agent to an MCP server or debugging a transport/auth failure. Install with: npx skills-ws install mcp-client.

devv1.11.0Updated
copied ✓
openclawclaude-codecursorcodex
0 installsSecurity scan: cleanSource code

MCP Client — Consuming Model Context Protocol Servers

Transport policy (MCP spec): Use stdio for local subprocess servers and Streamable HTTP (StreamableHTTPClientTransport, endpoint usually /mcp) for remote servers. The old HTTP+SSE transport was deprecated in spec revision 2025-03-26 and superseded by Streamable HTTP; keep it only as a legacy fallback for old servers (endpoint usually /sse). WebSocket transport was removed. As of Jun 2026 the latest spec revision is 2025-11-25 — verify at https://modelcontextprotocol.io/specification.

This skill makes an agent expert at being an MCP client: discovering a server's capabilities, calling its tools, reading its resources, using its prompts, and doing so safely with auth, timeouts, retries, and cost control. It is provider-agnostic; one specific public server (mcp.skills.ws) appears only as an optional worked example at the end.

For building the server side, see the sibling skill mcp-server-builder. For agent orchestration around these tool calls, see ai-agent-building. For wallet/payment flows (x402), see wallet-integration and defi-integration.

Reference guide

Read only the references needed for the current request: