Skip to content
mentoor

Building an MCP server

For engineers

Choosing an SDK, defining tools and resources with precise schemas, serving them over stdio and HTTP, and testing before agents use them

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

What does the high-level API of an MCP SDK, such as FastMCP, do for you?

Choose one answer

Check yourself · 2 of 5

A tool fails because the order does not exist. How should the server report it so the model can read and recover?

Choose one answer

Check yourself · 3 of 5

Who normally decides to use an MCP prompt?

Choose one answer

Check yourself · 4 of 5

A stdio MCP server prints "Server ready" with console.log. What happens?

Choose one answer

Check yourself · 5 of 5

What is the main benefit of an in-memory transport in server tests?

Choose one answer

Topics

  1. Choosing an official MCP SDK and framework4 min read · Official SDKs for TypeScript, Python, C#, Java, Kotlin, Go and Rust, high-level helpers such as FastMCP versus low-level handlers, and SDK spec support
  2. Tool input schemas, output schemas and annotations5 min read · JSON Schema inputs, outputSchema with structuredContent, read-only and destructive hints, and isError results the model can read
  3. Exposing resources, resource templates and prompts5 min read · URI design, resource templates, resource links in tool results, prompt arguments, and when data belongs in a resource rather than a tool
  4. Serving one server over stdio and Streamable HTTP5 min read · Keeping stdout for protocol messages only, logging to stderr, mounting an HTTP endpoint, and running the same code in both modes
  5. Testing servers with MCP Inspector and scripted clients5 min read · Manual checks in MCP Inspector, in-memory client tests in CI, schema validation and a first run against a real model

Start here

110 questions · last verified 2026-12