| id | course-mcp-tools-l02 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| type | course | |||||||||||||||
| title | The JSON-RPC dispatch contract | |||||||||||||||
| summary | Valid requests echo their id; invalid ones get -32600; unknown or removed methods get -32601. | |||||||||||||||
| lang | en-US | |||||||||||||||
| content_version | 1 | |||||||||||||||
| status | reviewed | |||||||||||||||
| reviewed_on | 2026-09-12 | |||||||||||||||
| hints |
|
Valid requests echo their id; invalid ones get -32600; unknown or removed methods get -32601.
The dispatch rules are small and testable: check jsonrpc and method, preserve id, and answer errors with the right codes. Run the failing dispatch tests first; make them pass in the smallest steps. Use 01-tools-list.json and 04-removed-initialize.json as your fixtures while the agent works.
- Ask the agent why initialize must return -32601 with a message naming the 2026-07-28 removal
- Reject any diff that touches tests/ or solution/
The lesson's commands run, and you can answer these in your own words (the agent asks; you answer — that is the gate):
- Which command did this lesson run, and what did it decide?
- What failed at the start, and why — in your own words?
- Before trusting a similar change next time, what would you check first?
The command transcript and your answers.