Skip to main content

Interface: StatefulMcpServerOptions

openaiAgentsWorkflow.StatefulMcpServerOptions

Properties

cacheToolsList

Optional cacheToolsList: boolean

When true (the default), the agent SDK caches listTools for the agent's lifetime. Set to false if the server's tool set may change mid-run.


config

Optional config: Object

Activity options for tool operation Activities on the dedicated Worker.

Type declaration

NameType
heartbeatTimeout?Duration
retryPolicy?RetryPolicy
scheduleToStartTimeout?Duration
startToCloseTimeout?Duration
taskQueue?string

factoryArgument

Optional factoryArgument: unknown


serverSessionConfig

Optional serverSessionConfig: Object

Activity options for the long-running server-session Activity.

Type declaration

NameType
heartbeatTimeout?Duration
startToCloseTimeout?Duration