SilverSight/scripts/mcp_backend/src/main.rs
allaun fa8f6a2586 chore: commit utility scripts, MCP backend source, and archived data
Utility scripts:
- download_leanstral.py: HuggingFace model download for autoproof
- download_leanstral_urllib.py: stdlib-only variant
- prime_slos_explore.py: spectral signature exploration for primes

Infrastructure:
- scripts/mcp_backend/: Rust MCP backend (src + Cargo.toml/lock, target/ gitignored)

Data:
- .openresearch/artifacts/slos_checkpoints/: 128K checkpoint data
- archive/dead_code_2026-07-03/: 360K archived dead code
2026-07-04 02:06:51 -05:00

22 lines
653 B
Rust

//! MCP server backend in Rust.
//!
//! Compile with --features http_server for HTTP mode, otherwise stdio mode.
use mcp_backend::McpState;
use std::sync::Arc;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Simple stdio mode for MCP integration
// The Python wrapper handles the actual MCP protocol
// This Rust binary provides thread-safe state management
let state = Arc::new(McpState::new());
// Output ready signal
println!("Rust MCP backend ready");
::std::io::stdout().flush().ok();
// Sleep forever (Python wrapper will manage lifecycle)
tokio::signal::ctrl_c().await.ok();
Ok(())
}