mcp-use TypeScript API
    Preparing search index...

    Interface CodeModeConfig

    Advanced configuration for code execution mode.

    interface CodeModeConfig {
        enabled: boolean;
        executor?: BaseCodeExecutor | CodeExecutorType | CodeExecutorFunction;
        executorOptions?: ExecutorOptions;
    }
    Index
    enabled: boolean

    Whether to enable code execution mode

    Executor type or custom implementation. Defaults to "vm"

    executorOptions?: ExecutorOptions

    Type-safe configuration options for the executor