MCPServers
此内容尚不支持你的语言。
Manages MCP server lifecycle and exposes only connected servers.
Properties
Section titled “Properties”[asyncDispose]()
Section titled “[asyncDispose]()”[asyncDispose]: () => Promise<void>;Returns
Section titled “Returns”Promise<void>
Accessors
Section titled “Accessors”active
Section titled “active”Get Signature
Section titled “Get Signature”get active(): MCPServer[];Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get all(): MCPServer[];Returns
Section titled “Returns”errors
Section titled “errors”Get Signature
Section titled “Get Signature”get errors(): ReadonlyMap<MCPServer, Error>;Returns
Section titled “Returns”ReadonlyMap<MCPServer, Error>
failed
Section titled “failed”Get Signature
Section titled “Get Signature”get failed(): MCPServer[];Returns
Section titled “Returns”Methods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Returns
Section titled “Returns”Promise<void>
reconnect()
Section titled “reconnect()”reconnect(options): Promise<MCPServer[]>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<MCPServer[]>
open()
Section titled “open()”static open(servers, options?): Promise<MCPServers>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
Returns
Section titled “Returns”Promise<MCPServers>