Skip to main content

Crate brainwires_relay

Crate brainwires_relay 

Source
👎Deprecated since 0.2.1:

renamed to brainwires-agent-network

Modules§

agent_manager
Agent lifecycle management. AgentManager trait and supporting types for agent lifecycle abstraction
agent_tools
Pre-built MCP tools for agent operations. Agent Management Tools for MCP
auth
Authentication for agent network connections.
client
Client for connecting to a remote agent network server.
connection
WebSocket/HTTP connection types.
discovery
Peer discovery — how agents find each other on the network.
error
Error types for the agent network crate.
handler
MCP request handler trait.
identity
Agent identity, capability advertisement, and credentials.
ipc
IPC (inter-process communication) socket protocol.
mcp_transport
MCP server transport (stdio).
middleware
Middleware pipeline (auth, logging, rate-limiting, tool filtering).
network
Core network types: message envelopes, events, and errors.
registry
MCP tool registry.
remote
Remote bridge and realtime protocol.
routing
Message routing — direct, broadcast, and content-based routing.
server
MCP server lifecycle.
traits
Common agent network traits. Trait abstractions for decoupling bridge crate from CLI-specific types
transport
Networking transport layer — pluggable transports for agent communication.

Structs§

AgentCard
Capability advertisement for an agent.
AgentConfig
Configuration for spawning an agent.
AgentIdentity
An agent’s identity on the network.
AgentInfo
Information about a running or completed agent
AgentNetworkClient
MCP relay client that communicates with a subprocess over stdio.
AgentResult
Result from a completed agent
AgentToolRegistry
Registry of agent management tools
AuthMiddleware
Token-based authentication middleware.
ClientInfo
Information about a connected MCP client.
IpcTransport
Unix-socket IPC transport for agent-to-agent messaging.
LoggingMiddleware
Middleware that logs all requests and responses.
McpServer
MCP server that processes JSON-RPC requests via a transport.
McpToolDef
Definition of an MCP tool.
McpToolRegistry
Registry of MCP tools with their handlers.
MessageEnvelope
A message envelope that wraps any payload with routing metadata.
MiddlewareChain
Ordered chain of middleware layers.
NetworkManager
The user-facing API for the networking stack.
NetworkManagerBuilder
Builder for NetworkManager.
RateLimitMiddleware
Token-bucket rate limiting middleware.
RemoteTransport
Remote transport for cloud-mediated agent communication.
RequestContext
Context for an MCP request.
SpawnConfig
Configuration for spawning a new agent
StdioServerTransport
Stdio-based server transport (stdin/stdout).
ToolFilterMiddleware
Middleware that filters tool calls by allow/deny lists.

Enums§

AgentNetworkClientError
Errors from the relay client.
AgentNetworkError
Errors that can occur in the agent network layer.
ConnectionState
The connection state of a transport.
MessageTarget
The target of a message.
MiddlewareResult
Result of middleware processing.
NetworkError
Errors that can occur within the networking stack.
NetworkEvent
Events emitted by the networking stack.
Payload
The payload of a message.
TransportAddress
A network address that a transport can connect to.
TransportType
A transport type identifier for events.

Traits§

AgentManager
Trait for agent lifecycle management
McpHandler
Trait for handling MCP protocol requests.
Middleware
Trait for request/response middleware.
ServerTransport
Trait for server-side MCP transport.
ToolHandler
Trait for tool execution handlers.
Transport
The core transport trait.

Type Aliases§

ProtocolId
A protocol identifier (e.g. "mcp", "a2a", "ipc").