The mcpd daemon manages the plugin lifecycle. It executes the plugin binary with --address and --network unix flags. The plugin is responsible for creating and listening on the specified socket.
Once the socket is available, mcpd performs the following RPC calls in order:
Configure: Delivers the plugin configuration.CheckReady: Confirms the plugin is ready to serve requests.GetMetadata: Retrieves the plugin's name, version, and commit hash.
Note: GetCapabilities is called lazily by mcpd only when a configured flow requires it, but the plugin must still implement it.
Critical: You must listen on the socket before performing slow initialization work. If the socket does not accept a connection within the default 10-second timeout, mcpd will kill the process.