1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! # Brainwires Relay -- MCP Server Framework & Agent Communication
//!
//! Provides an MCP server framework, middleware pipeline, agent IPC,
//! remote relay bridging, and optional A2A protocol support.
// ============================================================================
// MCP Server Framework
// ============================================================================
/// WebSocket/HTTP connection types.
/// Error types for the relay crate.
/// MCP request handler trait.
/// Middleware pipeline (auth, logging, rate-limiting, tool filtering).
/// MCP tool registry.
/// MCP server lifecycle.
/// Server transport (stdio).
pub use ;
pub use RelayError;
pub use McpHandler;
pub use ;
pub use ;
pub use McpServer;
pub use ;
// Re-export middleware implementations
pub use AuthMiddleware;
pub use LoggingMiddleware;
pub use RateLimitMiddleware;
pub use ToolFilterMiddleware;
// ============================================================================
// Agent Communication Backbone (IPC, Auth, Remote)
// ============================================================================
/// Authentication for relay connections.
/// IPC (inter-process communication) socket protocol.
/// Remote relay bridge and realtime protocol.
/// Common relay traits.
// ============================================================================
// Agent Management (tool registry + lifecycle trait)
// ============================================================================
/// Agent lifecycle management.
/// Pre-built MCP tools for agent operations.
pub use ;
pub use AgentToolRegistry;
// ============================================================================
// Relay Client (merged from brainwires-bridge-client)
// ============================================================================
/// Relay client for connecting to a remote relay server.
pub use ;