Skip to main content
Version: 0.16.1

Function: createHumanApprovalServer()

function createHumanApprovalServer(
runDir,
texts?,
options?
): McpSdkServerConfigWithInstance;

Defined in: core/tools/humanApproval.ts:35

The tools that ask the person, in every mode but autonomous: request_human_approval (right before an action that publishes something visible to others and that's hard to undo), ask_human (a choice between options, in a panel, within the turn) and, when the session can be in plan mode (modeControl), present_plan, the kit's own way out of plan mode (ADR-023): the person runs the plan, keeps planning or cancels.

Parameters​

ParameterTypeDefault value
runDirstringundefined
textsHumanApprovalTextsDEFAULT_HUMAN_APPROVAL_TEXTS
options{ modeControl?: ModeControl; }{}
options.modeControl?ModeControlundefined

Returns​

McpSdkServerConfigWithInstance