Skip to content
Baptiste Fontaine edited this page Jun 26, 2025 · 2 revisions

In the settings, go to Tools > AI Assistant > Model Context Protocol (MCP).

Add a new server as JSON with the following configuration:

{
  "mcpServers": {
    "clojure-mcp": {
      "command": "/usr/local/bin/clojure",
      "args": [
        "-X:mcp",
        ":port",
        "7888"
      ]
    }
  }
}

Run which clojure in your terminal to get the path to use.

Troubleshooting

Expected JsonPrimitive, but had JsonArray as the serialized body of string

Expected JsonPrimitive, but had JsonArray as the serialized body of string at element: $.type JSON input: ["string","number"]

This issue has been fixed; update your clojure-mcp to the latest version.

Clone this wiki locally