Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical builds a normalized MCP URI in the form: mcp:<server>://<resource> If resourceURI already carries the same scheme as the server, the scheme is stripped from the canonical form (e.g. github://host/path -> host/path).
func CompareParts ¶
CompareParts returns the MCP server and a set of normalized resource paths suitable for matching roots across shorthand and fully-qualified forms. For example: - mcp://github/owner/repo -> server=github, paths=["/owner/repo"] - mcp:github:github://github.vianttech.com/owner/repo -> server=github, paths=["/owner/repo"] - mcp:github:github://owner/repo -> server=github, paths=["/owner/repo"]
func JoinResourcePath ¶
JoinResourcePath appends a relative path to a resource URI. It preserves the scheme/host when the base URI is fully qualified.
func NormalizeForCompare ¶
NormalizeForCompare returns a canonical MCP URI string for comparisons. It collapses legacy forms into mcp:<server>://<resource> and trims trailing slashes.
Types ¶
This section is empty.