nREPL MCP Server
Skills
connect
Connect to an nREPL server. Example: (connect {:host "localhost" :port 1234})
eval_form
Evaluate Clojure code in a specific namespace or the current one. Examples: - Define and call a function: {"code": "(defn greet [name] (str \"Hello, \" name \"!\"))(greet \"World\"))"} - Reload code: {"code": "(clj-reload.core/reload)"} - Evaluate in a specific namespace: {"code": "(clojure.repl.deps/sync-deps)", "ns": "user"}
get_ns_vars
Get all public vars (functions, values) in a namespace with their metadata and current values. Example: - List main namespace vars: (get_ns_vars {:ns "main"}) Returns a map where keys are var names and values contain: - :meta - Metadata including :doc string, :line number, :file path - :value - Current value of the var