Implements
Constructors
Constructor
Parameters
config
McpConfig
options?
MultiServerOptions
Returns
MultiServerClient
Methods
[asyncDispose]()
Returns
Promise<void>
Implementation of
IClient.[asyncDispose]
callTool()
Type Parameters
TData
TData = unknown
Parameters
name
string
args?
Record<string, unknown>
options?
CallToolOptions
Returns
Promise<CallToolResult<TData>>
Implementation of
IClient.callTool
callToolRaw()
Type Parameters
TData
TData = unknown
Parameters
name
string
args?
Record<string, unknown>
options?
CallToolOptions
Returns
Promise<CallToolResult<TData>>
close()
Returns
Promise<void>
Implementation of
IClient.close
complete()
Parameters
ref
| {name: string;
type: "ref/prompt";
}
| {
type: "ref/resource";
uri: string;
}
argument
name
string
value
string
context?
arguments?
Record<string, string>
options?
RequestOptions
Returns
Promise<CompletionResult>
Implementation of
IClient.complete
connect()
Returns
Promise<void>
Implementation of
IClient.connect
getPrompt()
Parameters
name
string
args?
Record<string, string>
options?
RequestOptions
Returns
Promise<{
[key: string]: unknown;
}>
Implementation of
IClient.getPrompt
getProtocolEra()
'modern' for
2026-07-28, 'legacy' for 2025-11-25 and earlier, undefined if the
server name is unknown or not yet connected. See
MultiServerOptions.versionNegotiation — the same mode is requested of
every server, but each negotiates (and may land on) its own era
independently, so this is necessarily per-server rather than a single
client-wide value.
Parameters
serverName
string
Returns
ProtocolEra | undefined
isConnected()
Returns
boolean
Implementation of
IClient.isConnected
listPrompts()
Parameters
options?
RequestOptions
Returns
Promise<{
}[]>
Implementation of
IClient.listPrompts
listResources()
Parameters
options?
RequestOptions
Returns
Promise<{
}[]>
Implementation of
IClient.listResources
listResourceTemplates()
Parameters
options?
RequestOptions
Returns
Promise<{
}[]>
Implementation of
IClient.listResourceTemplates
listTools()
Parameters
options?
RequestOptions
Returns
Promise<{
}[]>
Implementation of
IClient.listTools
ping()
Parameters
options?
RequestOptions
Returns
Promise<boolean>
Implementation of
IClient.ping
readResource()
Parameters
uri
string
options?
RequestOptions
Returns
Promise<(
| {
}
| {
})[]>
Implementation of
IClient.readResource
setLogLevel()
logging/setLevel RPC; modern records the
level and threads it into _meta on that server’s subsequent requests via
_metaParamsFor, since logging/setLevel is absent from the modern wire
registry (SEP-2577).
Parameters
level
LoggingLevel
options?
RequestOptions
Returns
Promise<void>
Implementation of
IClient.setLogLevel
subscribeResource()
Parameters
uri
string
handler
ResourceUpdateHandler
options?
RequestOptions
Returns
Promise<void>
Implementation of
IClient.subscribeResource
unsubscribeResource()
Parameters
uri
string
options?
RequestOptions
Returns
Promise<void>
Implementation of
IClient.unsubscribeResource
connect()
Parameters
config
McpConfig
options?
MultiServerOptions
Returns
Promise<MultiServerClient>