CodeModeOptions
Defined in: mcp-code/src/lib/code-mode.ts:13
Properties
Section titled “Properties”auditScriptSource?
Section titled “auditScriptSource?”
optionalauditScriptSource?:boolean
Defined in: mcp-code/src/lib/code-mode.ts:23
Also put the full script source in params.mcp.script (and so in every audit record it
reaches). Off by default — scripts can embed data — and params.mcp.scriptHash (SHA-256) is
always present to correlate a record with the script that made it.
Default
Section titled “Default”falseexecutor?
Section titled “executor?”
optionalexecutor?:CodeExecutor
Defined in: mcp-code/src/lib/code-mode.ts:15
The sandbox.
Default
Section titled “Default”quickJsExecutor()limits?
Section titled “limits?”
optionallimits?:Partial<CodeLimits>
Defined in: mcp-code/src/lib/code-mode.ts:17
Override any of DEFAULT_CODE_LIMITS.