Skip to content

RFC 0025: reactive MCP subscriptions and SSE transport #170

@dligthart

Description

@dligthart

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

  1. Add session-backed MCP HTTP streaming so GET /mcp can keep a live connection open.
  2. Add a subscribe_events MCP tool for explicit topic registration.
  3. Reuse the existing audit event bus and filter by actor scope and domain.
  4. Ship one verified end-to-end path first: workflow and content approval or publish-related events.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions