build-mcp-use-client
Installation
SKILL.md
Build mcp-use Client
Build or audit deterministic TypeScript MCP client code using the mcp-use SDK: MCPClient, MCPSession, mcp-use/browser, mcp-use/react (useMcp, McpClientProvider, useMcpClient, useMcpServer), code mode, and the npx mcp-use client CLI.
The client is the half that connects to an MCP server, lists/calls tools, reads resources, manages sessions, and handles auth — without an LLM choosing what to call.
When to use this skill
Use this skill when any of these are true:
- the user imports from
"mcp-use","mcp-use/browser", or"mcp-use/react" - the code constructs
new MCPClient(...), callscreateSession()/createAllSessions(), or usesclient.close()/closeAllSessions() - a React app uses
useMcp,McpClientProvider,useMcpClient, oruseMcpServer(note:statenotstatus;storageProvidernotpersistenceProvider) - the project runs
npx mcp-use clientor hasmcp.json,mcp.config.json, or.vscode/mcp.jsonconfig files - the work is connecting to existing MCP servers, listing tools/resources/prompts, calling them deterministically, or wiring up auth/sampling/elicitation callbacks on the client side
- the request involves code mode via
executeCode()/search_tools()from a client - the task is fixing client-side issues: 404 session recovery, idle proxy timeouts, dropped reconnects, OAuth re-auth loops, or React StrictMode duplicate sessions
Do NOT use this skill if: