Documentation
¶
Overview ¶
Package catalog maps context files to MCP resource URIs and builds the immutable resource list returned by the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentURI ¶
func AgentURI() string
AgentURI returns the full URI for the assembled agent packet.
Returns:
- string: agent resource URI
func FileForURI ¶
FileForURI returns the context file name for a resource URI or empty string if the URI is not a known file resource.
Parameters:
- uri: full resource URI to look up
Returns:
- string: context file name, or "" if unknown
func Init ¶
func Init()
Init builds the URI-to-file lookup map. Must be called once before FileForURI is used (called from NewServer during bootstrap).
func ToList ¶
func ToList() proto.ResourceListResult
ToList constructs the immutable resource list. Called once from NewServer.
Returns:
- proto.ResourceListResult: all resources including the agent packet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.