MCP & Protocol Testing / Quiz

FastMCP: Server in Ten Lines

FastMCP('Demo'), @mcp.tool, and mcp.run(): how type hints become tool schemas and why the CLI ignores your __main__ block.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
8 min

// MISSION BRIEF

Your Mission

FastMCP is the Pythonic way to build MCP servers: decorate a typed function and the framework generates the schema, wires the protocol, and serves it. Ten lines from zero to a working server, IF you know what each line actually does.

Six questions on the core authoring model. Speed bonus active.

// FIRST CONTACT

Battle teaser

The minimal FastMCP server is:

  1. Amcp = FastMCP('Demo'), a typed function decorated with @mcp.tool, and mcp.run() to serve it
  2. BA Dockerfile extending the official mcp image
  3. CA JSON schema file plus a shell script
  4. DA Flask app with a /mcp route returning JSON
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

fastmcpmcppythontools