Skip to main content

Crate routa_server

Crate routa_server 

Source
Expand description

Routa Server — HTTP adapter for the Routa.js platform.

This crate provides the HTTP/REST layer (via axum) on top of routa-core. It re-exports all core modules so downstream consumers that only need the server can depend on this single crate.

§Architecture

routa-core    (domain: models, stores, state, protocols, RPC)
     ↑
routa-server  (adapter: HTTP/axum, this crate)

Modules§

acp
ACP (Agent Client Protocol) integration.
api
db
SQLite database layer for the Routa desktop backend.
error
Core error type for the Routa platform.
events
Event Bus - Publish/subscribe event system for inter-agent communication.
git
Git utilities for clone, branch management, and repo inspection. Port of src/core/git/git-utils.ts
mcp
MCP (Model Context Protocol) server integration using the official Rust SDK (rmcp).
models
orchestration
RoutaOrchestrator - Task orchestration and child agent spawning.
rpc
Transport-agnostic JSON-RPC 2.0 layer for Routa.js.
sandbox
Sandbox module — Docker-based isolated code execution for LLM agents.
shell_env
Resolve the user’s full shell PATH for desktop GUI apps.
skills
Skills discovery and registry.
state
Shared application state for the axum server.
store
tools
AgentTools - Core coordination tools for multi-agent collaboration.

Structs§

AppStateInner
Shared state accessible by all API handlers.
Database
Thread-safe handle to the SQLite database.
ServerConfig
Configuration for the Routa backend server.

Enums§

ServerError

Functions§

create_app_state
Create a shared AppState from a database path.
start_server
Start the embedded Rust backend server.
start_server_with_state
Start the HTTP server with a pre-built AppState.

Type Aliases§

AppState