arbit 0.17.0

Security proxy for MCP (Model Context Protocol) — auth, rate limiting, payload filtering, and audit logging between AI agents and MCP servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod http;
pub mod stdio;

use crate::gateway::McpGateway;
use async_trait::async_trait;
use std::sync::Arc;

/// Trait para o transport — HTTP hoje, stdio depois.
/// O gateway não sabe nada sobre como as mensagens chegam.
#[async_trait]
pub trait Transport: Send + Sync {
    async fn serve(&self, gateway: Arc<McpGateway>) -> anyhow::Result<()>;
}