mrapids 0.1.31

Your OpenAPI, but executable
Documentation
//! HTTP server mode for mrapids — provides REST API for trusted callers.
//!
//! Two execution paths:
//! - POST /api/execute — one-call trusted execution (policy + execute + mask + audit)
//! - POST /api/claim → /api/preview → /api/run — full verification workflow

pub mod server;

use crate::core::mcp::McpServer;
use std::sync::Arc;
use tokio::sync::Mutex;

/// Shared application state across all HTTP handlers
#[derive(Clone)]
pub struct AppState {
    pub server: Arc<Mutex<McpServer>>,
    pub api_key: Option<String>,
    pub start_time: std::time::Instant,
    pub allow_localhost: bool,
}