Skip to content

fix: migrate ruler [global] to [mcp] and disable aider mcp#158

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/ruler-toml-global-mcp
Jul 3, 2026
Merged

fix: migrate ruler [global] to [mcp] and disable aider mcp#158
shunkakinoki merged 1 commit into
mainfrom
fix/ruler-toml-global-mcp

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Problem

The dotfiles Upgrade workflow fails at ruler-apply-global (make upgrade-dev):

[ruler] Invalid configuration file format (Context: File: ~/.ruler/ruler.toml, Errors: global)
make[3]: *** [Makefile:337: ruler-apply-global] Error 1

@intellectronica/ruler 0.3.41 has no [global] table in its config schema. Valid top-level keys are default_agents, agents, mcp, gitignore, skills. The merge_strategy setting belongs under [mcp].

Fix

  1. Move merge_strategy = "merge" from [global] to [mcp].
  2. Disable aider MCP ([agents.aider.mcp] enabled = false). Once chore: cleanup turbo configuration and simplify scripts #1 lets the apply proceed, ruler crashes writing aider's MCP config: it writes .aider.conf.yml as YAML (the read: instructions list), then re-parses it as JSON and fails.

Verification

Ran the exact Makefile invocation locally:

bunx @intellectronica/ruler@latest apply --project-root "$HOME" --config "$HOME/.ruler/ruler.toml" --local-only

Result: Ruler apply completed successfully. (exit 0), all 18 agents apply cleanly.


Summary by cubic

Fixes the Upgrade workflow failure by aligning @intellectronica/ruler config with the 0.3.41 schema and disabling Aider MCP to prevent a parse crash. Ruler apply now completes successfully.

  • Bug Fixes
    • Moved merge_strategy = "merge" from [global] to [mcp] (per @intellectronica/ruler 0.3.41).
    • Disabled Aider MCP ([agents.aider.mcp] enabled = false) to avoid YAML→JSON reparse failure on .aider.conf.yml.

Written for commit 39583cd. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings July 2, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3eacf85b-47ea-4d39-b638-e31934f6e007

📥 Commits

Reviewing files that changed from the base of the PR and between c808586 and 39583cd.

📒 Files selected for processing (1)
  • .ruler/ruler.toml

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Disabled MCP support for the Aider agent to avoid configuration issues.
    • Clarified the configuration layout so the MCP section is easier to interpret.

Walkthrough

Modifies .ruler/ruler.toml to add an [agents.aider.mcp] block disabling MCP for the aider agent, and renames a section header/table declaration from global/# --- Global Configuration --- to mcp/# --- MCP Configuration ---.

Changes

Ruler TOML MCP Configuration

Layer / File(s) Summary
Disable MCP for aider and rename section
.ruler/ruler.toml
Adds [agents.aider.mcp] with enabled = false and renames the global section header to mcp.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Poem

A toggle flipped, a header renamed,
Small hops through config, nothing untamed.
Aider rests quiet, MCP set free,
One little rabbit, hopping with glee. 🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the config migration and aider MCP disablement.
Description check ✅ Passed The description matches the changeset and explains the config fix and its motivation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ruler-toml-global-mcp

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@shunkakinoki
shunkakinoki merged commit b89cb46 into main Jul 3, 2026
4 checks passed
@shunkakinoki
shunkakinoki deleted the fix/ruler-toml-global-mcp branch July 3, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants