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§
- AppState
Inner - Shared state accessible by all API handlers.
- Database
- Thread-safe handle to the SQLite database.
- Server
Config - Configuration for the Routa backend server.
Enums§
Functions§
- create_
app_ state - Create a shared
AppStatefrom a database path. - start_
server - Start the embedded Rust backend server.
- start_
server_ with_ state - Start the HTTP server with a pre-built
AppState.