class TemporalMcpToolSetProvider: (source)
Constructor: TemporalMcpToolSetProvider(name, toolset_factory)
Provider for creating Temporal-aware MCP toolsets.
Warning
This class is experimental and may change in future versions. Use with caution in production environments.
Manages the creation of toolset activities and handles tool execution within Temporal workflows.
This provider is stateless: every list-tools/call-tool activity
invocation builds a fresh McpToolset via toolset_factory, runs the
operation, and always closes the toolset in a finally block. This means
factory_argument is honored on every single call (no cross-workflow
connection sharing or silent mis-routing) and no MCP session or stdio
subprocess is leaked. State is not maintained across calls; if a persistent
connection is required, use TemporalStatefulMcpToolSetProvider.
| Method | __init__ |
Initializes the toolset provider. |
| Method | _get |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _toolset |
Undocumented |