Liking cljdoc? Tell your friends :D

boundary.mcp.core.protocol

Pure JSON-RPC 2.0 + MCP message construction. No I/O — the shell codec (boundary.mcp.shell.codec) owns JSON serialization.

Maps here use the exact JSON-RPC / MCP wire keys, including camelCase where the spec dictates (e.g. :protocolVersion, :serverInfo). This namespace IS the protocol boundary, so the wire schema is the representation; the usual kebab-case-internal rule does not apply to these protocol field names.

Pure JSON-RPC 2.0 + MCP message construction. No I/O — the shell codec
(boundary.mcp.shell.codec) owns JSON serialization.

Maps here use the exact JSON-RPC / MCP wire keys, including camelCase where
the spec dictates (e.g. :protocolVersion, :serverInfo). This namespace IS
the protocol boundary, so the wire schema is the representation; the usual
kebab-case-internal rule does not apply to these protocol field names.
raw docstring

errorclj

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

Build a JSON-RPC error response. code-key is a key in error-codes (or a raw integer code). data is optional extra context.

Build a JSON-RPC error response. `code-key` is a key in `error-codes` (or a
raw integer code). `data` is optional extra context.
sourceraw docstring

error-codesclj

source

jsonrpc-versionclj

source

mcp-protocol-versionclj

source

negotiate-versionclj

(negotiate-version requested)

Resolve the protocol version for the handshake: echo the client's requested version when supported, otherwise propose the server's preferred. (An MCP client that cannot speak the proposed version disconnects after initialize.)

Resolve the protocol version for the handshake: echo the client's
`requested` version when supported, otherwise propose the server's
preferred. (An MCP client that cannot speak the proposed version disconnects
after `initialize`.)
sourceraw docstring

notification?clj

(notification? msg)
source

request?clj

(request? msg)

A JSON-RPC request expects a response (carries an :id); a notification does not.

A JSON-RPC request expects a response (carries an :id); a notification does
not.
sourceraw docstring

successclj

(success id result)

Build a JSON-RPC success response for request id with result payload.

Build a JSON-RPC success response for request `id` with `result` payload.
sourceraw docstring

supported-protocol-version?clj

(supported-protocol-version? version)
source

supported-protocol-versionsclj

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