MCPServerSSE
이 콘텐츠는 아직 번역되지 않았습니다.
Extended MCP server surface for servers that expose resources.
Extends
Section titled “Extends”BaseMCPServerSSE
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MCPServerSSE(options): MCPServerSSE;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”MCPServerSSE
Overrides
Section titled “Overrides”BaseMCPServerSSE.constructorProperties
Section titled “Properties”cacheToolsList
Section titled “cacheToolsList”cacheToolsList: boolean;Implementation of
Section titled “Implementation of”MCPServerWithResources.cacheToolsList
Inherited from
Section titled “Inherited from”BaseMCPServerSSE.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”BaseMCPServerSSE.errorFunctiontoolFilter?
Section titled “toolFilter?”optional toolFilter: | MCPToolFilterCallable | MCPToolFilterStatic;Implementation of
Section titled “Implementation of”MCPServerWithResources.toolFilter
Inherited from
Section titled “Inherited from”BaseMCPServerSSE.toolFiltertoolMetaResolver?
Section titled “toolMetaResolver?”optional toolMetaResolver: MCPToolMetaResolver;Implementation of
Section titled “Implementation of”MCPServerWithResources.toolMetaResolver
Inherited from
Section titled “Inherited from”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.callToolclose()
Section titled “close()”close(): Promise<void>;Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Overrides
Section titled “Overrides”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.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”BaseMCPServerSSE.readResource