configure-putior-mcp
Acerca de
Esta habilidad configura el servidor MCP de putior para exponer 16 herramientas de visualización de flujos de trabajo a asistentes de IA como Claude. Cubre la configuración para Claude Code y Claude Desktop, incluyendo la instalación de dependencias y la verificación de herramientas. Úsela cuando habilite asistentes de IA para anotar y visualizar flujos de trabajo de manera interactiva, o cuando integre putior MCP en un nuevo entorno de desarrollo.
Instalación rápida
Claude Code
Recomendadonpx 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-mcpCopia y pega este comando en Claude Code para instalar esta habilidad
Documentación
Configure putior MCP Server
Set up putior MCP server → AI assistants (Claude Code, Claude Desktop) can directly call workflow annotation + diagram gen tools.
Use When
- Enable AI assistants to interactively annotate + visualize workflows
- Set up new dev env w/ putior MCP integration
- Post-install putior → want AI-assisted workflow docs
- Configure agent-to-agent comm via ACP for automated pipelines
In
- Required: putior installed (see
install-putior) - Required: Target client: Claude Code, Claude Desktop, or both
- Optional: Configure ACP server too (default: no)
- Optional: Custom host/port for ACP server (default: localhost:8080)
Do
Step 1: Install MCP Dependencies
Install req'd pkgs 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)
→ Both pkgs install + load w/o errs.
If err: mcptools requires remotes pkg. 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 cmds or commit to version control.
Step 2: Configure Claude Code (WSL/Linux/macOS)
Add putior MCP server to Claude Code's config.
# One-line setup
claude mcp add putior -- Rscript -e "putior::putior_mcp_server()"
For WSL w/ Windows R:
claude mcp add putior -- "/mnt/c/Program Files/R/R-4.5.2/bin/Rscript.exe" -e "putior::putior_mcp_server()"
Verify config:
claude mcp list
claude mcp get putior
→ putior appears in MCP server list w/ status "configured".
If err: Claude Code not in PATH → add: export PATH="$HOME/.claude/local/node_modules/.bin:$PATH". Rscript path wrong → locate R w/ which Rscript or ls "/mnt/c/Program Files/R/".
Step 3: Configure Claude Desktop (Windows)
Add putior to Claude Desktop's MCP config 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 w/ 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 post-edit.
→ Claude Desktop shows putior in MCP server list. Tools become avail in conversation.
If err: Valid. JSON syntax w/ 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 (supportsexcludeparam for regex-based file filtering)put_diagram— Generate Mermaid diagramsput_auto— Auto-detect workflow from code (supportsexcludeparam)put_generate— Gen annotation suggestions (supportsexcludeparam)put_merge— Merge manual + auto annotations (supportsexcludeparam)
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 docsputior_help— Quick reference help
Utilities (3):
is_valid_put_annotation— Valid. 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 can't be used through MCP.
paletteparam onput_diagramacceptsputior_themeR object created byput_theme(). MCP comms via JSON → R objects likeputior_themecan't be serialized across MCP boundary. Callingput_diagramthrough MCP → use string-basedthemeparam (e.g.,theme = "viridis") instead. Custom palettes → callput_theme()+put_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
→ All 16 tools listed. Core tools return expected results when called w/ valid in.
If err: Tools missing → check putior ver current: packageVersion("putior"). Older vers may have fewer tools. Update w/ remotes::install_github("pjt222/putior").
Step 5: Configure ACP Server (Optional)
Set up ACP (Agent Comm Protocol) server for agent-to-agent comm.
# 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/"}]}]}'
→ ACP server starts on config'd port. /agents returns putior agent manifest. /runs accepts natural language reqs + returns workflow results.
If err: Port 8080 in use → specify diff port. plumber2 not installed → server fn will print helpful err msg suggesting install.
Check
-
putior::putior_mcp_tools()exposes core tools (put,put_diagram,put_auto,put_generate,put_merge) + returns ~16 tools for current ver - Claude Code:
claude mcp listshowsputiorconfigured - Claude Code:
putior_helptool returns help text when invoked - Claude Desktop: putior appears in MCP server list post-restart
- Core tools (
put,put_diagram,put_auto) execute w/o errs - (Optional) ACP server responds to
curl http://localhost:8080/agents
Traps
- mcptools not installed: MCP server requires
mcptools(from GitHub) +ellmer(from CRAN). Both must be installed. putior checks + provides helpful msgs 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. - Forget to restart: Claude Desktop must be restarted post-config edit. Claude Code picks up changes on next session start.
- renv isolation: putior installed in renv library but Claude Code/Desktop launches R w/o renv → pkgs not found. Ensure
mcptools+ellmerinstalled in global library or configure renv activation in MCP server cmd. - Port conflicts for ACP: Default ACP port (8080) commonly used. Check w/
lsof -i :8080ornetstat -tlnp | grep 8080before starting. - Include only specific tools: Expose subset of tools → use
putior_mcp_tools(include = c("put", "put_diagram"))when building custom MCP server wrappers. - Custom palettes via MCP:
paletteparam onput_diagramrequiresputior_themeR object (created byput_theme()), can't be serialized through MCP's JSON interface. Use built-inthemeparam string for MCP calls. Custom palettes → use R directly.
→
install-putior— prerequisite: putior + optional deps must be installedconfigure-mcp-server— general MCP server config for Claude Code/Desktoptroubleshoot-mcp-connection— diagnose connection issues if tools don't appearbuild-custom-mcp-server— build custom MCP servers wrapping putior toolsanalyze-codebase-workflow— use MCP tools interactively for codebase analysis
Repositorio GitHub
Frequently asked questions
What is the configure-putior-mcp skill?
configure-putior-mcp is a Claude Skill by pjt222. Skills package instructions and resources that Claude loads on demand, so Claude can perform configure-putior-mcp-related tasks without extra prompting.
How do I install configure-putior-mcp?
Use the install commands on this page: add configure-putior-mcp to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does configure-putior-mcp belong to?
configure-putior-mcp is in the Design category, tagged ai, mcp, automation and design.
Is configure-putior-mcp free to use?
Yes. configure-putior-mcp is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
Habilidades relacionadas
Utilice la habilidad executing-plans cuando tenga un plan de implementación completo para ejecutar en lotes controlados con puntos de revisión. Esta habilidad carga y revisa críticamente el plan, luego ejecuta tareas en pequeños lotes (por defecto 3 tareas) mientras reporta el progreso entre cada lote para la revisión del arquitecto. Esto asegura una implementación sistemática con puntos de control de calidad integrados.
Esta habilidad despacha un subagente revisor de código para analizar los cambios en el código frente a los requisitos antes de proceder. Debe usarse después de completar tareas, implementar funciones principales o antes de fusionar con la rama principal. La revisión ayuda a detectar problemas de forma temprana al comparar la implementación actual con el plan original.
Esta habilidad proporciona una guía integral para que los desarrolladores conecten servidores MCP a Claude Code mediante transportes HTTP, stdio o SSE. Cubre la instalación, configuración, autenticación y seguridad para integrar servicios externos como GitHub, Notion y APIs personalizadas. Úsala al configurar integraciones MCP, al configurar herramientas externas o al trabajar con el Protocolo de Contexto del Modelo de Claude.
Esta habilidad ayuda a los desarrolladores a elegir entre las interfaces web y CLI de Claude Code mediante el análisis de tareas, y luego permite la teletransportación fluida de sesiones entre estos entornos. Optimiza el flujo de trabajo gestionando el estado y el contexto de la sesión al cambiar entre web, CLI o móvil. Úsala para proyectos complejos que requieren diferentes herramientas en varias etapas.
