2 releases
Uses new Rust 2024
| 0.1.1 | Jan 14, 2026 |
|---|---|
| 0.1.0 | Jan 13, 2026 |
#1217 in Authentication
Used in cargo-operai
255KB
5K
SLoC
Operai Toolbox library.
This crate provides the gRPC service implementation for the Operai Toolbox.
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.
Dependencies
~29MB
~439K SLoC