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
の出力を使用します
- Leiningenプロジェクトの場合:
注意: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
にあります) に追加します。
手動ビルドの場合は以下を使用します。
建てる
ウォッチモード
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Clojure/ClojureScript/EDN ファイルに clj-kondo リンテ���ング機能を提供するモデル コンテキスト プロトコル サーバー。Claude コードやデスクトップなど、組み込みのリンティングがない環境に役立ちます。
Related MCP Servers
- -securityAlicense-qualityAn unofficial JavaScript SDK to create customized servers for the Model Context Protocol, allowing definition of prompts, resources, and tools for tailored interactions.Last updated -62JavaScriptApache 2.0
- AsecurityFlicenseAqualityA template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.Last updated -15TypeScript
- AsecurityFlicenseAqualityEnables interaction with a running Clojure nREPL instance for evaluating Clojure code, inspecting namespaces, and retrieving connection statuses, compatible with MCP clients like Claude Desktop and CLine in VSCode.Last updated -3916JavaScript
- -securityAlicense-qualityA TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.Last updated -6TypeScriptMIT 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