MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

Proposal: opt-in MCP Events for session-scoped wakeups

Open wqymi opened this issue 1 month ago • 0 comments

Motivation

Allow users to bind an MCP event source to an explicitly authorized MiMoCode session. New events wake an idle session or queue for the next turn while busy, without periodic model calls.

Proposed direction

  • Implement an explicitly opt-in MCP Events client in the shared engine; select a local-client delivery mode, with durable deduplication, safe provenance, scoped lifecycle and workspace/session isolation.
  • Keep SEP-3415 and the earlier OpenAI webhook sketch distinct, negotiate only implemented protocol versions, and document interoperability limits.
  • Treat payloads as external-origin content, honor existing tool approvals, and never infer a target session from the most recent MCP tool call.
  • Add transport and session integration tests covering idle, busy, disconnect, duplication, authorization and cleanup.

SEP-3415 is not yet merged and the current MCP SDK version is older than its proposed protocol. I am evaluating an experimental implementation on a separate branch and would welcome maintainer review of the design. Desktop is a separate host; this issue covers the shared engine and requires host integration to be validated separately.

wqymi avatar Oct 30 '26 15:10 wqymi