operai-runtime

Crates.iooperai-runtime
lib.rsoperai-runtime
version
created_at2026-01-13 17:17:26.437346+00
updated_at2026-01-14 19:57:35.596117+00
descriptionOperai gRPC server
homepage
repositoryhttps://github.com/brwse/operai
max_upload_size
id2040714
size0
Randolf J. (jrandolf)

documentation

README

operai-runtime

Operai runtime library.

This crate provides:

  • Local runtime execution backed by a tool registry
  • Remote runtime execution via gRPC
  • gRPC service implementation (ToolboxService)
  • MCP transport (feature mcp)

Runtime Builder

use operai_runtime::RuntimeBuilder;

let runtime = RuntimeBuilder::new()
    .with_manifest_path("operai.toml")
    .build_local()
    .await?;

gRPC Service

use operai_runtime::{RuntimeBuilder, transports::grpc::ToolboxService};

let runtime = RuntimeBuilder::new().build_local().await?;
let service = ToolboxService::from_runtime(runtime);

MCP Service (feature = "mcp")

use operai_runtime::McpService;

let runtime = RuntimeBuilder::new().build_local().await?;
let service = McpService::from_runtime(runtime).searchable(true);

Call Metadata

When calling tools programmatically, you can supply request/session/user IDs and credentials via CallMetadata.

Commit count: 24

cargo fmt