JustAMCPMCPClient๏
Inherits: RefCounted < Object
Streamable HTTP MCP client for one remote server.
Description๏
Talks to a single remote MCP server over Streamable HTTP. Modern peers (2026-07-28) use server/discover, _meta capabilities, and Mcp-Method headers. Older peers fall back to initialize plus notifications/initialized.
Methods๏
completion_complete(params: Dictionary) |
|
void |
configure(config: Dictionary) |
void |
|
discover() |
|
prompts_get(params: Dictionary) |
|
prompts_list(params: Dictionary = {}) |
|
resources_list(params: Dictionary = {}) |
|
resources_read(params: Dictionary) |
|
resources_templates_list(params: Dictionary = {}) |
|
rpc(method: String, params: Dictionary) |
|
status() const |
|
tools_call(params: Dictionary) |
|
tools_list(params: Dictionary = {}) |
Method Descriptions๏
Dictionary completion_complete(params: Dictionary) ๐
Proxies completion/complete.
void configure(config: Dictionary) ๐
Applies bridge settings such as url, protocol_version, auth_token, and OAuth fields.
Dictionary connect_remote() ๐
Discovers the remote server or falls back to a legacy initialize handshake.
void disconnect_remote() ๐
Stops subscription listening and clears the in-memory result cache.
Dictionary discover() ๐
Calls server/discover on the remote peer.
Dictionary prompts_get(params: Dictionary) ๐
Proxies prompts/get.
Dictionary prompts_list(params: Dictionary = {}) ๐
Proxies prompts/list.
Dictionary resources_list(params: Dictionary = {}) ๐
Proxies resources/list.
Dictionary resources_read(params: Dictionary) ๐
Proxies resources/read.
Dictionary resources_templates_list(params: Dictionary = {}) ๐
Proxies resources/templates/list.
Dictionary rpc(method: String, params: Dictionary) ๐
Sends an arbitrary MCP JSON-RPC method with client _meta attached.
Dictionary status() const ๐
Returns connection status, negotiated protocol, and the last error if any.
Dictionary tools_call(params: Dictionary) ๐
Proxies tools/call, including InputRequiredResult retry with inputResponses.
Dictionary tools_list(params: Dictionary = {}) ๐
Proxies tools/list.