Starts an MCP server that exposes putior functions as tools for AI assistants. This enables AI coding assistants (Claude Code, Claude Desktop) to directly call workflow annotation and diagram generation functions.
Usage
putior_mcp_server(type = c("stdio", "http"), host = "127.0.0.1", port = 8080L)Details
The MCP server exposes the following putior functions as tools:
put- Scan files for PUT annotationsput_diagram- Generate Mermaid diagramsput_auto- Auto-detect workflow from codeput_generate- Generate annotation suggestionsput_merge- Merge manual + auto annotationsget_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_skills- AI assistant documentationputior_help- Quick reference helpset_putior_log_level- Configure loggingis_valid_put_annotation- Validate annotation syntaxsplit_file_list- Parse file listsext_to_language- Extension to language name
Configuration
Claude Code (WSL/Linux/macOS):
claude mcp add putior -- Rscript -e "putior::putior_mcp_server()"
Claude Desktop (Windows):
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"putior": {
"command": "Rscript",
"args": ["-e", "putior::putior_mcp_server()"]
}
}
}
See also
putior_mcp_tools for accessing the tool definitions