ToolRegistry
Class: ToolRegistry
Defined in: packages/mcp/src/tools.ts:112
Registry of MCP tools built from operations
Constructors
Constructor
new ToolRegistry(
resolve):ToolRegistry
Defined in: packages/mcp/src/tools.ts:122
Create a new ToolRegistry instance
Parameters
resolve
schema resolver used to build input/output schemas
Returns
ToolRegistry
Properties
entries
protectedentries:Map<string,ToolEntry>
Defined in: packages/mcp/src/tools.ts:116
Entries
resolve
protectedresolve:SchemaResolver
Defined in: packages/mcp/src/tools.ts:122
schema resolver used to build input/output schemas
Methods
build()
build(
ops):void
Defined in: packages/mcp/src/tools.ts:128
Rebuild the registry from operations
Parameters
ops
Record<string, OperationDefinition>
visible operations of the transport
Returns
void
get()
get(
name):ToolEntry|undefined
Defined in: packages/mcp/src/tools.ts:151
Find a tool by name
Parameters
name
string
tool name
Returns
ToolEntry | undefined
the entry or undefined
list()
list():
ToolEntry[]
Defined in: packages/mcp/src/tools.ts:142
All tool entries, sorted by name
Returns
tool entries