Liking cljdoc? Tell your friends :D

mcp.server

MCP 2026-07-28 server for the tools feature over stdio or Streamable HTTP.

MCP 2026-07-28 server for the tools feature over stdio or Streamable HTTP.
raw docstring

create-serverclj

(create-server
  {:keys [name version instructions tools ttl-ms cache-scope]
   :or {version "1.0.0" tools [] ttl-ms 300000 cache-scope "private"}})

Create a server from {:name :version :tools}. Tool handlers receive [arguments request-context] and return a text string or MCP tool result.

Create a server from {:name :version :tools}. Tool handlers receive
[arguments request-context] and return a text string or MCP tool result.
sourceraw docstring

dispatchclj

(dispatch srv msg)

Dispatch one decoded JSON-RPC message. Notifications return nil.

Dispatch one decoded JSON-RPC message. Notifications return nil.
sourceraw docstring

run-httpclj

(run-http srv
          {:keys [ip port path] :as options :or {ip "127.0.0.1" path "/mcp"}})

Start a Streamable HTTP MCP endpoint. Defaults to loopback; pass :ip/:port, optional :path, :bearer-token or :authenticate, and :allowed-origins.

Start a Streamable HTTP MCP endpoint. Defaults to loopback; pass
:ip/:port, optional :path, :bearer-token or :authenticate,
and :allowed-origins.
sourceraw docstring

run-stdioclj

(run-stdio srv)

Serve newline-delimited UTF-8 JSON-RPC on stdin/stdout until stdin closes.

Serve newline-delimited UTF-8 JSON-RPC on stdin/stdout until stdin closes.
sourceraw 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