The RuboCop MCP server has solid naming conventions and complete input schemas for all 6 tools. Tool names follow verb_noun patterns (rubocop_lint, rubocop_list_cops, etc.), which is commendable. Descriptions are present for all tools and are moderately detailed (ranging from ~150-200 chars). However, there are notable gaps: (1) most tool descriptions lack clarity on when to use each tool vs others (e.g., distinction between rubocop_list_cops and rubocop_show_cop is unclear), (2) several parameters lack detailed constraints or ranges (e.g., rubocop_lint 'only' and 'except' parameters accept free-form strings with no enum validation despite accepting specific cop names), (3) output schemas are not documented, handlers return generic text responses without structured schemas, (4) error handling is generic with no recovery guidance, and (5) the rubocop_set_auto_lint and rubocop_get_auto_lint_status tools manipulate internal state without clear operational guarantees. Per-tool analysis reveals input schemas are fully defined with proper types and descriptions, but output format documentation is missing entirely.
Generate a .rubocop_todo.yml file with all current offenses disabled. Useful for gradually adopting RuboCop in existing projects.
Get the current auto-lint status and configuration.
Run RuboCop (with Rails cops) on Ruby files to check for style violations and potential issues. Returns detailed information about each offense including severity, location, and whether it's auto-correctable.
List RuboCop cops by department. Without department parameter, returns a summary of all departments. With department parameter (e.g., 'Style', 'Lint'), returns cops for that specific department with pagination support.
Enable or disable automatic linting mode. When enabled, the AI assistant will be reminded to run RuboCop after generating or modifying Ruby files.
Show detailed information about a specific RuboCop cop, including its description, default configuration, and examples.
Output schemas not documented. All tools return generic text responses via CallToolResult with type 'text', but the expected response structure, fields, and format are nowhere specified. LLMs cannot reliably extract structured data or plan downstream operations.
Free-form string parameters 'only' and 'except' in rubocop_lint lack validation guidance. These accept cop names like 'Style', 'Lint', 'Rails/ActiveRecordAliases', but no enum or pattern constraints are documented. LLMs cannot know valid cop names without calling rubocop_list_cops first.
rubocop_list_cops and rubocop_show_cop have overlapping purposes with no clear distinction. Description does not explain when to use rubocop_show_cop (detailed info on ONE cop) vs rubocop_list_cops with department filter. LLMs may conflate them.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 46 | - | v1 |
rubocop_set_auto_lint and rubocop_get_auto_lint_status manipulate mutable agent state (autoLintConfig) without clear semantics. No documentation of: (a) whether state persists across sessions, (b) how this state interacts with per-call auto_correct parameter in rubocop_lint, (c) whether this is appropriate for stateless MCP protocol design.
Error handling is generic. Tool handlers catch errors and wrap them in generic text responses with no recovery guidance. E.g., if RuboCop crashes or rubocop gem is not installed, LLM gets a raw error message with no hint to retry, check environment, or call a setup tool.
Parameter 'path' in rubocop_lint and rubocop_auto_gen_config lacks validation description. No mention of: must it exist? Can it be relative or absolute? Can it be a file or directory? What happens if path is invalid?
rubocop_get_auto_lint_status description is minimal (50 chars, 'Get the current auto-lint status and configuration.') with no guidance on when to call it or what info it provides.