Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Building MCP Servers

Free · sign in to start and track progress

1 · The protocol and its mental model

  • 1MCP and REST: two mental models
  • 2The protocol on the wire

2 · Designing servers agents use well

  • 3Designing tools, not endpoints
  • 4Testing and evaluating servers

    Exercise answers

    • Answer: Test the server in both protocol eras
    • Answer: Compare the naive and designed servers with an agent
  • 5Resources, prompts and asking for input

3 · Running servers in production

  • 6Remote servers and authorization
  • 7Securing MCP servers
  • 8Shipping and evolving servers
CapstoneShip an MCP server for an existing REST APIReference implementation

Module 2 · Designing servers agents use well · Lesson 4

Testing and evaluating servers

Pin a server's contract with in-process protocol tests in both eras and scripted Inspector checks, then find out whether agents actually do better with it, using checkable end states, repeated runs and a paired comparison.

60 min 1 video 3 exercises 8-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptThe Larchmere Desk mock APIMCP servers in Claude Code

By the end of this lesson you can

  • Write protocol-level tests that drive a server through a real client in-process, for both 2026-07-28 and 2025-era clients
  • Use the Inspector CLI as a scripted check and branch on its exit codes
  • Design agent evaluation tasks with end states checked over the API, and test those checks with reference solutions before running a model
  • Compare two server designs with repeated runs paired by task, reporting pass rate, turns, REST calls and tokens

On this page

  • Two questions, two kinds of check
  • Protocol tests, in-process, in both eras
  • The Inspector CLI as a scripted check
  • Agent evaluations with checkable end states
  • Check the checks before you run a model
  • Repeated runs and a paired comparison
  • Misconceptions and limits
  • How this sets up the next lesson
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Two questions, two kinds of check
  2. 02Protocol tests, in-process, in both eras
  3. 03The Inspector CLI as a scripted check
  4. 04Agent evaluations with checkable end states
  5. 05Repeated runs and a paired comparison
  6. 06Misconceptions and limits
  7. 07How this sets up the next lesson
  8. 08Summary

Sources & further reading

  • MCPMark: A Benchmark for Stress-Testing Realistic and Comprehensive MCP UsePaper · Zijian Wu, Xiangyan Liu, Xinyuan Zhang et al. · 2025Every task starts from a curated initial state and ends with a programmatic verification script: the pattern this lesson's harness copies. Read the results for pass@1 against pass^4.
  • MCP-Atlas: A Large-Scale Benchmark for Tool-Use Competency with Real MCP ServersPaper · Chaithanya Bandi, Razvan-Gabriel Dumitru, Ben Hertzberg et al. · 2026Scores answers against claims grounded in tool outputs, so any valid path gets credit, and separates tool-call failures from reasoning failures. Read the diagnostic taxonomy.
  • Tool-Calling LLM Agents Under Realistic MCP Faults: Scale Does Not Purchase Fault TolerancePaper · Antonio Ken Iannillo, Joshua Segun Owotogbe, Roberto Natella et al. · 2026Fault injection on the MCP call path, with a fault model mined from 57,240 issue and pull-request threads. A very recent paper; read the fault model for what your tests should simulate.
  • AT-AT: Automatic Tool Optimization from Agent TracesPaper · Maya Ravichandran, Pragya Tripathi, Dharamendra Kumar, Adith Swaminathan, Nathan Kallus · 2026A coding agent edits tool descriptions from evaluation traces while the agents stay fixed; it lowered cost or tool error rates on three production MCP servers. Very recent; read it for where the evaluation loop leads.
  • Writing effective tools for agents — with agentsLab research · Anthropic · 2025Evaluation-driven tool development. Read "Running an evaluation": realistic tasks, verifiable outcomes, verifiers that aren't too strict, and the metrics worth collecting beyond accuracy.
  • Test a server (TypeScript SDK v2)Docs · Model Context ProtocolIn-process tests through createMcpHandler's fetch for 2026-07-28 clients, and InMemoryTransport for 2025-era ones. Ten minutes.
  • MCP Inspector CLIDocs · Model Context ProtocolMethods, JSON output, the exit-code table and CI recipes for the Inspector's scripted client.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 8-question quiz
  • Progress, quiz scores and bookmarks