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.
(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.(dispatch srv msg)Dispatch one decoded JSON-RPC message. Notifications return nil.
Dispatch one decoded JSON-RPC message. Notifications return nil.
(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.
(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.
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 |