MCPServerStdio
Public interface of an MCP server that provides tools. You can use this class to pass MCP server settings to your agent.
Extends
Section titled “Extends”BaseMCPServerStdio
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MCPServerStdio(options): MCPServerStdio
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
Returns
Section titled “Returns”MCPServerStdio
Overrides
Section titled “Overrides”BaseMCPServerStdio.constructor
Properties
Section titled “Properties”cacheToolsList
Section titled “cacheToolsList”cacheToolsList: boolean;
Inherited from
Section titled “Inherited from”BaseMCPServerStdio.cacheToolsList
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get name(): string
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”BaseMCPServerStdio.name
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
[]>
Overrides
Section titled “Overrides”BaseMCPServerStdio.callTool
close()
Section titled “close()”close(): Promise<void>
Returns
Section titled “Returns”Promise
<void
>
Overrides
Section titled “Overrides”BaseMCPServerStdio.close
connect()
Section titled “connect()”connect(): Promise<void>
Returns
Section titled “Returns”Promise
<void
>
Overrides
Section titled “Overrides”BaseMCPServerStdio.connect
listTools()
Section titled “listTools()”listTools(): Promise<object[]>
Returns
Section titled “Returns”Promise
<object
[]>
Overrides
Section titled “Overrides”BaseMCPServerStdio.listTools