Expand description
Daemon runtime (axum + tonic + rmcp + SSE). Pulled in transitively
by depending on this crate; reach individual pieces under
post_cortex::daemon::*. The pcx CLI binary is shipped by
post-cortex-daemon directly via its [[bin]] entry — depend on
that crate (not this facade) if you only want to run the daemon.
HTTP daemon server for multi-client access to Post-Cortex
Provides lock-free HTTP/SSE transport for MCP JSON-RPC, enabling multiple Claude Code instances to share a single RocksDB instance.
Modules§
- coerce
- Type coercion and validation for MCP tool parameters.
- config
- Daemon configuration file support
- format_
helpers - Formatting helpers for MCP tool results
- grpc_
service - gRPC service for Post-Cortex.
- mcp_
service - Post-Cortex MCP Service — consolidated 9-tool API.
- observability
- Observability —
tracinglayer stack + (feature-gated) OpenTelemetry OTLP exporter wiring. - rmcp_
server - RMCP-based SSE Server for Post-Cortex daemon
- server
- Lock-free HTTP daemon server.
- sse
- Lock-free Server-Sent Events (SSE) broadcaster
- stdio_
proxy - stdio-to-daemon proxy with auto-start capability
- validate
- Custom validation layer for MCP tool parameters.
Structs§
- Daemon
Config - Daemon configuration loaded from file and environment
- Daemon
Server - Lock-free daemon server
- Post
Cortex Service - Post-Cortex MCP Service
- SSEBroadcaster
- Lock-free SSE broadcaster using DashMap
Enums§
- Tracing
Init Error - Errors raised by
init.
Functions§
- ensure_
daemon_ running - Ensure daemon is running, starting it if necessary
- init_
observability - Initialise the global tracing subscriber.
- is_
daemon_ running - Check if daemon is running by attempting TCP connection
- run_
stdio_ proxy - Run stdio proxy mode - bridges stdin/stdout to daemon via Streamable HTTP
- shutdown_
observability - Flush pending spans + metrics, then shut down the OTel SDK.
- start_
grpc_ server - Start the gRPC server on the given port. Returns a future that runs until cancelled.
- start_
rmcp_ daemon - Start RMCP-based SSE server