MCPKit.Runtime (mcp_kit v0.2.4)

Copy Markdown View Source

Host-started runtime substrate for active MCP sessions.

The runtime owns transient, node-local coordination state such as attached SSE streams, queued notifications, and pending outbound requests. Durable session facts remain in the host application's MCPKit.SessionStore.

Summary

Functions

Returns a child spec for the host application supervisor.

Derives the default runtime name from a definition module.

Functions

child_spec(opts)

Returns a child spec for the host application supervisor.

Accepts:

  • :definition - required MCPKit.Definition module
  • :name - optional runtime process name
  • :notification_queue_limit - optional per-session queue limit

default_name(definition)

Derives the default runtime name from a definition module.

For example, MyApp.MCP.Definition becomes MyApp.MCP.Runtime.