Walk through how a server reads the client's roots and checks file paths against them, step by step, to see how a tool stays inside the folders it was granted.
この演習はコースの一部です
理論を実践に変える、インタラクティブな演習のひとつをお試しください
Discover the advanced features that separate a toy MCP server from a production one. You'll use sampling to borrow the client's language model, stream log and progress notifications from a slow tool so users see it working, and enforce roots so a server only ever touches the files it was granted.
現在の演習
Go to the wire level and see how MCP clients and servers actually talk. You'll hand-write JSON-RPC requests and notifications, trace the initialization handshake, and compare the STDIO transport for local servers with the StreamableHTTP transport for remote ones, including how Server-Sent Events and statelessness shape what each can do.