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
  • 5Resources, prompts and asking for input

3 · Running servers in production

  • 6Remote servers and authorization
  • 7Securing MCP servers
  • 8Shipping and evolving servers

    Exercise answers

    • Answer: Gate a server's contract in GitHub Actions
    • Answer: Package the server with logs, limits and a registry entry
CapstoneShip an MCP server for an existing REST APIReference implementation

Module 3 · Running servers in production · Lesson 8

Shipping and evolving servers

Treat tool names, schemas, annotations and descriptions as a public contract, check every change against it in CI for both protocol eras, fit the limits of the hosts your server runs in, and ship it with structured logs, an npm package and a registry entry.

85 min 1 video 3 exercises 8-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptRun evals in GitHub ActionsThe Larchmere Desk mock API

By the end of this lesson you can

  • Classify a change to a tool's name, schema, annotations or description as breaking, compatible or needing review, and deprecate instead of breaking
  • Build a contract check that snapshots tools/list and fails CI on an unannounced breaking change, alongside Inspector CLI checks for both protocol eras
  • Fit results, descriptions and server instructions to host limits on output size, description length and timeouts, including tool search
  • Write structured logs to stderr that carry the caller's W3C trace context from request metadata
  • Package a server for npm and the MCP Registry, and check it against a host's connector review criteria

On this page

  • Who depends on your tool list
  • Breaking, compatible, and "a person decides"
  • Deprecate instead of breaking
  • A contract check in CI
  • Host limits your server ships into
  • Logs on stderr, with the caller's trace
  • Packaging for npm and the MCP Registry
  • A connector review checklist
  • Where MCP is heading (as of 2 November 2026)
  • Misconceptions and limits
  • Connections
  • Summary
  • Exercises
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Who depends on your tool list
  2. 02Breaking, compatible, and "a person decides"
  3. 03A contract check in CI
  4. 04Host limits your server ships into
  5. 05Logs on stderr, with the caller's trace
  6. 06Packaging for npm and the MCP Registry
  7. 07A connector review checklist
  8. 08Where MCP is heading (as of 2 November 2026)
  9. 09Misconceptions and limits
  10. 10Connections
  11. 11Summary
  12. 12Exercises

Sources & further reading

  • Real Faults in Model Context Protocol (MCP) Software: a Comprehensive TaxonomyPaper · Mina Taraghi, Mohammad Mehdi Morovati, Foutse Khomh · 2026The first large-scale taxonomy of faults in MCP servers, five categories checked against a practitioner survey, and evidence that MCP-specific faults differ from ordinary ones. Use it to decide what your CI should regression-test.
  • Description-Code Inconsistency in Real-world MCP Servers: Measurement, Detection, and Security ImplicationsPaper · Yutao Shi, Xiaohan Zhang, Xiangjing Zhang et al. · 20269.93% of 19,200 description-code pairs from 2,214 servers disagree, including undeclared side effects. A recent preprint; read the taxonomy for the drift a schema diff can't see.
  • Writing effective tools for agents — with agentsLab research · Ken Aizawa · Anthropic · 2025Why a tool is a contract with a non-deterministic consumer, and why small description edits change behaviour. Read the opening section and "Prompt-engineering your tool descriptions" before you treat descriptions as free to edit.
  • Versioning and CompatibilityDocs · Model Context Protocol · 2026Per-request protocol versions and the compatibility matrix between modern, legacy and dual-era clients and servers. Read the matrix before deciding which eras to test.
  • Connect Claude Code to tools via MCPDocs · AnthropicOne host's limits, checked on 2026-11-02: output tokens and characters, description cut-offs, timeouts, tool search and server instructions. Read "MCP output limits and warnings" and "Tool search for MCP server authors".
  • The MCP RegistryDocs · Model Context ProtocolWhat the registry hosts (metadata in server.json, not code), how namespaces are verified, and who consumes it. Then follow the publishing quickstart linked from it.
  • Connector pre-submission checklistDocs · AnthropicThe rules a real host reviews against: separate read and write tools, titles and annotations, short names, descriptions without injection patterns, actionable errors.
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.

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