Skip to main content
Glama
nREPL MCP Server

nREPL MCP Server

by JohanCodinha

nREPL MCP 서버

Claude Desktop 이나 VSCode의 CLine 과 같은 MCP 클라이언트용으로 설계된 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버는 CLine과 함께 사용하면 모든 LLM과 함께 사용할 수 있습니다. 이 서버는 실행 중인 Clojure nREPL 인스턴스 와 상호 작용하여 MCP를 통해 Clojure 코드 평가, 네임스페이스 검사 및 기타 유틸리티를 수행할 수 있도록 합니다.


특징

  • 호스트와 포트를 지정하여 실행 중인 nREPL 서버에 연결합니다 .

  • 주어진 네임스페이스나 현재 네임스페이스에서 Clojure 코드를 평가합니다 .

  • tools.namespace 사용하여 프로젝트 네임스페이스를 나열합니다 .

  • 호스트, 포트, 세션 세부 정보를 포함한 nREPL 연결 상태를 검색합니다 .

  • 모든 Clojure 네임스페이스의 공개 변수를 검사하여 docstring 및 값과 같은 메타데이터를 표시합니다.


Related MCP server: Claude Code Manager WAN

설치 및 설정

CLine(VSCode) 또는 Claude Desktop에 설치

이 서버를 CLine 또는 Claude Desktop 과 함께 사용하려면 다음 단계를 따르세요.

  1. VSCode나 Claude Desktop 에서 CLine을 엽니다.

  2. MCP 설정 으로 이동합니다.

  3. 다음 구성으로 새로운 MCP 서버를 추가합니다.

    지엑스피1

  4. 변경 사항을 적용하려면 클라이언트를 저장하고 다시 시작하세요.

이를 통해 클라이언트는 표준 입출력을 통해 nREPL MCP 서버와 통신할 수 있습니다.

npx 를 통해 설치

저장소를 복제하지 않고 서버를 빠르게 실행하려면:

npx nrepl-mcp-server

수동 설치

  1. 저장소를 복제합니다

  2. 종속성 설치

    npm install
  3. 프로젝트 빌드 (TypeScript를 JavaScript로 변환)

    npm run build
  4. 서버를 실행하세요

    • 프로덕션 모드 : 컴파일된 출력에서 실행됩니다.

      npm start
    • 개발 모드 : 실시간 변경 사항에 ts-node를 사용합니다.

      npm run dev

이렇게 하면 서버가 시작되고 STDIO 에서 MCP 요청을 수신합니다. MCP 클라이언트가 서버를 자동으로 시작합니다.


행위

nREPL에 연결

호스트 와 포트를 지정하여 nREPL 서버에 대한 연결을 설정할 수 있습니다.

Clojure 코드 평가

기본 네임스페이스 나 지정된 네임스페이스 에서 임의의 Clojure 표현식을 실행합니다.

네임스페이스 정보 검색

tools.namespace 사용하여 현재 프로젝트 디렉토리에 있는 모든 네임스페이스를 나열합니다.

공공 변수 검사

지정된 네임스페이스의 모든 공개 변수 에 대한 메타데이터와 현재 값을 가져옵니다.

nREPL 연결 상태 가져오기

호스트, 포트, 세션 ID, 마지막 오류(있는 경우)를 포함하여 현재 nREPL 연결에 대한 세부 정보를 제공합니다.


자원

nrepl://status

다음을 포함하여 현재 nREPL 연결에 대한 정보를 제공합니다.

  • 호스트 및 포트

  • 연결 상태

  • 활성 세션 ID

nrepl://namespaces

프로젝트 디렉토리에서 감지된 모든 네임스페이스를 나열합니다.


기여하다

기여를 환영합니다! 기능 제안이나 버그 리포트가 있으시면 이슈를 개설하거나 풀 리퀘스트를 보내주세요.

특허

이 프로젝트는 MIT 라이선스 에 따라 라이선스가 부여됩니다. 해당 조건에 따라 자유롭게 수정하고 배포할 수 있습니다.

Available Tools

3 tools
connectB

Connect to an nREPL server. Example: (connect {:host "localhost" :port 1234})

Inputs: host (required), port (required).

eval_formA

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"}

Inputs: code (required), ns.

get_ns_varsB

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

Inputs: ns (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: connect establishes a connection, eval_form evaluates code, and get_ns_vars inspects namespace variables. There is no overlap or ambiguity between these three functions.

    Naming Consistency4/5

    The naming follows a consistent snake_case pattern (connect, eval_form, get_ns_vars), with all tools using descriptive verb-noun combinations. The minor deviation is that 'connect' is a single verb while others are compound, but this is reasonable given its action.

    Tool Count3/5

    With only 3 tools, the set feels thin for an nREPL server, which typically involves more operations like disconnecting, listing sessions, or handling side effects. However, it covers basic connectivity, evaluation, and inspection, which are core functions.

    Completeness2/5

    The tool surface has significant gaps for an nREPL server: there is no way to disconnect or manage sessions, handle errors or interrupts, load files, or perform other common REPL operations. This limits agents to basic tasks and may cause failures in more complex workflows.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables ISLI agents and MCP clients to dispatch natural-language coding and terminal tasks to a locally-installed Claude Code CLI, supporting both one-shot execution and persistent sessions with workspace and security controls.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Delegates coding tasks to the local Claude Code CLI via MCP, offering run, review, and status tools for MCP-compatible agents.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables voice assistants to start, monitor, message, and approve local Claude Code sessions on your computer, including sessions already open in a terminal. It exposes session management, recaps, approvals, and history search as MCP tools.
      8
      GPL 3.0