Skip to content
Baptiste Fontaine edited this page Jun 24, 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"]

See issue #42.

Clone this wiki locally