Expand description
Interactive activation module - demonstrates bidirectional communication
This activation showcases how to use StandardBidirChannel for interactive
workflows with confirmations, prompts, and selection menus.
§Examples
§Using the wizard method
The wizard method demonstrates a multi-step interactive flow:
Client Server (wizard method)
| |
|<--- WizardEvent::Started ------------|
| |
|<--- Request: prompt("name") ---------|
|---- Response: "my-project" --------->|
| |
|<--- WizardEvent::NameCollected ------|
| |
|<--- Request: select("template") -----|
|---- Response: ["minimal"] ---------->|
| |
|<--- WizardEvent::TemplateSelected ---|
| |
|<--- Request: confirm("Create?") -----|
|---- Response: true ----------------->|
| |
|<--- WizardEvent::Created ------------|
|<--- WizardEvent::Done ---------------|§MCP Transport Flow
Over MCP, bidirectional requests work as follows:
- Server sends logging notification with type=“request”
- Client receives the request data
- Client calls
_plexus_respondtool with request_id and response - Server continues execution with the response
Structs§
- Interactive
- Interactive activation demonstrating bidirectional UI patterns
Enums§
- Confirm
Event - Events emitted by the confirm method
- Delete
Event - Events emitted by the delete method
- Wizard
Event - Events emitted by the wizard method