Expand description
Hub Core - Core infrastructure for building Plexus RPC servers
This crate provides:
DynamicHub- Dynamic routing hub for activations (implements Plexus RPC protocol)Activation- Trait for implementing activationsPlexusMcpBridge- MCP server integrationHandle- Typed references to activation method results
§Example
use plexus_core::plexus::DynamicHub;
use plexus_core::activations::echo::Echo;
use plexus_core::activations::health::Health;
use std::sync::Arc;
let hub = Arc::new(
DynamicHub::new("myapp")
.register(Health::new())
.register(Echo::new())
);Re-exports§
pub use builder::build_example_hub;pub use mcp_bridge::PlexusMcpBridge;pub use plexus::Activation;pub use plexus::DynamicHub;pub use plexus::PlexusError;pub use types::Envelope;pub use types::Handle;pub use types::HandleParseError;pub use types::HandleResolutionParams;pub use types::Origin;
Modules§
- activations
- Example activations demonstrating hub-macro usage
- builder
- Example DynamicHub builder
- mcp_
bridge - MCP server bridge using rmcp with Plexus backend
- plexus
- plugin_
system - serde_
helpers - Serde helper utilities for consistent deserialization behavior
- types
- Substrate-level core types