Skip to main content

Crate uteke_mcp

Crate uteke_mcp 

Source
Expand description

uteke-mcp library — shared MCP protocol handler.

Used by both the stdio binary (uteke-mcp) and the HTTP endpoint on uteke-server (POST /mcp).

Structs§

JsonRpcError
JsonRpcRequest

Enums§

Access
Who is calling (#1439). The HTTP bridge passes the token role; stdio is always Full (the process belongs to the local caller).
JsonRpcResponse

Constants§

FENCE_CLOSE
FENCE_OPEN
READ_ONLY_TOOLS
Tools a read-only caller may use: the MCP counterparts of the GET rows and the non-writing POST rows in uteke-server’s api_registry. A new tool is write-gated until it is added here on purpose.

Functions§

decode_list_args
Decode the arguments of uteke_list into the typed request shared with the HTTP server and the CLI (#1343), under the MCP policy: default limit 20, no cap. Fields of the wrong type fall back to their defaults. The tool exposes no at/include_meta, so those stay unset.
decode_recall_args
Decode the arguments of uteke_recall into the typed request shared with the HTTP server and the CLI (#1343), under the MCP policy: no limit cap, blank queries accepted, tags: [] kept as a filter.
decode_remember_args
Decode the arguments of uteke_remember into the typed request shared with the HTTP server and the CLI (#1343), under the same rules as POST /remember (#1439): content and tags validated at decode, an omitted type inferred from the content, an unknown type refused, a type copied into the metadata, a wrong-shaped tags an error and an unknown argument refused. room is the one MCP-only argument (it routes the write to a room). The tool exposes no entity/category/metadata/source/author_type fields, so those stay unset.
handle_jsonrpc
Handle a single MCP JSON-RPC request with full access (#381).
handle_jsonrpc_as
Handle a single MCP JSON-RPC request on behalf of a caller with the given access (#381, #1439).