BC

bhauman/clojure-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

784 stars 83 forks 质量 70 趋势 36EPL-2.0

Clojure MCP

概览

ClojureMCP 是 Clojure 的 MCP 服务器! ClojureMCP 是一个 MCP 服务器,将 LLM 客户端(如 Claude Code 或 Claude Desktop)连接到您的 Clojure 项目。它提供 REPL 工具和支持 Clojure 的编辑工具,旨在可靠地处理 Clojure 的括号和格式。 根据你的LLM客户端,ClojureMCP可以选择:- 为像Claude Desktop这样的桌面聊天应用提供一个,或者- 为那些已经拥有优秀文件编辑和shell工具(如REPL集成+Clojure识别编辑)的Clojure专用功能填补空白。 1. 安装ClojureMCP(clojure -Ttools install-latest ...)。2. 将其注册为LLM客户端中的MCP服务器。 如果你用的是CLI助手,通常会更倾向于保留CLI的原生文件编辑工具,主要用ClojureMCP来集成REPL(以及作为编辑备份)。 如果你用的是桌面聊天应用,通常会用完整的ClojureMCP工具链。

概述(AI 翻译)

ClojureMCP 为 Claude Code 和 Codex 等编码代理提供了持久化 连接你的Clojure REPL。

目录

  • 什么是ClojureMCP?
  • 项目的发展方向
  • 帮助与社区资源
  • 📋 安装
  • CLI 代理(推荐)
  • 完整工具包(遗产)
  • 🔧 定制化
  • CLI 选项
  • ⚙️ 配置
  • 📝 许可证

什么是ClojureMCP?

ClojureMCP 是一个将编码代理连接到正在运行的 MCP 服务器 在你的项目中加入nREPL。有了它,代理可以做Clojure的操作 程序员会做:在 REPL 中探索,核对其假设 运行程序,并在它发生变化时进行测试。

  • clojure_eval - 在持久的nREPL上评估代码 连接,在评估前修复不平衡的分隔符。 使用Clojure、ClojureScript(shadow-cljs、Figwheel), 巴巴什卡、巴西利斯普和斯基特尔。
  • list_nrepl_ports - 发现运行在 的 nREPL 服务器 你的机器,所以代理可以找到并切换不同的REPL。
  • paren_repair - 罕见分隔符纠缠的安全阀 这很难通过字符串编辑来解决。

这就是全部推荐的设置::repl配置文件。你的经纪人

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Clojure MCP: A Live REPL for Your Coding Agent

ClojureMCP gives coding agents like Claude Code and Codex a persistent connection to your Clojure REPL.

Table of Contents

What is ClojureMCP?

ClojureMCP is an MCP server that connects a coding agent to a running nREPL in your project. With it, the agent can do what Clojure programmers do: explore in the REPL, check its assumptions against the running program, and test changes as it makes them.

  • clojure_eval - evaluates code over a persistent nREPL connection, repairing unbalanced delimiters before evaluating. Works with Clojure, ClojureScript (shadow-cljs, Figwheel), Babashka, Basilisp, and Scittle.
  • list_nrepl_ports - discovers the nREPL servers running on your machine, so the agent can find and switch between REPLs.
  • paren_repair - a safety valve for the rare delimiter tangle that’s hard to fix by string editing.

That’s the whole recommended setup: the :repl profile. Your agent keeps its own file reading, editing, search and shell tools.

Where the project is headed

ClojureMCP began in 2025 as a complete coding toolkit for Claude Desktop, at a time when LLMs regularly mangled Clojure’s parentheses. So it shipped its own structure-aware editors (clojure_edit, clojure_edit_replace_sexp), a collapsed read_file, file and shell tools, sub-agents, prompts and resources.

That has changed. Current frontier models (recent Claude models in particular) edit Clojure reliably with the built-in editors of Claude Code and Codex, and they rarely get into delimiter trouble they can’t get out of. The part of ClojureMCP that still matters is the REPL.

So:

  • The :repl profile is the recommended way to use ClojureMCP.
  • The editing tools and the rest of the full toolkit still work and remain available. They’re useful if you’re building your own harness, or if you’re driving a model that does struggle with Clojure edits. But they’re in maintenance mode and on a long path to deprecation, unless new, effective LLM editing approaches are discovered that are best delivered through ClojureMCP.

Help and Community Resources

📋 Installation

Prerequisites

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →