Skip to content

StdioEventDispatcher ​

Type
Class
Namespace
craft\mcp
Inherits
craft\mcp\StdioEventDispatcher
Implements
Psr\EventDispatcher\EventDispatcherInterface

Saves project config changes before each stdio response is sent.

Over HTTP, changes are saved as each request ends. The stdio server is one long-running command, so without this they’d only be saved when it stops, and nothing else would see them until then.

View source

Public Methods ​

MethodDescription
dispatch()

dispatch() ​

View source

Arguments ​

  • $event