clj-kondo MCP 服务器
一个模型上下文协议 (MCP) 服务器,为 Clojure/ClojureScript/EDN 文件提供 clj-kondo linting 功能。对于没有内置 linting 功能的 Claude 代码和桌面环境来说,这非常方便。您可以考虑编辑 CLAUDE.md 文件,并在编辑后启用 lint 功能。
特征
- 通过 MCP 工具调用对 Clojure 文件进行 Lint
- 支持所有 clj-kondo 分析功能
- 可选的显式配置目录支持
安装
快速安装
或 IDE 配置
手动安装
- 构建服务器:
用法
运行服务器
MCP 工具调用
服务器提供了一个工具:
lint_clojure - Lint Clojure/ClojureScript/EDN 内容
参数:
file
参数接受:
- 单个文件路径(例如“/path/to/src/my_file.clj”)
- 目录路径(例如“/path/to/src”) - 将递归地检查所有 .clj、.cljs 和 .cljc 文件
- 类路径字符串 - 将检查类路径中的所有 Clojure 文件
- 对于 Leiningen 项目:使用
lein classpath
的输出 - 对于 deps.edn 项目:使用
clojure -Spath
的输出
- 对于 Leiningen 项目:使用
注意:由于 MCP 服务器作为独立进程运行,因此 file 和 configDir 参数都必须为绝对路径。相对路径将无法正常工作。
默认情况下,clj-kondo 会自动在当前目录及其父目录的.clj-kondo
目录中查找配置。您可以通过指定configDir
参数来指向特定的配置目录,从而覆盖此设置。
有关 clj-kondo 配置的更多信息,请参阅官方文档。
配置
添加到您的 MCP 设置文件(对于 Cline,位于~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
对于手动构建,请使用:
建造
观看模式
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
模型上下文协议服务器为 Clojure/ClojureScript/EDN 文件提供 clj-kondo linting 功能,对于缺少内置 linting 的 Claude 代码和桌面等环境很有用。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -121PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to read, search, and analyze code files with advanced caching and real-time file watching capabilities.Last updated -61623JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models like Claude to manage Linode cloud resources, including listing regions, creating, viewing, deleting, and rebooting Linode instances.Last updated -1PythonMIT License
Appeared in Searches
- Information about Java programming language or Java-related topics
- Using separate agents for schema validation, code standards, and directory structure enforcement in development workflows
- API Documentation for Libraries and Frameworks
- Finding the Top 10 Most Frequently Pulled Packages from Nexus Repository
- Editing IDE Code Files in JetBrains