
hugoduncan/mcp-clj
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
hugoduncan/mcp-clj는 MCP 서버 후보가 https://github.com/hugoduncan/mcp-clj.에서 수입됩니다
개요
hugoduncan/mcp-clj는 MCP 서버 후보가 https://github.com/hugoduncan/mcp-clj.에서 수입됩니다
개요(AI 번역)
모델 Context Protocol (MCP)의 Clojure 구현은 최소한의 의존성 및 자체 유지 Clojure REPL 통합.
빠른 시작
Jump to: 설치 • 클라이언트 사용 • Claude Code Setup • Claude Desktop Setup • 개발
무엇 & 왜
mcp-clj는 MCP 서버 및 client Clojure의 구현을 제공합니다.
- 자체 포함 REPL: 서버 프로세스에서 Clojure를 직접 구합니다 (nREPL 의존성 없음)
- ** 낮은 의존성 **: 만
org.clojure/data.json를 요구합니다 - **Multiple 수송 **: 테스트를 위한 SSE (HTTP), stdio 및 in-memory
-Built-in 도구: Clojure 평가 (
clj-eval) 및 파일 목록 (ls]) gitignore 지원 - MCP 클라이언트: Clojure에서 다른 MCP 서버에 연결
** mcp-clj를 사용할 때: **
- Claude 데스크톱 또는 기타 MCP 클라이언트에 Clojure REPL 기능을 노출
- MCP 서비스를 소비하는 Clojure 응용 프로그램을 구축
- 외부 REPL 의존도 없이 간단한 배포
무역 오프 대 clojure-mcp:
- ✅ Simpler 설정, 자체 유지 평가
- ❌ 기존 리모트 REPLs에 연결할 수 없습니다
- ❌ Fewer 내장 도구
설치
Git Dependencies (추천)
CLI 사용
서버 사용
기본 서버
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
mcp-clj
A Clojure implementation of the Model Context Protocol (MCP) with minimal dependencies and self-contained Clojure REPL integration.
Quick Start
# Add to deps.edn
{:deps {org.hugoduncan/mcp-clj
{:git/url "https://github.com/hugoduncan/mcp-clj"
:git/sha "latest-commit-sha"
:deps/root "projects/server"}}}
;; Start MCP server
(require 'mcp-clj.mcp-server.core)
(def server (mcp-clj.mcp-server.core/create-server {:transport {:type :stdio}}))
;; Server exposes tools like clj-eval and ls
;; Connect with Claude Desktop via stdio transport (see Claude Desktop Setup)
Jump to: Installation • Client Usage • Claude Code Setup • Claude Desktop Setup • Development
What & Why
mcp-clj provides both MCP server and client implementations in Clojure:
- Self-contained REPL: Evaluates Clojure directly in the server process (no nREPL dependency)
- Low dependencies: Only requires
org.clojure/data.json - Multiple transports: SSE (HTTP), stdio, and in-memory for testing
- Built-in tools: Clojure evaluation (
clj-eval) and file listing (ls) with gitignore support - MCP client: Connect to other MCP servers from Clojure
When to use mcp-clj:
- Expose Clojure REPL functionality to Claude Desktop or other MCP clients
- Build Clojure applications that consume MCP services
- Simple deployment without external REPL dependencies
Trade-offs vs clojure-mcp:
- ✅ Simpler setup, self-contained evaluation
- ❌ Cannot connect to existing remote REPLs
- ❌ Fewer built-in tools
Installation
Git Dependencies (Recommended)
;; deps.edn
{:deps {org.hugoduncan/mcp-clj
{:git/url "https://github.com/hugoduncan/mcp-clj"
:git/sha "latest-commit-sha" ; Replace with actual latest SHA
:deps/root "projects/server"}}}
CLI Usage
# Clone and run directly
git clone https://github.com/hugoduncan/mcp-clj
cd mcp-clj
# Start stdio server (recommended for Claude Desktop)
clj -M:stdio-server
# Start SSE server (HTTP) on port 3001 (default)
clj -M:sse-server
# Start SSE server on custom port
clj -M:sse-server --port 8080
Server Usage
Basic Server
(require 'mcp-clj.mcp-server.core)
;; Stdio server (recommended for Claude Desktop)
(def server (mcp-clj.mcp-server.core/create-server
{:transport {:type :stdio}}))
;; SSE server (for HTTP-based clients)
(def server (mcp-clj.mcp-server.core/create-server
{:transport {:type :sse :port 3001}}))
;; Stop server
((:stop server))
Custom Tools
(def echo-tool
{:name "echo"
:description "Echo the input text"
:inputSchema {:type "object"
:properties {"text" {:type "string"}}
:required ["text"]}
:implementation (fn [{:keys [text]}]
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"mcp-clj": {
"command": "/opt/homebrew/bin/bash",
"args": [
"-c",
"cd /path/to/your/project && clojure -M:mcp"
],
"env": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"
}
}
}
}