Skip to main content

Class: TemporalMCPTool

strands.TemporalMCPTool

Workflow-side stub for a single MCP tool. Each invocation dispatches the per-server {server}-callTool activity built by StrandsPlugin, then maps the raw MCP result ({ content: [...], isError }) into Strands content blocks.

Text items map to TextBlock; everything else falls back to JsonBlock. Richer mappings (images, embedded resources) would require McpTool, which is bundled in @strands-agents/sdk but not re-exported from its public index.

Hierarchy

  • Tool

    TemporalMCPTool

Constructors

constructor

new TemporalMCPTool(server, info, activityOptions): TemporalMCPTool

Parameters

NameType
serverstring
infoMcpToolInfo
activityOptionsActivityOptions

Returns

TemporalMCPTool

Overrides

Tool.constructor

Properties

description

Readonly description: string

Overrides

Tool.description


name

Readonly name: string

Overrides

Tool.name


server

Readonly server: string


toolSpec

Readonly toolSpec: ToolSpec

Overrides

Tool.toolSpec

Methods

stream

stream(toolContext): ToolStreamGenerator

Parameters

NameType
toolContextToolContext

Returns

ToolStreamGenerator

Overrides

Tool.stream