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

    Exercise answers

    • Answer: Write an MCP server without the SDK
    • Answer: Serve 2025-era clients and watch 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
CapstoneShip an MCP server for an existing REST APIReference implementation

Module 1 · The protocol and its mental model · Lesson 2

The protocol on the wire

The JSON-RPC messages MCP sends, the stateless 2026-07-28 revision and the 2025-era handshake it replaced, stdio and Streamable HTTP framing, and the utilities and message patterns built on top.

80 min 1 video 3 exercises 8-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptMCP servers in Claude CodeThe Larchmere Desk mock API

By the end of this lesson you can

  • Read and write MCP requests, results, errors and notifications, including resultType and the per-request _meta fields
  • Explain why the 2026-07-28 revision removed the initialize handshake and sessions, and how a client learns a server's versions without them
  • Predict which combinations of client and server eras interoperate, and serve both eras from one server
  • Implement stdio framing correctly, with nothing but protocol messages on stdout and a clean shutdown
  • Describe Streamable HTTP's single endpoint, routing headers and Origin validation, and the progress, cancellation, pagination and caching utilities

On this page

  • JSON-RPC 2.0, and what MCP adds
  • Stateless: what 2026-07-28 removed, and why
  • Versions, server/discover and the two eras
  • stdio: framing, the stdout rule and shutdown
  • Streamable HTTP
  • Utilities
  • Three message patterns
  • Misconceptions and limits
  • Where this goes next
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01JSON-RPC 2.0, and what MCP adds
  2. 02Stateless: what 2026-07-28 removed, and why
  3. 03Versions, server/discover and the two eras
  4. 04stdio: framing, the stdout rule and shutdown
  5. 05Streamable HTTP
  6. 06Utilities
  7. 07Three message patterns
  8. 08Misconceptions and limits
  9. 09Where this goes next
  10. 10Summary

Sources & further reading

  • Real Faults in Model Context Protocol (MCP) Software: a Comprehensive TaxonomyPaper · Mina Taraghi, Mohammad Mehdi Morovati, Foutse Khomh · 2026A peer-reviewed (ACM TOSEM) taxonomy of real faults in MCP servers, in five categories confirmed by a practitioner survey. Skim the categories to see how many sit at the protocol and transport layer.
  • Base Protocol: Overview (2026-07-28)Docs · Model Context Protocol · 2026Messages, resultType, error codes, the per-request _meta fields and the Statelessness section. The page this lesson follows most closely; read all of it.
  • Versioning and Compatibility (2026-07-28)Docs · Model Context Protocol · 2026Per-request versions, UnsupportedProtocolVersionError, the modern, legacy and dual-era terms, and the compatibility matrix.
  • JSON-RPC 2.0 SpecificationDocs · JSON-RPC Working Group · 2013The request, response, notification and error objects MCP builds on, with the standard error codes. Ten minutes.
  • Transports: stdio (2026-07-28)Docs · Model Context Protocol · 2026Framing, the stdout rule, cancellation, shutdown and the server/discover probe for backward compatibility. Short and normative.
  • Transports: Streamable HTTP (2026-07-28)Docs · Model Context Protocol · 2026The single POST endpoint, request-scoped SSE, the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers, Origin validation, and what the 2025 revisions did differently.
  • Make MCP Stateless (SEP-2575)Docs · Model Context Protocol · 2025The design rationale for removing the handshake and sessions. Read the Abstract and Motivation.
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.

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