Interface: StatefulTemporalMCPServer
openaiAgentsWorkflow.StatefulTemporalMCPServer
Stateful variant of MCPServer. Adds cleanup() — the documented
lifecycle method users invoke from finally blocks after connect().
Hierarchy
-
MCPServer↳
StatefulTemporalMCPServer
Properties
cacheToolsList
• cacheToolsList: boolean
Inherited from
MCPServer.cacheToolsList
errorFunction
• Optional errorFunction: null | MCPToolErrorFunction
Optional function to convert MCP tool failures into model-visible messages. Set to null to rethrow errors instead of converting them.
Inherited from
MCPServer.errorFunction
name
• Readonly name: string
Inherited from
MCPServer.name
toolFilter
• Optional toolFilter: MCPToolFilterCallable | MCPToolFilterStatic
Inherited from
MCPServer.toolFilter
toolMetaResolver
• Optional toolMetaResolver: MCPToolMetaResolver
Inherited from
MCPServer.toolMetaResolver
Methods
callTool
▸ callTool(toolName, args, meta?): Promise<{ text: string ; type: string }[]>
Parameters
| Name | Type |
|---|---|
toolName | string |
args | null | Record<string, unknown> |
meta? | null | Record<string, unknown> |
Returns
Promise<{ text: string ; type: string }[]>
Inherited from
MCPServer.callTool
cleanup
▸ cleanup(): Promise<void>
Returns
Promise<void>
close
▸ close(): Promise<void>
Returns
Promise<void>
Inherited from
MCPServer.close
connect
▸ connect(): Promise<void>
Returns
Promise<void>
Inherited from
MCPServer.connect
invalidateToolsCache
▸ invalidateToolsCache(): Promise<void>
Returns
Promise<void>
Inherited from
MCPServer.invalidateToolsCache
listTools
▸ listTools(): Promise<{ description?: string ; inputSchema: { additionalProperties: boolean ; properties: Record<string, any> ; required: string[] ; type: "object" } ; name: string }[]>
Returns
Promise<{ description?: string ; inputSchema: { additionalProperties: boolean ; properties: Record<string, any> ; required: string[] ; type: "object" } ; name: string }[]>
Inherited from
MCPServer.listTools