Skip to main content

Module surface

Module surface 

Source
Expand description

The surface: the registry as resources and tools, independent of any protocol encoding. Every resource is a capability with an MCP resource exposure; every tool is a capability with an MCP tool exposure; every call goes through the registry to the one handler the capability has. Nothing is declared here.

Structs§

Resource
One resource as a client lists it.
ResourceContent
What a read returns.
Surface
The registry seen as resources and tools.
Tool
One tool as a client lists it.

Enums§

SurfaceError
Why a request to the surface could not be answered.
ToolOutcome
What a tool call produced: a value, or a refusal with the reason. Refusals are results, not protocol errors.