MCP (Model Context Protocol) configuration object
Registration schema of an MCP (Model Context Protocol) instance.
Binds an MCP name to a strategy: status and position commands operate on every live instance of that strategy.
Optionalcallbacks?: Partial<IMCPCallbacks>Lifecycle callbacks (all optional)
OptionalgetMessages?: (Renders the portfolio snapshot into messages for the MCP (Model Context Protocol) agent (default: text per symbol)
Unique MCP (Model Context Protocol) identifier for the schema registry
OptionalminuteEstimatedTime?: numberEstimated time in minutes for a position to reach its TP or SL.
Optionalpermissions?: MCPPermission[]Per-method grants for the agent; each permission name gates the agent-facing MCP (Model Context Protocol) method of the same name. Default: all of them
OptionalpositionCost?: numberEntry cost in USD for opened positions. Default: GLOBAL_CONFIG.CC_POSITION_ENTRY_COST
OptionalstrategyName?: stringStrategy whose live instances this MCP (Model Context Protocol) observes and trades. Optional: defaults to the single registered strategy; ambiguous (2+ registered) requires it
Registers an MCP (Model Context Protocol) instance in the framework — the bridge exposing live trading of a strategy to an MCP agent (see MCP.getStatus).
The MCP binds to a strategy: status snapshots and position commands operate on every live instance of that strategy. getMessages renders the portfolio for the agent; when omitted the default renderer emits one text message per traded symbol.