basalt / mcp/src / collectTools
Function: collectTools()
> collectTools(routes, container, options?): McpTool[]
Defined in: mcp/src/tools.ts:389
Collect the MCP tools from the routes opted in with meta.mcp. container supplies the DI scope, enrichers and guards, so a tool call behaves exactly like the equivalent HTTP request.
Parameters
routes
container
options?
object & ToolErrorOptions = {}
Returns
McpTool[]