Liking cljdoc? Tell your friends :D

mcp.protocol

MCP 2026-07-28 wire-format helpers for JSON-RPC and tools.

MCP 2026-07-28 wire-format helpers for JSON-RPC and tools.
raw docstring

client-infoclj

source

error-codesclj

source

error-responseclj

(error-response id code message)
(error-response id code message data)
source

header-annotationsclj

(header-annotations schema)

Return [{:name header-name :path property-path :type property-type}] or throw if an x-mcp-header annotation is invalid.

Return [{:name header-name :path property-path :type property-type}]
or throw if an x-mcp-header annotation is invalid.
sourceraw docstring

header-decodeclj

(header-decode value)
source

header-encodeclj

(header-encode value)
source

header-type-matches?clj

(header-type-matches? type value)
source

header-valueclj

(header-value v)
source

integer-number?clj

(integer-number? v)
source

notification?clj

(notification? msg)
source

parse-jsonclj

(parse-json s)
source

requestclj

(request id method params)
(request id method params {:keys [client-info capabilities]})
source

request-client-capabilitiesclj

(request-client-capabilities msg)
source

request-client-infoclj

(request-client-info msg)
source

request-versionclj

(request-version msg)
source

request?clj

(request? msg)
source

responseclj

(response id result server-info)
source

response?clj

(response? msg)
source

server-infoclj

(server-info msg)
source

tool->openaiclj

(tool->openai tool)
source

versionclj

source

write-jsonclj

(write-json x)
source

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