Skip to content

MCPToolFilterContext

Context information available to tool filter functions.

Type Parameter Default type

TContext

UnknownContext

agent: Agent<TContext, any>;

The agent requesting the tools.


runContext: RunContext<TContext>;

The current run context.


serverName: string;

Name of the MCP server providing the tools.