MCP HubMCP Hub
스킬 목록으로 돌아가기

configure-putior-mcp

pjt222
업데이트됨 5 days ago
32 조회
17
2
17
GitHub에서 보기
디자인aimcpautomationdesign

정보

이 스킬은 AI 어시스턴트(예: Claude)에게 16개의 워크플로우 시각화 도구를 제공하도록 putior MCP 서버를 구성합니다. Claude Code/Desktop 설정을 처리하고, 종속성을 설치하며, 선택적으로 에이전트 간 통신을 위한 ACP를 구성합니다. AI 어시스턴트가 워크플로우를 대화형으로 시각화하도록 설정하거나, putior MCP 통합이 포함된 새로운 개발 환경을 구축할 때 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/configure-putior-mcp

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

設 putior MCP 伺

設 putior MCP 伺使 AI 助手(Claude Code、Claude Desktop)直呼流註與圖生具。

用時

  • 啟 AI 助手互動註與視流
  • 新開發境設附 putior MCP 合
  • 裝 putior 後欲 AI 助流書
  • 經 ACP 設使者間通為自管

  • :putior 已裝(見 install-putior
  • :目客:Claude Code、Claude Desktop、或二
  • 可選:是否亦設 ACP 伺(默:否)
  • 可選:ACP 伺之自主/埠(默:localhost:8080)

第一步:裝 MCP 依

裝 MCP 伺功需包。

# Required: MCP framework
remotes::install_github("posit-dev/mcptools")

# Required: Tool definition framework
install.packages("ellmer")

# Verify both load
library(mcptools)
library(ellmer)

得: 二包皆裝且載無誤。

敗則: mcptoolsremotes。先裝之:install.packages("remotes")。若 GitHub 率限,於 ~/.RenvironGITHUB_PAT(加 GITHUB_PAT=your_token_here 而重啟 R)。貼符於殼令或提於版控。

第二步:設 Claude Code(WSL/Linux/macOS)

加 putior MCP 伺於 Claude Code 之設。

# One-line setup
claude mcp add putior -- Rscript -e "putior::putior_mcp_server()"

WSL 用 Windows R:

claude mcp add putior -- "/mnt/c/Program Files/R/R-4.5.2/bin/Rscript.exe" -e "putior::putior_mcp_server()"

驗設:

claude mcp list
claude mcp get putior

得: putior 現於 MCP 伺列附「configured」態。

敗則: 若 Claude Code 不於 PATH,加之:export PATH="$HOME/.claude/local/node_modules/.bin:$PATH"。若 Rscript 徑誤,以 which Rscriptls "/mnt/c/Program Files/R/" 尋 R。

第三步:設 Claude Desktop(Windows)

加 putior 於 Claude Desktop 之 MCP 設檔。

%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "putior": {
      "command": "C:\\PROGRA~1\\R\\R-45~1.0\\bin\\x64\\Rscript.exe",
      "args": ["-e", "putior::putior_mcp_server()"]
    }
  }
}

或全徑:

{
  "mcpServers": {
    "putior": {
      "command": "C:\\Program Files\\R\\R-4.5.2\\bin\\x64\\Rscript.exe",
      "args": ["-e", "putior::putior_mcp_server()"]
    }
  }
}

編後重啟 Claude Desktop。

得: Claude Desktop 之 MCP 伺列示 putior。具於談中可用。

敗則: 以 JSON lint 驗法。察 R 徑存。若空格致問,用 8.3 短名(PROGRA~1R-45~1.0)。

第四步:驗十六具

試諸 MCP 具可訪且可行。

# Get tool definitions
tools <- putior::putior_mcp_tools()
cat(sprintf("Total tools: %d\n", length(tools)))

# List tool names
vapply(tools, function(t) t$name, character(1))

十六具依類:

