Liking cljdoc? Tell your friends :D

mcp.client

MCP 2026-07-28 client for tools over stdio and Streamable HTTP.

MCP 2026-07-28 client for tools over stdio and Streamable HTTP.
raw docstring

call-toolclj

(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.
raw docstring

close!clj

(close! conn)

Close the client connection, including a launched stdio child process.

Close the client connection, including a launched stdio child process.
raw docstring

connectclj

(connect {:keys [command url] :as options})

Connect using exactly one of {:command [...]} or {:url "https://..."}.

Connect using exactly one of {:command [...]} or {:url "https://..."}.
raw docstring

connect-httpclj

(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.
raw docstring

connect-stdioclj

(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.
raw docstring

default-timeout-msclj


discoverclj

(discover conn)

list-toolsclj

(list-tools conn)

List all server tools, following pagination cursors.

List all server tools, following pagination cursors.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close