Expand description
HCT-MCP Signals: Coordination Signals Extension for MCP
This crate provides Rust types and utilities for HCT coordination signals, enabling urgency, timing, and approval semantics in MCP-based multi-agent systems.
§Quick Start
use hct_mcp_signals::{cue, SignalType, Tempo};
let signal = cue("orchestrator", vec!["analyst"])
.with_urgency(8)
.with_tempo(Tempo::Allegro)
.build();
let json = signal.to_mcp_json().unwrap();§Signal Types
Cue- Trigger agent activationFermata- Hold for approvalAttacca- Immediate transitionVamp- Repeat until conditionCaesura- Full stopTacet- Agent inactiveDownbeat- Global sync point
Structs§
- Conditions
- Conditions for conditional signals (FERMATA, VAMP).
- HCTSignal
- Complete HCT Signal.
- McpTask
Send - MCP task/send message with HCT signal extension.
- Performance
- Performance parameters (Layer 3 in HCT).
- Signal
Builder - Builder for creating HCT signals.
Enums§
- Hold
Type - Types of holds for FERMATA signals.
- Signal
Type - The 7 HCT coordination signal types.
- Tempo
- Musical tempo indications mapped to urgency timing.
Functions§
- attacca
- Create an ATTACCA signal for immediate transition.
- caesura
- Create a CAESURA signal for full stop.
- cue
- Create a CUE signal to trigger agent activation.
- downbeat
- Create a DOWNBEAT signal for global synchronization.
- embed_
signal - Embed an HCT signal into existing JSON params.
- extract_
signal - Extract an HCT signal from JSON params.
- fermata
- Create a FERMATA signal to hold for approval.
- get_
json_ schema - Get the JSON Schema for
HCTSignalas aserde_json::Value. - get_
json_ schema_ string - Get the JSON Schema as a formatted string.
- get_
mcp_ extension_ schema - Get the MCP extension wrapper schema.
- tacet
- Create a TACET signal to mark agent as inactive.
- vamp
- Create a VAMP signal to repeat until condition met.