class documentation
class TemporalMcpToolSet(BaseToolset): (source)
Constructor: TemporalMcpToolSet(name, config, factory_argument, not_in_workflow_toolset)
Temporal-aware MCP toolset implementation.
Warning
This class is experimental and may change in future versions. Use with caution in production environments.
Executes MCP tools as Temporal activities, providing proper isolation and execution guarantees within workflows.
| Method | __init__ |
Initializes the Temporal MCP toolset. |
| Async Method | get |
Retrieves available tools from the MCP toolset. |
| Instance Variable | _config |
Undocumented |
| Instance Variable | _factory |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _not |
Undocumented |
def __init__(self, name:
str, config: ActivityConfig | None = None, factory_argument: Any | None = None, not_in_workflow_toolset: Callable[ [ (Any | None)], McpToolset] | None = None):
(source)
¶
Initializes the Temporal MCP toolset.
Warning
Do not pass secrets, credentials, or API keys through factory_argument. It is an activity argument, so it is recorded in workflow history and, without a payload codec, visible in the web UI. Resolve credentials worker-side inside the toolset factory instead.
| Parameters | |
name:str | Name of the toolset (used for activity naming). |
config:ActivityConfig | None | Optional activity configuration. |
factoryAny | None | Optional argument passed to toolset_factory. Must not contain secrets. |
notCallable[ | Optional factory that returns the underlying McpToolset to use when this wrapper executes outside workflow.in_workflow(), such as local ADK runs. This is not needed during normal workflow execution, but get_tools() raises ValueError outside a workflow if it is omitted. |