核心流(五):

  • put — 掃檔尋 PUT 註(支 exclude 參之正則濾)
  • put_diagram — 生 Mermaid 圖
  • put_auto — 自碼察流(支 exclude
  • put_generate — 生註議(支 exclude
  • put_merge — 合手與自註(支 exclude

參/發現(七):

  • get_comment_prefix — 得擴之注前綴
  • get_supported_extensions — 列支擴
  • list_supported_languages — 列支語
  • get_detection_patterns — 得自察式
  • get_diagram_themes — 列可用主
  • putior_guide — AI 助文書
  • putior_help — 速參助

用(三):

  • is_valid_put_annotation — 驗註法
  • split_file_list — 析檔列
  • ext_to_language — 擴轉語名

設(一):

  • set_putior_log_level — 設誌之詳

要:自定調不可經 MCP。put_diagrampalette 參受 put_theme() 所建 putior_theme R 物。MCP 經 JSON 通,R 物如 putior_theme 不可越 MCP 界序。經 MCP 呼 put_diagram 時,用字之 theme 參代(如 theme = "viridis")。自調用,直於 R 話呼 put_theme()put_diagram(palette = ...)

於 Claude Code 試核心具:

Use the putior_help tool to see available commands
Use the put tool to scan ./R/ for annotations
Use the put_diagram tool to generate a diagram

得: 諸十六具已列。核心具以有效入返期果。

敗則: 若具缺,察 putior 版為現:packageVersion("putior")。舊版或少具。以 remotes::install_github("pjt222/putior") 更。

第五步:設 ACP 伺(選)

設 ACP(Agent Communication Protocol)伺為使者間通。

# Install ACP dependency
install.packages("plumber2")

# Start ACP server (blocks — run in a separate R session or background)
putior::putior_acp_server()

# Custom host/port
putior::putior_acp_server(host = "0.0.0.0", port = 9000)

試 ACP 端:

# Discover agent
curl http://localhost:8080/agents

# Execute a scan
curl -X POST http://localhost:8080/runs \
  -H "Content-Type: application/json" \
  -d '{"input": [{"role": "user", "parts": [{"content": "scan ./R/"}]}]}'

# Generate diagram
curl -X POST http://localhost:8080/runs \
  -H "Content-Type: application/json" \
  -d '{"input": [{"role": "user", "parts": [{"content": "generate diagram for ./R/"}]}]}'

得: ACP 伺於設埠啟。/agents 返 putior 使者冊。/runs 受自然語請而返流果。

敗則: 若 8080 已用,定他埠。若 plumber2 未裝,伺函印助訊議裝。

  • putior::putior_mcp_tools() 露核心具(putput_diagramput_autoput_generateput_merge)且於當版返約十六具
  • Claude Code:claude mcp listputior 已設
  • Claude Code:putior_help 具呼時返助文
  • Claude Desktop:重啟後 putior 現於 MCP 伺列
  • 核心具(putput_diagramput_auto)行無誤
  • [ ](選)ACP 伺應 curl http://localhost:8080/agents

  • mcptools 未裝:MCP 伺需 mcptools(自 GitHub)與 ellmer(自 CRAN)。二皆須裝。putior 察而若缺供助訊。
  • Claude Desktop 中 R 徑誤:Windows 徑於 JSON 需逸(\\)。用 8.3 短名免空格:C:\\PROGRA~1\\R\\R-45~1.0\\bin\\x64\\Rscript.exe
  • 忘重啟:Claude Desktop 編設後必重啟。Claude Code 於下話始取變。
  • renv 孤:若 putior 裝於 renv 庫而 Claude Code/Desktop 啟 R 無 renv,包不得。確 mcptoolsellmer 裝於全庫或於 MCP 伺令中設 renv 啟。
  • ACP 之埠衝:默 ACP 埠(8080)常用。啟前以 lsof -i :8080netstat -tlnp | grep 8080 察。
  • 只含特具:露子集之具,建自 MCP 伺包時用 putior_mcp_tools(include = c("put", "put_diagram"))
  • 自定調經 MCPput_diagrampalette 參需 putior_theme R 物(put_theme() 所建),不可經 MCP JSON 界序。MCP 呼用內建 theme 字參。自定調直於 R 用。

  • install-putior — 前提:putior 與選依必裝
  • configure-mcp-server — Claude Code/Desktop 之通 MCP 伺設
  • troubleshoot-mcp-connection — 診連問若具不現
  • build-custom-mcp-server — 建包 putior 具之自 MCP 伺
  • analyze-codebase-workflow — 互用 MCP 具為碼析

GitHub 저장소

pjt222/agent-almanac
경로: i18n/wenyan/skills/configure-putior-mcp
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

executing-plans

디자인

executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.

스킬 보기

requesting-code-review

디자인

이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.

스킬 보기

connect-mcp-server

디자인

이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.

스킬 보기

web-cli-teleport

디자인

이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.

스킬 보기