Skip to content

MCP: read_files batch reads + search_code v2 - #84

Merged
ryuzdev merged 2 commits into
mainfrom
mcp-read-search
Oct 26, 2026
Merged

ryuzdev merged 2 commits into
mainfrom
mcp-read-search

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Oct 26, 2026

Copy link
Copy Markdown
Member

Owner-approved MCP v2, phase 2 (vault proposals §1.2–1.3).

  • read_files replaces read_file (clean cutover).
    • 1–20 {path, start_line?, end_line?, symbol?} per call; text numbered N│ line; the blob id per file for later per-file CAS.
    • Per-file errors come back inline; a ~200 KB budget comes back with truncated.
    • symbol returns one top-level declaration via oxc (already a dependency). It refuses ambiguous names.
  • search_code v2:
    • adds paths globs, context 0–5, case_insensitive and word;
    • results are grouped by file, and generated files (dist, node_modules, lockfiles) are skipped by default;
    • kind: "symbol" splits definitions from usages.
  • Docs, tools.md and the agents start page are updated.

Live (outer:e1ff629), with a throwaway account and a fresh app:

  • One read_files call returned brand.json whole, Layout by symbol (lines 133–217), pages/index.tsx lines 1–5, and nope.ts → inline not_found.
  • Symbol search found Layout's definition. A case-insensitive search restricted to pages/** with context grouped matches by file.
  • The old read_file is gone (unknown tool). The account has been deleted.

Note: two timing tests (rollback_in_flight_rejects_and_coalesces, warm_always_on_stops_after_max_failures) failed once together under load and passed 3/3 on rerun. They pre-date this PR and will be fixed separately.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 30e292aa-455b-4854-8ec2-bd1974a6af6b
Commits

Reviewing files that changed from the base of the PR and between e43f6d8 and d90bef6.

Files selected for processing: 12
  • crates/outer/src/git/local.rs
  • crates/outer/src/git/mod.rs
  • crates/outer/src/git/symbol.rs
  • crates/outer/src/http/console_code.rs
  • crates/outer/src/mcp/actions.rs
  • crates/outer/src/mcp/registry.rs
  • crates/outer/src/mcp/tests.rs
  • crates/outer/src/mcp/tools/code.rs
  • crates/outer/src/mcp/tools/look.rs
  • crates/outer/src/mcp/tools/mod.rs
  • web/docs/agents/start-here/index.md
  • web/docs/reference/tools.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@ryuzdev

ryuzdev commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

CodeRabbit is out of free reviews. Merging on green CI plus the live check in the description (the only later change is cargo fmt).

@ryuzdev
ryuzdev merged commit 8f53b38 into main Oct 26, 2026
4 checks passed
@ryuzdev
ryuzdev deleted the mcp-read-search branch October 26, 2026 21:45
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.

1 participant