Repository navigation
feat(init): generated MCP entry opts into the slim tools/list (#13050) - #13604
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU9dguevQJTDFt6nS3
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
There was a problem hiding this comment.
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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU9dguevQJTDFt6nS3
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
ripr static exposure checkCommit Took 37s. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLU9dguevQJTDFt6nS3
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
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
Requested by Steven Zimmerman · project thread
Governing issue or accepted claim: #13050
Acceptance delta (one sentence): The
.mcp.json/.cursor/mcp.jsonentry thatripr init --mcpwrites now setsRIPR_MCP_TOOLS_LIST=slim, so an agent's session start pays about 19 KB oftools/listinstead 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.mdshows the same entry and says how to remove the line.Proof
Measured on current main over stdio:
tools/listresponse is 47,748 B default and 18,932 B with the env var.ripr init --mcp --dry-runprints the new entry.cargo xtask precommitpasses 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