Function overrideMCPSchema

  • Overrides an existing MCP (Model Context Protocol) configuration in the framework.

    This function partially updates a previously registered MCP with new configuration. Only the provided fields will be updated, other fields remain unchanged.

    Parameters

    • mcpSchema: TMCPSchema

      Partial MCP configuration object

      • mcpName

        Unique MCP identifier (must exist)

      • strategyName

        Optional: Strategy whose live instances the MCP observes and trades

      • positionCost

        Optional: Entry cost in USD for opened positions

      • getMessages

        Optional: Portfolio renderer for the agent

      • callbacks

        Optional: Lifecycle callbacks

    Returns Promise<IMCPSchema>

    overrideMCPSchema({
    mcpName: "my-mcp",
    positionCost: 250, // Only raise the entry cost
    });