Skip to content

feat(init): generated MCP entry opts into the slim tools/list (#13050) - #13604

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-t17fck
Nov 8, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-t17fck

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Governing issue or accepted claim: #13050
Acceptance delta (one sentence): The .mcp.json / .cursor/mcp.json entry that ripr init --mcp writes now sets RIPR_MCP_TOOLS_LIST=slim, so an agent's session start pays about 19 KB of tools/list instead of 48 KB.

What changed

  • ripr_mcp_server_entry (cli/commands/init.rs) adds "env": {"RIPR_MCP_TOOLS_LIST": "slim"}; the existing create/keep/force tests compare against the updated entry. An existing user entry is still left alone without --force.
  • docs/AGENT_QUICKSTART.md shows the same entry and says how to remove the line.
  • Changelog fragment.

Proof

Measured on current main over stdio: tools/list response is 47,748 B default and 18,932 B with the env var. ripr init --mcp --dry-run prints the new entry. cargo xtask precommit passes locally; the lib test target OOM-kills rustc in this container, so hosted CI is the proof for the init unit tests.

Not in this PR

Measuring unprompted-use rate per surface (the rest of #13050) needs the cohort harness and stays open.


Generated by Claude Code


Devin Review

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: a59c4213-44ec-4cac-b425-f48fd22085e3
Commits

Reviewing files that changed from the base of the PR and between 0c2d378 and 7d0b474.

Files selected for processing: 4

  • changelog.d/13050-init-mcp-slim-tools-list.md
  • crates/ripr/src/cli/commands/init.rs
  • docs/AGENT_QUICKSTART.md
  • docs/specs/RIPR-SPEC-0007-repository-configuration.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the 'ripr init --mcp' command to include '"env": {"RIPR_MCP_TOOLS_LIST": "slim"}' in the generated MCP server entry. This reduces the size of the 'tools/list' response by approximately 31 KB by omitting 'outputSchema' documents that coding agents do not read, while keeping results unchanged. The changes are reflected in the CLI command implementation, unit tests, documentation, and changelog. I have no feedback to provide.

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 1 potential issue.

Devin Review

Comment thread crates/ripr/src/cli/commands/init.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Independent fresh-context read of the diff found no blocking issues: one generator feeds both .mcp.json and the Cursor file, existing entries are untouched without --force, doctor ignores env, and the env name and value match what protocol.rs parses. Its one doc nit (the saving figure) is fixed in this head. Hosted init unit tests are not yet run for this head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Current-head review (aa73760): a small generator change with its tests, quickstart and changelog updated together; measured saving 47,748 B to 18,932 B over stdio. Merge is conditional on green hosted checks for this exact head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven self-assigned this Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 7d0b47455e67 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=0c2d3789001b9ad96242fa913c91f52b8e71aa58 findings=1 gaps=1 reachable_unrevealed=1
reachable_unrevealed|crates/ripr/src/cli/commands/init.rs:374|serde_json::json!({ "command": "ripr", "args": ["mcp", "--stdio"], "env": { "RIP…|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t1|id=probe:crates_ripr_src_cli_commands_init.rs:return_value:e6525dc6
t1=crates/ripr/src/cli/commands/init.rs:1919 action_labels_are_padded_to_a_common_width unknown miss=assertion_admission_unproven
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base 0c2d3789001b9ad96242fa913c91f52b8e71aa58 --committed --mode draft --format agent probe:crates_ripr_src_cli_commands_init.rs:return_value:e6525dc6

Took 37s.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Head 7d0b474 adds only the spec section the inline review asked for on top of the independently reviewed generator change; traceability and spec-format checks pass locally. Hosted init unit tests are not yet run for this head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Current-head review (7d0b474): generator, tests, quickstart, spec and changelog agree; the one review thread is answered and resolved. Merge is conditional on green hosted checks for this exact head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 5bf9e34 into main Nov 8, 2026
78 of 79 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-t17fck branch November 8, 2026 16:04
EffortlessSteven pushed a commit that referenced this pull request Nov 8, 2026
Picks up the regenerated docs/CLI_REFERENCE.md (#13604) that the
cli_reference_doc test needs after #13685/#13731.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUGWB1o9vpixujro7H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants