clj-kondo MCP サーバー
Clojure/ClojureScript/EDNファイル用のclj-kondoリンティング機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。Claudeコードやデスクトップ版で、組み込みのリンティング機能がない環境で便利です。CLAUDE.mdを編集後、リンティングを実行するように設定することを検討してください。
特徴
MCPツール呼び出しによるClojureファイルのLint
すべてのclj-kondo分析機能をサポート
オプションの明示的な構成ディレクトリのサポート
インストール
クイックインストール
またはIDE設定
手動インストール
clj-kondo をインストールしてください。clj -kondoがインストールされ、システム PATH 上で利用可能になっていることを確認してください。お使いのプラットフォームのインストール手順をご覧ください。
依存関係をインストールします:
サーバーを構築します。
使用法
サーバーの実行
MCPツール呼び出し
サーバーは次のツールを 1 つ提供します。
lint_clojure - Clojure/ClojureScript/EDN コンテンツをリントする
パラメータ:
fileパラメータは以下を受け入れます:
単一のファイルパス(例: "/path/to/src/my_file.clj")
ディレクトリパス(例:"/path/to/src") - すべての.clj、.cljs、.cljcファイルを再帰的にlintします。
クラスパス文字列 - クラスパス内のすべての Clojure ファイルを lint します
Leiningenプロジェクトの場合:
lein classpathの出力を使用するdeps.ednプロジェクトの場合:
clojure -Spathの出力を使用します
注意:MCPサーバーは別プロセスとして実行されるため、fileパラメータとconfigDirパラメータはどちらも絶対パスで指定する必要があります。相対パスは正しく動作しません。
デフォルトでは、clj-kondo は現在のディレクトリと親ディレクトリの.clj-kondoディレクトリから設定を自動的に検索します。configDir 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 リンティング機能を提供するモデル コンテキスト プロトコル サーバー。Claude コードやデスクトップなど、組み込みのリンティングがない環境に役立ちます。
Related MCP Servers
- Asecurity-licenseAqualityA 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 -122MIT License
- Asecurity-licenseAqualityA 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 -6530MIT License
- -security-license-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 -MIT License
- Asecurity-licenseAqualityA 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 -11MIT 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