Skip to main content

Module types

Module types 

Source
Expand description

Types and data structures for the Model Context Protocol (MCP) server.

Designed according to AGENTS.md §0-B (focused, single-purpose, <500 lines).

Structs§

McpIntentFrame
Operational intent and security boundary context for tool invocations.
McpToolDescriptor
Static descriptor for an advertised MCP tool.
RawToolPayload
Zero-deserialization view over an incoming tools/call byte buffer.

Enums§

McpRuntimeState
Explicit operational states defining the execution boundaries.
McpSystemError
System and dispatch errors surfaced through standard MCP/JSON-RPC channels.

Functions§

extract_raw_json_string
Extract a raw JSON string value for key without heap allocation.
hex_decode
Decodes a hex string into raw bytes.
parse_quin_slice
Helper to parse a slice of quins from JSON.
parse_tool_args
Helper to parse tool arguments from raw JSON bytes.
qualia_storage_path
Root storage dir: QUALIA_STORAGE_PATH, else ~/.qualia (HOME/USERPROFILE), else ./.qualia.