class documentation

class TemporalMcpToolSet(BaseToolset): (source)

Constructor: TemporalMcpToolSet(name, config, factory_argument)

View In Hierarchy

Temporal-aware MCP toolset implementation.

Executes MCP tools as Temporal activities, providing proper isolation and execution guarantees within workflows.

Method __init__ Initializes the Temporal MCP toolset.
Async Method get_tools Retrieves available tools from the MCP toolset.
Instance Variable _config Undocumented
Instance Variable _factory_argument Undocumented
Instance Variable _name Undocumented
def __init__(self, name: str, config: ActivityConfig | None = None, factory_argument: Any | None = None): (source)

Initializes the Temporal MCP toolset.

Parameters
name:strName of the toolset (used for activity naming).
config:ActivityConfig | NoneOptional activity configuration.
factory_argument:Any | NoneOptional argument passed to toolset factory.
async def get_tools(self, readonly_context: ReadonlyContext | None = None) -> list[BaseTool]: (source)

Retrieves available tools from the MCP toolset.

Parameters
readonly_context:ReadonlyContext | NoneOptional readonly context (unused in this implementation).
Returns
list[BaseTool]List of available tools wrapped as Temporal activities.

Undocumented

_factory_argument = (source)

Undocumented

Undocumented