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


error-codesclj


error-responseclj

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

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

header-decodeclj

(header-decode value)

header-encodeclj

(header-encode value)

header-type-matches?clj

(header-type-matches? type value)

header-valueclj

(header-value v)

integer-number?clj

(integer-number? v)

notification?clj

(notification? msg)

parse-jsonclj

(parse-json s)

requestclj

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

request-client-capabilitiesclj

(request-client-capabilities msg)

request-client-infoclj

(request-client-info msg)

request-versionclj

(request-version msg)

request?clj

(request? msg)

responseclj

(response id result server-info)

response?clj

(response? msg)

server-infoclj

(server-info msg)

tool->openaiclj

(tool->openai tool)

versionclj


write-jsonclj

(write-json x)

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