Skip to content
mentoor

Building an MCP client

For engineers

Connecting your own application or agent to MCP servers, turning model tool calls into MCP requests and keeping many servers manageable

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

A server answers tools/list with 40 tools and a nextCursor value. What should your client do?

Choose one answer

Check yourself · 2 of 5

Which MCP tool field becomes input_schema in a Claude tool definition?

Choose one answer

Check yourself · 3 of 5

Two connected servers both expose a tool called search. What is the standard fix on the client side?

Choose one answer

Check yourself · 4 of 5

What does a provider-hosted MCP connector remove from your application?

Choose one answer

Check yourself · 5 of 5

A tools/call response is a normal result with isError set to true and the text file not found. What should the client do?

Choose one answer

Topics

  1. Connecting to servers and listing capabilities5 min read · Discovering versions and capabilities, paging through tools/list, caching definitions with freshness hints, and reacting to list changes
  2. Turning model tool calls into MCP requests5 min read · Converting MCP tool definitions to Claude, OpenAI and Gemini tool formats, sending tools/call, and returning text, structured and image results
  3. Managing many servers without flooding the context6 min read · Namespacing colliding tool names, filtering tools per task, deferred tool search, calling servers from generated code, and approval prompts
  4. Hosted MCP connectors in model provider APIs5 min read · Letting Claude or OpenAI APIs call a remote MCP server for you, what you give up in control, and when to run your own client
  5. Handling protocol errors, tool failures and timeouts6 min read · JSON-RPC errors versus isError tool results, unsupported versions, broken streams that must be retried, timeouts and cancellation

Start here

110 questions · last verified 2026-12