Skip to main content

getLocalMcpList

client.mcp.getLocalMcpList(): Promise<McpServer[]>

Retrieves the list of locally defined MCP servers.

Returns MCP servers that are defined in the local workspace configuration rather than installed from the marketplace. These are typically custom or development servers.

Parameters​

No parameters.

Returns​

Promise<McpServer[]> — A promise that resolves to an array of local MCP servers

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.mcp.getLocalMcpList();
console.log(result);