Skip to main content
Glama

clj-kondo MCP Server

lint_clojure

Lint Clojure, ClojureScript, and EDN files for errors or warnings using clj-kondo. Analyze individual files, directories, or classpaths, with optional custom config for enhanced linting accuracy.

Instructions

Lint Clojure/ClojureScript/EDN content using clj-kondo

Input Schema

NameRequiredDescriptionDefault
configDirNoOptional absolute path to .clj-kondo config directory (e.g. /Users/name/project/.clj-kondo). If not provided, clj-kondo will look for .clj-kondo directory in the current and parent directories.
fileYesCan be: 1) Absolute path to a file, 2) Directory path (will lint all .clj/.cljs/.cljc files recursively), or 3) Classpath string (obtained via `lein classpath` or `clojure -Spath`)
levelNoOptional linting level. By default all lints are errors. Set to "warning" to use warning level instead.

Input Schema (JSON Schema)

{ "properties": { "configDir": { "description": "Optional absolute path to .clj-kondo config directory (e.g. /Users/name/project/.clj-kondo). If not provided, clj-kondo will look for .clj-kondo directory in the current and parent directories.", "type": "string" }, "file": { "description": "Can be: 1) Absolute path to a file, 2) Directory path (will lint all .clj/.cljs/.cljc files recursively), or 3) Classpath string (obtained via `lein classpath` or `clojure -Spath`)", "type": "string" }, "level": { "description": "Optional linting level. By default all lints are errors. Set to \"warning\" to use warning level instead.", "enum": [ "warning" ], "type": "string" } }, "required": [ "file" ], "type": "object" }
Install Server

Other Tools from clj-kondo MCP Server

Related Tools

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