Skip to main content

Interface: TemporalMCPClientOptions

strands.TemporalMCPClientOptions

Options for TemporalMCPClient.

The ActivityOptions apply to every per-tool activity invocation the agent makes for this MCP server.

cacheTools controls how often the agent re-lists this server's tools. Strands lists an MCP client's tools once when the agent initializes and then reuses that list for every turn, so the list is otherwise frozen for the whole workflow.

  • false (default) — re-list the tools on each agent turn, so the agent picks up an MCP server that's restarted or redeployed mid-workflow. Costs one extra {server}-listTools activity per tool round.
  • true — list once at the beginning of the workflow and reuse for all turns. Cheaper, but the tool list is fixed for the workflow's lifetime.

Properties

activityOptions

Optional activityOptions: ActivityOptions


cacheTools

Optional cacheTools: boolean


server

server: string