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§
Enums§
- Access
- Who is calling (#1439). The HTTP bridge passes the token role; stdio is
always
Full(the process belongs to the local caller). - Json
RpcResponse
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_listinto 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 noat/include_meta, so those stay unset. - decode_
recall_ args - Decode the arguments of
uteke_recallinto 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_rememberinto the typed request shared with the HTTP server and the CLI (#1343), under the same rules asPOST /remember(#1439): content and tags validated at decode, an omittedtypeinferred from the content, an unknowntyperefused, atypecopied into the metadata, a wrong-shapedtagsan error and an unknown argument refused.roomis 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).