Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuba_cognitive_engine/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main() -> anyhow::Result<()> {

// 2. Initialize the MCP Protocol Server
// This replaces the entire Python layer.
let mcp_server = std::sync::Arc::new(server::McpServer::new());
let mcp_server = std::sync::Arc::new(server::McpServer::new()?);

// 3. Block on the execution loop
mcp_server.run().await?;
Expand Down
8 changes: 4 additions & 4 deletions cuba_cognitive_engine/src/server/mcp_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ pub struct McpServer {
}

impl McpServer {
pub fn new() -> Self {
pub fn new() -> Result<Self> {
// DEBT-T07: Direct sandbox, no router indirection
let sandbox = Arc::new(LocalReasoningEngine::new("cognitive-engine-v3", 2).unwrap());
let sandbox = Arc::new(LocalReasoningEngine::new("cognitive-engine-v3", 2)?);
let sessions = Arc::new(crate::engine::thought_session::SessionStore::new());
let metrics = Arc::new(RedMetrics::new());
Self {
Ok(Self {
sandbox,
sessions,
metrics,
}
})
}

/// Primary Execution Loop (STDIO)
Expand Down