Roots
When a user starts your file-converting MCP server, they pass a couple of folder paths on the command line. The server is only ever supposed to read files inside those folders.
What are roots in MCP?
This exercise is part of the course
Model Context Protocol: Advanced Topics
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise