Week 1 · D2🔒 LockedAbout 5 hours
Writing Your First MCP Server: stdio Transport, the Official SDK, Parameter Schemas, Tool Annotations, and Debugging With Inspector
Use the official SDK to write your first server a real client can load, fill in the parameter schema, output schema, tool annotations, and error classification in one pass, and learn to debug it with Inspector.
Use the official SDK to write your first server a real client can load, fill in the parameter schema, output schema, tool annotations, and error classification in one pass, and learn to debug it with Inspector.
Interview questions
Who is a tool's description actually written for, and what concretely goes wrong in production when it is too vague?工具的 description 到底写给谁看?写得太泛,在生产里会造成什么具体后果?
Common in ChinaCommon overseasBasic#tool-design#prompt-surface🔒 Unlock this chapter to see the answer keys.
When should a tool return a JSON-RPC error versus a result with isError set to true? Give me a decision rule.什么时候该返回 JSON-RPC 的 error,什么时候该返回 isError 为真的工具结果?给我一个判据。
Common in ChinaCommon overseasIntermediate#error-handling#tool-design🔒 Unlock this chapter to see the answer keys.
What is the most common way a stdio MCP server breaks, and how do you prevent it in code and in process?一个 stdio 的 MCP 服务端最常见的翻车原因是什么?你会在代码和流程上分别怎么堵住它?
Common in ChinaCommon overseasDeep dive#stdio-transport#debugging🔒 Unlock this chapter to see the answer keys.
