Whatever message this page gives is out now! Go check it out!
addRoot function registers a root with your MCP client at runtime. A root is a named URI that provides instruction to the MCP server.addRoot(struct root)mcpClient.addRoot(root)| Field | Data type | Required | Description |
|---|---|---|---|
name | String | Yes | Logical name/label for this root. |
uri | String | Yes | URI for the root (e.g. file:// or custom schemes). |