Skip to main content

Interface: TemporalMCPToolsetOptions

googleAdkAgentsWorkflow.TemporalMCPToolsetOptions

Properties​

activity​

• Optional activity: ActivityOptions

Per-call Activity configuration (timeouts, retry, task queue). Tool calls take it as given; TemporalMCPToolset.listResources and TemporalMCPToolset.readResource default retry.maximumAttempts to 3 first, because a resource failure is skipped rather than raised. Set retry.maximumAttempts yourself to override that, or Number.POSITIVE_INFINITY for unlimited (the SDK's compileRetryPolicy rejects 0).


connectionParams​

• Optional connectionParams: MCPConnectionParams

Connection params used only when the toolset runs outside a Workflow (direct ADK use / tests), to construct a real MCPToolset.


name​

• name: string

Name selecting the worker-registered factory in GoogleAdkPluginOptions.mcpToolsets. Also names the backing Activities (<name>-listTools, <name>-callTool, <name>-listResources, <name>-readResource).


prefix​

• Optional prefix: string

Prefix applied to advertised tool names (mirrors ADK MCPToolset).


requireConfirmation​

• Optional requireConfirmation: MCPRequireConfirmation

Gate the toolset's tools behind human approval, like ADK's FunctionTool({ requireConfirmation }). The <name>-callTool Activity is NOT scheduled on the pass that raises the confirmation request, nor after a rejection; it runs once the resumed turn carries the approval (see hitlConfirmationResponse). Outside a Workflow (the direct connectionParams path) the same gate wraps the tools ADK's own MCPToolset returns, so nothing reaches the server unapproved there either. Only enforced on an LlmAgent turn — ADK 2.0's workflow ToolNode does not route through the confirmation path.


toolFilter​

• Optional toolFilter: string[]

Restrict the advertised tools to these (post-prefix) names. ADK's other toolFilter form, a ToolPredicate, is not supported.