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
Implements
Section titled “Implements”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.constructorProperties
Section titled “Properties”cacheToolsList
Section titled “cacheToolsList”cacheToolsList: boolean;Implementation of
Section titled “Implementation of”MCPServerWithResources.cacheToolsList
Inherited from
Section titled “Inherited from”BaseMCPServerStdio.cacheToolsListerrorFunction?
Section titled “errorFunction?”optional errorFunction: MCPToolErrorFunction | null;Optional function to convert MCP tool failures into model-visible messages. Set to null to rethrow errors instead of converting them.
Implementation of
Section titled “Implementation of”MCPServerWithResources.errorFunction
Inherited from
Section titled “Inherited from”BaseMCPServerStdio.errorFunctiontoolFilter?
Section titled “toolFilter?”optional toolFilter: | MCPToolFilterCallable | MCPToolFilterStatic;Implementation of
Section titled “Implementation of”MCPServerWithResources.toolFilter
Inherited from
Section titled “Inherited from”BaseMCPServerStdio.toolFiltertoolMetaResolver?
Section titled “toolMetaResolver?”optional toolMetaResolver: MCPToolMetaResolver;Implementation of
Section titled “Implementation of”MCPServerWithResources.toolMetaResolver
Inherited from
Section titled “Inherited from”BaseMCPServerStdio.toolMetaResolverAccessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get name(): string;Returns
Section titled “Returns”string
Implementation of
Section titled “Implementation of”Overrides
Section titled “Overrides”BaseMCPServerStdio.nameMethods
Section titled “Methods”callTool()
Section titled “callTool()”callTool( toolName, args,meta?): Promise<object[]>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”MCPServerWithResources.callTool
Overrides
Section titled “Overrides”BaseMCPServerStdio.callToolclose()
Section titled “close()”close(): Promise<void>;Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Overrides
Section titled “Overrides”BaseMCPServerStdio.closeconnect()
Section titled “connect()”connect(): Promise<void>;Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”MCPServerWithResources.connect
Overrides
Section titled “Overrides”BaseMCPServerStdio.connectinvalidateToolsCache()
Section titled “invalidateToolsCache()”invalidateToolsCache(): Promise<void>;Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”MCPServerWithResources.invalidateToolsCache
Overrides
Section titled “Overrides”BaseMCPServerStdio.invalidateToolsCachelistResources()
Section titled “listResources()”listResources(params?): Promise<MCPListResourcesResult>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<MCPListResourcesResult>
Implementation of
Section titled “Implementation of”MCPServerWithResources.listResources
Overrides
Section titled “Overrides”BaseMCPServerStdio.listResourceslistResourceTemplates()
Section titled “listResourceTemplates()”listResourceTemplates(params?): Promise<MCPListResourceTemplatesResult>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<MCPListResourceTemplatesResult>
Implementation of
Section titled “Implementation of”MCPServerWithResources.listResourceTemplates
Overrides
Section titled “Overrides”BaseMCPServerStdio.listResourceTemplateslistTools()
Section titled “listTools()”listTools(): Promise<object[]>;Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”MCPServerWithResources.listTools
Overrides
Section titled “Overrides”BaseMCPServerStdio.listToolsreadResource()
Section titled “readResource()”readResource(uri): Promise<MCPReadResourceResult>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<MCPReadResourceResult>
Implementation of
Section titled “Implementation of”MCPServerWithResources.readResource
Overrides
Section titled “Overrides”BaseMCPServerStdio.readResource