MCPServer
Interface for MCP server implementations. Provides methods for connecting, listing tools, calling tools, and cleanup.
Properties
Section titled “Properties”cacheToolsList
Section titled “cacheToolsList”cacheToolsList: boolean;
readonly name: string;
Methods
Section titled “Methods”callTool()
Section titled “callTool()”callTool(toolName, args): Promise<object[]>
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”Promise
<object
[]>
close()
Section titled “close()”close(): Promise<void>
Returns
Section titled “Returns”Promise
<void
>
connect()
Section titled “connect()”connect(): Promise<void>
Returns
Section titled “Returns”Promise
<void
>
listTools()
Section titled “listTools()”listTools(): Promise<object[]>
Returns
Section titled “Returns”Promise
<object
[]>