-
Notifications
You must be signed in to change notification settings - Fork 0
RFC 0025: reactive MCP subscriptions and SSE transport #170
Copy link
Copy link
Open
Description
Summary
Implement RFC 0025 so WordClaw can push domain-scoped events into active MCP clients instead of forcing polling loops.
Why now
- Remote MCP is still stateless today (POST /mcp, GET /mcp = 405).
- The runtime already has audit and webhook event plumbing that can be reused.
- Reactive subscriptions are the biggest product-value step from safe agent CRUD toward a real agent control plane.
Scope
- Add session-backed MCP HTTP streaming so GET /mcp can keep a live connection open.
- Add a subscribe_events MCP tool for explicit topic registration.
- Reuse the existing audit event bus and filter by actor scope and domain.
- Ship one verified end-to-end path first: workflow and content approval or publish-related events.
- Document the attach flow and add a verification script.
Acceptance criteria
- Agents can attach to a long-lived MCP HTTP stream.
- Agents can call subscribe_events with supported topics.
- Matching REST or runtime mutations produce events on the live MCP stream.
- Events are filtered to the authenticated actor's domain and scopes.
- There is an automated verification path covering attach, subscribe, and event delivery.
Suggested slices
- transport foundation
- subscription manager and filtering
- first event set (audit/content/workflow publish path)
- verification and docs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels