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.
mcpName: string
Unique MCP (Model Context Protocol) identifier for the schema registry
strategyName: string
Strategy whose live instances this MCP (Model Context Protocol) observes and trades. Optional: defaults to the single registered strategy; ambiguous (2+ registered) requires it
positionCost: number
Entry cost in USD for opened positions. Default: GLOBAL_CONFIG.CC_POSITION_ENTRY_COST
minuteEstimatedTime: number
Estimated time in minutes for a position to reach its TP or SL.
permissions: 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
getMessages: (context: IMCPContext, when: Date, mcpName: string) => IMCPMessage[] | Promise<IMCPMessage[]>
Renders the portfolio snapshot into messages for the MCP (Model Context Protocol) agent (default: text per symbol)
callbacks: Partial<IMCPCallbacks>
Lifecycle callbacks (all optional)