MCP 2026-07-28 client for tools over stdio and Streamable HTTP.
MCP 2026-07-28 client for tools over stdio and Streamable HTTP.
(call-tool conn name arguments)Call a named MCP tool with a JSON-object argument map. Returns its MCP result, throwing ex-info for JSON-RPC errors.
Call a named MCP tool with a JSON-object argument map. Returns its MCP result, throwing ex-info for JSON-RPC errors.
(close! conn)Close the client connection, including a launched stdio child process.
Close the client connection, including a launched stdio child process.
(connect {:keys [command url] :as options})Connect using exactly one of {:command [...]} or {:url "https://..."}.
Connect using exactly one of {:command [...]} or {:url "https://..."}.
(connect-http url
&
[{:keys [timeout-ms headers client-info capabilities]
:or {headers {}}}])Connect to a Streamable HTTP MCP endpoint. Options: :timeout-ms, :headers, :client-info, and :capabilities.
Connect to a Streamable HTTP MCP endpoint. Options: :timeout-ms, :headers, :client-info, and :capabilities.
(connect-stdio command
&
[{:keys [env cwd timeout-ms client-info capabilities]
:or {env {}}}])Launch an MCP server as a subprocess. Options: :env, :cwd, :timeout-ms, :client-info, and :capabilities.
Launch an MCP server as a subprocess. Options: :env, :cwd, :timeout-ms, :client-info, and :capabilities.
(list-tools conn)List all server tools, following pagination cursors.
List all server tools, following pagination cursors.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |