MCP.so
登录

概览

What is Clj Kondo?

An MCP server that provides clj-kondo linting for Clojure/ClojureScript/EDN files, designed for Claude Code and desktop environments without built-in linting.

How to use Clj Kondo?

Install with npx clj-kondo-mcp or configure via MCP settings (e.g., for Cline). The server provides the lint_clojure tool, which accepts an absolute file path, directory path, or classpath string, plus optional configDir and level parameters. Run the server manually with node build/index.js after building.

Key features of Clj Kondo

  • Lint Clojure files via MCP tool calls
  • Supports all clj-kondo analysis capabilities
  • Optional explicit configuration directory support

Use cases of Clj Kondo

  • Lint Clojure code in Claude Code or desktop without built-in linting
  • Check for errors and warnings in Clojure/ClojureScript/EDN files
  • Automatically lint after editing by instructing your Claude.md
  • Integrate linting into IDEs via standard MCP settings

FAQ from Clj Kondo

What file types does lint_clojure support?

It lints .clj, .cljs, and .cljc files. It can also process a directory or a classpath string to lint all matching files recursively.

Do the file and configDir parameters need to be absolute paths?

Yes, both must be absolute paths because the MCP server runs as a separate process. Relative paths will not work correctly.

What is the default lint level if not specified?

The default level is error. You can override it with a parameter value like warning.

What dependencies are required to run this server?

You need clj-kondo installed and available on your system PATH, plus Node.js and npm (the server is installed via npm).

How do I configure this server for my IDE?

Add an entry to your MCP settings file (e.g., for Cline at ~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json) with the command npx and args ["clj-kondo-mcp"].

标签

来自「其他」的更多内容