origin-mcp-http
MCP over a local loopback HTTP endpoint for Origin applications (ADR-0031).
Part of Origin, a Rust/Tauri platform for building desktop applications from a shared set of domain crates. See the workspace documentation for how the pieces fit together, and ARCHITECTURE.md for the rules this crate follows.
Example
use McpServer;
use ;
use Arc;
use CancellationToken;
let server = new;
let token = generate;
let cancellation = new;
// Binds an ephemeral port on 127.0.0.1:0 and publishes discovery info
let transport = bind.await?;
let port = transport.port;
Enables external AI clients to connect to an already-running GUI application without process restarts or single-instance collisions. Endpoint access is guarded by constant-time bearer token authentication and runtime discovery files.
Stability
Pre-1.0 (0.2.0). Public types, enums and field sets may still change between minor
versions; pin an exact version if that matters to you.