Skip to main content

getAllMCPTools

codebolt.mcp.getAllMCPTools(mpcName: string): Promise<any>
Retrieves all available MCP tools for a given MCP instance.

Parameters

NameTypeDescription
mpcNamestringThe name of the MCP instance.

Returns:

 Promise<any>
A promise that resolves with a list of all MCP tools.

Example

// Example: Retrieving all MCP tools
const allTools = await codebolt.mcp.getAllMCPTools("mainMCP");
console.log("All MCP Tools:", allTools);