Expand description
Library-only MCP surface projection for SIM.
This crate projects native browse Cards and optional SkillCard records
into redacted McpSurfaceCard rows. Routing, transport, and callable
execution are implemented by later MCP layers.
Structs§
- McpAnnotation
- Key/value annotation attached to a surface row, with a visibility scope.
- McpExport
Facet - Describes how a native card subject is exported onto the MCP surface.
- McpFunction
- Runtime callable object that dispatches one MCP method.
- McpLib
- Loadable library that registers the MCP method functions in a runtime.
- McpNative
Card - Native browse card describing one runtime subject and its MCP facets.
- McpProfile
- Allow/deny filter that decides which surface rows reach a client.
- McpRouter
- Dispatches MCP request/notification envelopes against a session.
- McpSession
- Mutable per-connection MCP session state.
- McpSurface
Card - A single redacted MCP surface row projected from a native or skill card.
Enums§
- McpAnnotation
Visibility - Whether an
McpAnnotationis exposed to clients or kept internal. - McpStream
Policy - Streaming behavior a surface row advertises to clients.
- McpSurface
Role - MCP role that a projected surface row plays for a client.
- McpSurface
Source - Origin record that a projected
McpSurfaceCardwas derived from. - Native
Facet - A facet attached to an
McpNativeCard.
Constants§
- MCP_
LIB_ ID - Stable identifier under which this library registers in the runtime.
Functions§
- call_
symbol - Returns the
mcp/callfunction symbol. - get_
prompt_ symbol - Returns the
mcp/get-promptfunction symbol. - handle_
symbol - Returns the
mcp/handlefunction symbol. - health_
symbol - Returns the
mcp/healthfunction symbol. - initialize_
symbol - Returns the
mcp/initializefunction symbol. - install_
mcp_ lib - Installs
McpLibintocx, loading it once if not already present. - manifest_
name - Returns the symbol under which
McpLibis registered. - mcp_
export_ facet_ name - Returns the facet name used to mark MCP exports on native cards.
- mcp_
export_ operation_ symbol - Returns the operation symbol identifying the MCP export operation.
- mcp_
exports - Returns the export records for every MCP method function.
- mcp_
prompts_ get_ capability - Returns the capability gating
prompts/getexecution. - mcp_
resources_ read_ capability - Returns the capability gating
resources/readexecution. - mcp_
tools_ call_ capability - Returns the capability gating
tools/callexecution. - native_
surface_ rows - Projects the MCP export facets of
cardsinto surface rows. - project_
mcp_ surface - Projects native cards plus (when the
skillfeature is on) skill cards into surface rows filtered byprofile. - project_
native_ surface - Projects native cards into surface rows filtered by
profile. - project_
surface_ rows - Filters
rowsthroughprofileand deduplicates by name, returning the rows sorted by name; errors on a name collision among allowed rows. - prompts_
symbol - Returns the
mcp/promptsfunction symbol. - read_
symbol - Returns the
mcp/readfunction symbol. - resources_
symbol - Returns the
mcp/resourcesfunction symbol. - shape_
to_ json_ schema - Converts a SIM
shapeinto a JSON-SchemaExprmap for MCP clients. - stable_
mcp_ name - Derives a stable, ASCII MCP name from a runtime
symbol. - tools_
symbol - Returns the
mcp/toolsfunction symbol.
Type Aliases§
- Router
Reply - Optional single reply envelope produced by routing one request.