Skip to main content
Glama
Bigsy

clj-kondo MCP Server

by Bigsy

clj-kondo MCP サーバーnpmバージョン

Clojure/ClojureScript/EDNファイル用のclj-kondoリンティング機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。Claudeコードやデスクトップ版で、組み込みのリンティング機能がない環境で便利です。CLAUDE.mdを編集後、リンティングを実行するように設定することを検討してください。

特徴

  • MCPツール呼び出しによるClojureファイルのLint

  • すべてのclj-kondo分析機能をサポート

  • オプションの明示的な構成ディレクトリのサポート

Related MCP server: shadow-cljs-mcp

インストール

クイックインストール

npx clj-kondo-mcp

またはIDE設定

{
  "mcpServers": {
    "clj-kondo": {
      "command": "npx",
      "args": ["clj-kondo-mcp"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

手動インストール

  1. clj-kondo をインストールしてください。clj -kondoがインストールされ、システム PATH 上で利用可能になっていることを確認してください。お使いのプラットフォームのインストール手順をご覧ください。

  2. 依存関係をインストールします:

npm install
  1. サーバーを構築します。

npm run build

使用法

サーバーの実行

node build/index.js

MCPツール呼び出し

サーバーは次のツールを 1 つ提供します。

lint_clojure - Clojure/ClojureScript/EDN コンテンツをリントする

パラメータ:

{
  "file": "/absolute/path/to/file.clj", // Must be absolute path - can be a file, directory, or classpath
  "configDir": "/absolute/path/to/config/dir", // Optional, must be absolute path if provided
  "level": "warning" // Optional, defaults to error level
}

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にあります) に追加します。

{
  "mcpServers": {
    "clj-kondo": {
      "command": "npx",
      "args": ["clj-kondo-mcp"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

手動ビルドの場合は以下を使用します。

{
  "mcpServers": {
    "clj-kondo": {
      "command": "node",
      "args": ["build/index.js"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

建てる

npm run build

ウォッチモード

npm run dev
Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.
    23
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that monitors shadow-cljs builds and provides real-time build status updates for ClojureScript projects, allowing LLMs to verify build status after making code changes.
    1
    15
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready Model Context Protocol server that provides comprehensive file system management capabilities for seamless integration with Claude Desktop.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that analyzes application codebases with real-time file watching, providing AI assistants like Claude with deep insights into project structure, code patterns, and architecture.
    MIT

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • MEOK AGENTS.md Linter MCP — validates the cross-vendor coding-agent spec (Cursor / Claude Code /

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bigsy/clj-kondo-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server