Liking cljdoc? Tell your friends :D

mcp.protocol

Pure Clojure definitions for JSON-RPC 2.0 and MCP protocol messages.

Pure Clojure definitions for JSON-RPC 2.0 and MCP protocol messages.
raw docstring

call-tool-requestclj

(call-tool-request id name arguments)

Builds the MCP tools/call request.

Builds the MCP tools/call request.
raw docstring

initialize-requestclj

(initialize-request id client-name client-version capabilities)

Builds the MCP initialize request payload.

Builds the MCP initialize request payload.
raw docstring

initialized-notificationclj

(initialized-notification)

Builds the MCP initialized notification.

Builds the MCP initialized notification.
raw docstring

json->mapclj

(json->map json-str)

Safely parse JSON string to Clojure map with keyword keys.

Safely parse JSON string to Clojure map with keyword keys.
raw docstring

jsonrpc-versionclj


list-tools-requestclj

(list-tools-request id)

Builds the MCP tools/list request.

Builds the MCP tools/list request.
raw docstring

map->jsonclj

(map->json m)

Serialize Clojure map to JSON string.

Serialize Clojure map to JSON string.
raw docstring

notificationclj

(notification method params)

Builds a JSON-RPC notification map (no id).

Builds a JSON-RPC notification map (no id).
raw docstring

requestclj

(request id method params)

Builds a JSON-RPC request map.

Builds a JSON-RPC request map.
raw 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