configure-putior-mcp
정보
이 스킬은 AI 어시스턴트(Claude 등)가 16가지 워크플로우 시각화 도구를 사용할 수 있도록 putior MCP 서버를 구성합니다. Claude Code/Desktop 설정, 의존성 설치, 그리고 선택적으로 에이전트 간 통신을 위한 ACP 구성까지 포함합니다. 새로운 개발 환경에 인터랙티브 워크플로우 시각화를 통합하거나 자동화된 파이프라인을 활성화할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/configure-putior-mcpClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Configure putior MCP Server
Set up putior MCP server so AI assistants (Claude Code, Claude Desktop) can directly call workflow annotation, diagram generation tools.
When Use
- Enable AI assistants to interactively annotate, visualize workflows
- Set up new dev environment with putior MCP integration
- After install putior and want AI-assisted workflow documentation
- Configure agent-to-agent communication via ACP for automated pipelines
Inputs
- Required: putior installed (see
install-putior) - Required: Target client: Claude Code, Claude Desktop, or both
- Optional: Whether to also configure ACP server (default: no)
- Optional: Custom host/port for ACP server (default: localhost:8080)
Steps
Step 1: Install MCP Dependencies
Install required packages for MCP server functionality.
# Required: MCP framework
remotes::install_github("posit-dev/mcptools")
# Required: Tool definition framework
install.packages("ellmer")
# Verify both load
library(mcptools)
library(ellmer)
Got: Both packages install, load without errors.
If fail: mcptools requires remotes package. Install first: install.packages("remotes"). GitHub rate-limits? Configure GITHUB_PAT in ~/.Renviron (add line GITHUB_PAT=your_token_here, restart R). Do not paste tokens into shell commands or commit them to version control.
Step 2: Configure Claude Code (WSL/Linux/macOS)
Add putior MCP server to Claude Code configuration.
# One-line setup
claude mcp add putior -- Rscript -e "putior::putior_mcp_server()"
For WSL with Windows R:
claude mcp add putior -- "/mnt/c/Program Files/R/R-4.5.2/bin/Rscript.exe" -e "putior::putior_mcp_server()"
Verify configuration:
claude mcp list
claude mcp get putior
Got: putior appears in MCP server list with status "configured".
If fail: Claude Code not in PATH? Add: export PATH="$HOME/.claude/local/node_modules/.bin:$PATH". Rscript path wrong? Locate R with which Rscript or ls "/mnt/c/Program Files/R/".
Step 3: Configure Claude Desktop (Windows)
Add putior to Claude Desktop MCP configuration file.
Edit %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()"]
}
}
}
Or with full path:
{
"mcpServers": {
"putior": {
"command": "C:\\Program Files\\R\\R-4.5.2\\bin\\x64\\Rscript.exe",
"args": ["-e", "putior::putior_mcp_server()"]
}
}
}
Restart Claude Desktop after editing configuration.
Got: Claude Desktop shows putior in its MCP server list. Tools become available in conversation.
If fail: Validate JSON syntax with JSON linter. Check R path exists. Use 8.3 short names (PROGRA~1, R-45~1.0) if spaces in paths cause issues.
Step 4: Verify All 16 Tools
Test all MCP tools accessible, functional.
# 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))
16 tools organized by category:
Core Workflow (5):
put— Scan files for PUT annotations (supportsexcludeparameter for regex-based file filtering)put_diagram— Generate Mermaid diagramsput_auto— Auto-detect workflow from code (supportsexcludeparameter)put_generate— Generate annotation suggestions (supportsexcludeparameter)put_merge— Merge manual + auto annotations (supportsexcludeparameter)
Reference/Discovery (7):
get_comment_prefix— Get comment prefix for extensionget_supported_extensions— List supported extensionslist_supported_languages— List supported languagesget_detection_patterns— Get auto-detection patternsget_diagram_themes— List available themesputior_guide— AI assistant documentationputior_help— Quick reference help
Utilities (3):
is_valid_put_annotation— Validate annotation syntaxsplit_file_list— Parse file listsext_to_language— Extension to language name
Configuration (1):
set_putior_log_level— Configure logging verbosity
Important: Custom palettes cannot be used through MCP. The
paletteparameter onput_diagramaccepts aputior_themeR object created byput_theme(). Because MCP communicates via JSON, R objects likeputior_themecannot be serialized across MCP boundary. When callingput_diagramthrough MCP, use string-basedthemeparameter (e.g.,theme = "viridis") instead. For custom palettes, callput_theme()andput_diagram(palette = ...)directly in R session.
Test core tools from 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
Got: All 16 tools listed. Core tools return expected results when called with valid inputs.
If fail: Tools missing? Check putior version current: packageVersion("putior"). Older versions may have fewer tools. Update with remotes::install_github("pjt222/putior").
Step 5: Configure ACP Server (Optional)
Set up ACP (Agent Communication Protocol) server for agent-to-agent communication.
# 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)
Test ACP endpoints:
# 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/"}]}]}'
Got: ACP server starts on configured port. /agents returns putior agent manifest. /runs accepts natural language requests, returns workflow results.
If fail: Port 8080 in use? Specify different port. plumber2 not installed? Server function prints helpful error message suggesting installation.
Checks
-
putior::putior_mcp_tools()exposes core tools (put,put_diagram,put_auto,put_generate,put_merge), returns ~16 tools for current version - Claude Code:
claude mcp listshowsputiorconfigured - Claude Code:
putior_helptool returns help text when invoked - Claude Desktop: putior appears in MCP server list after restart
- Core tools (
put,put_diagram,put_auto) execute without errors - (Optional) ACP server responds to
curl http://localhost:8080/agents
Pitfalls
- mcptools not installed: MCP server requires
mcptools(from GitHub) andellmer(from CRAN). Both must be installed. putior checks, provides helpful messages if missing. - Wrong R path in Claude Desktop: Windows paths need escaping in JSON (
\\). Use 8.3 short names to avoid spaces:C:\\PROGRA~1\\R\\R-45~1.0\\bin\\x64\\Rscript.exe. - Forgetting to restart: Claude Desktop must be restarted after editing config file. Claude Code picks up changes on next session start.
- renv isolation: putior installed in renv library but Claude Code/Desktop launches R without renv? Packages won't be found. Ensure
mcptoolsandellmerinstalled in global library or configure renv activation in MCP server command. - Port conflicts for ACP: Default ACP port (8080) commonly used. Check with
lsof -i :8080ornetstat -tlnp | grep 8080before starting. - Including only specific tools: To expose subset of tools, use
putior_mcp_tools(include = c("put", "put_diagram"))when building custom MCP server wrappers. - Custom palettes via MCP:
paletteparameter onput_diagramrequiresputior_themeR object (created byput_theme()), which cannot be serialized through MCP JSON interface. Use built-inthemeparameter string for MCP calls. For custom palettes, use R directly.
See Also
install-putior— prerequisite: putior and optional deps must be installedconfigure-mcp-server— general MCP server configuration for Claude Code/Desktoptroubleshoot-mcp-connection— diagnose connection issues if tools don't appearbuild-custom-mcp-server— build custom MCP servers that wrap putior toolsanalyze-codebase-workflow— use MCP tools interactively for codebase analysis
GitHub 저장소
연관 스킬
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 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
