Skip to content
Marko Kocić edited this page Feb 18, 2026 · 4 revisions

OpenCode is a powerful AI coding agent. Built for the terminal.

It offers a nicer GUI than Claude Code and is written in Go. In my experience, it provides superior Clojure syntax highlighting compared to Claude.

First you need to istall and verify clojure-mcp is installed and working as in installation instructions.

Create / edit ~/.config/opencode/opencode.json or ~/.config/opencode/opencode.json and add clojure-mcp configuration there.

  • This is an example config file:
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@franlol/opencode-md-table-formatter"],
  "mcp": {
    "clojure-mcp": {
      "type": "local",
      "command": ["clojure", "-Tmcp", "start"],
      "enabled": false
    },
    "clojure-mcp-cli": {
      "type": "local",
      "command": ["clojure", "-Tmcp", "start", ":config-profile", ":cli-assist"],
      "enabled": false
    }
  }
}
  • The most relevant section is "mcpServers" setting.
  • In opencode, you can run /mcp command to manually enable or disable MCP servers in a project session. I prefer them disabled by default so they don't accidentally get used in non-Clojure projects.

Clone this wiki locally