JustAMCPMCPClientBridge๏
Inherits: Object
MCP tools for bridging to remote MCP servers.
Description๏
Host for outbound Streamable HTTP MCP clients. Lists, adds, updates, and removes mcp_clients entries, connects bridges (discover or legacy initialize), and forwards tools, prompts, resources, and completions to allow-listed remote endpoints. Secrets such as auth_token and client_secret are redacted from list results.
Methods๏
add_bridge(args: Dictionary) |
|
void |
|
call_remote_tool(args: Dictionary) |
|
connect_bridge(args: Dictionary) |
|
disconnect_bridge(args: Dictionary) |
|
execute_tool(tool_name: String, arguments: Dictionary) |
|
list_bridges(args: Dictionary = {}) |
|
list_remote_tools(args: Dictionary) |
|
provide_tool_schemas(register_only: bool = false, ignore_settings: bool = false, include_disabled_tools: bool = false) |
|
read_remote_resource(args: Dictionary) |
|
remove_bridge(args: Dictionary) |
|
status_bridge(args: Dictionary) |
|
update_bridge(args: Dictionary) |
Method Descriptions๏
Dictionary add_bridge(args: Dictionary) ๐
Adds a bridge. args must include name and url. Optional fields include protocol_version, auth_token, oauth_mode, auto_connect, and expose_remote_tools.
void auto_connect_enabled_bridges() ๐
Connects every enabled bridge that has auto_connect set.
Dictionary call_remote_tool(args: Dictionary) ๐
Proxies tools/call to the named bridge.
Dictionary connect_bridge(args: Dictionary) ๐
Connects the bridge named in args.
Dictionary disconnect_bridge(args: Dictionary) ๐
Disconnects the named bridge and clears its session cache.
Dictionary execute_tool(tool_name: String, arguments: Dictionary) ๐
Executes the MCP client-bridge tool named by tool_name with arguments and returns the tool response dictionary.
Dictionary list_bridges(args: Dictionary = {}) ๐
Lists configured bridges with auth_token and client_secret redacted.
Dictionary list_remote_tools(args: Dictionary) ๐
Proxies tools/list from the named bridge.
Array provide_tool_schemas(register_only: bool = false, ignore_settings: bool = false, include_disabled_tools: bool = false) ๐
Returns MCP JSON schema dictionaries for client-bridge tools. Set register_only for registration metadata only, or ignore_settings to bypass editor filtering.
Dictionary read_remote_resource(args: Dictionary) ๐
Proxies resources/read to the named bridge.
Dictionary remove_bridge(args: Dictionary) ๐
Removes the bridge named in args.
Dictionary status_bridge(args: Dictionary) ๐
Returns connection status for the named bridge.
Dictionary update_bridge(args: Dictionary) ๐
Updates fields on an existing bridge. args must include name.