Class McpRoot
- Namespace
- LMKit.Mcp.Abstractions
- Assembly
- LM-Kit.NET.dll
Represents a filesystem root that the client exposes to MCP servers. Roots define the boundaries within which servers can operate.
public sealed class McpRoot
- Inheritance
-
McpRoot
- Inherited Members
Properties
- Name
Gets or sets the human-readable name for this root. Example: "My Project"
- Uri
Gets or sets the URI of the root directory. Currently only file:// URIs are supported. Example: "file:///home/user/projects/myproject"
Methods
- FromPath(string, string)
Creates a new root from a local file path.
- ToString()
Returns a string representation of this root.