Skip to main content

qualia_mcp/
lib.rs

1//! `qualia-mcp` — Model Context Protocol (MCP) server library for QualiaDB.
2//!
3//! Provides a standards-compliant JSON-RPC 2.0 interface exposing:
4//! - Semantic Graph & SPARQL queries (including codebase.q42 audit inspection)
5//! - VibeScript DSL compiler, typechecker, and pretty-printer
6//! - Physics, geomechanics, space weather, and fire ecology simulations
7//! - Geospatial 3D frames and Hilbert curve indexing
8//! - Biosensing, rPPG pulse estimation, EVM magnification, and liveness analysis
9//! - 3D spatial audio HRTF positioning and EBU R128 loudness metering
10//! - Logic modalities (LTL, ASP, Deontic, Epistemic, Paraconsistent)
11//! - Scientific compute, CAS, ODE solvers, and computational geometry
12//! - QApps host surface runtime and cooperative governance
13//!
14//! Designed per `AGENTS.md` rules: zero-heap in hot paths, files under 500 lines.
15
16#[cfg(feature = "engine-tools")]
17pub mod dispatch;
18#[cfg(feature = "engine-tools")]
19pub mod listener;
20#[cfg(feature = "engine-tools")]
21pub mod protocol;
22#[cfg(feature = "engine-tools")]
23pub mod registry;
24#[cfg(feature = "engine-tools")]
25pub mod resources;
26#[cfg(feature = "engine-tools")]
27pub mod tools;
28#[cfg(feature = "engine-tools")]
29pub mod types;
30
31#[cfg(feature = "engine-tools")]
32pub use listener::start_mcp_listener_with_flags;
33#[cfg(feature = "engine-tools")]
34pub use protocol::{process_jsonrpc_message, MCP_PROTOCOL_VERSION};
35#[cfg(feature = "engine-tools")]
36pub use registry::{stable_mcp_tools, tool_list_json};
37#[cfg(feature = "engine-tools")]
38pub use types::{McpIntentFrame, McpRuntimeState, McpSystemError, McpToolDescriptor, RawToolPayload};
39
40/// Thin native-authoring protocol without the engine-tool dependency closure.
41#[cfg(feature = "authoring")]
42pub mod authoring;