You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surface grep_search file-name matching + matchedByName flag (#375)
Pairs with CodeAlive-AI/backend#376. The backend's grep_search now also
matches file names/paths for literal queries and flags name-only hits
with matchedByName=true (omitted when null via global JsonIgnoreCondition
on the .NET side). Previously the MCP layer dropped matchedByName
entirely in transform_grep_response, so the new signal never reached
LLM agents even though the backend emitted it.
Changes:
- response_transformer.transform_grep_response now forwards
matchedByName into the MCP dict output, only when the backend set it
(mirrors the backend's omit-on-null wire semantics so content-match
responses stay byte-identical to the pre-change shape).
- grep_search tool docstring updated: mentions literal file-name
matching, explains the Form.xml use case, documents the matchedByName
contract (empty matches, location points at line 1 as a file-level
reference — do NOT interpret it as a content match), and flags the
Phase 1 limitation that regex=true still only searches content.
- README.md one-line summary of grep_search extended accordingly.
- Unit test test_grep_forwards_matched_by_name_flag asserts name-only
hits surface the flag and content hits do not.
Tests: 17/17 response_transformer tests pass (16 pre-existing + 1 new).
Full MCP unit suite: 249 passed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Once connected, you'll have access to these powerful tools:
27
27
28
28
1.**`get_data_sources`** - List your indexed repositories and workspaces
29
29
2.**`semantic_search`** - Canonical semantic search across indexed artifacts
30
-
3.**`grep_search`** - Exact text or regex search with line-level matches
30
+
3.**`grep_search`** - Exact literal or regex text search inside file content, plus literal file-name/path matching (returns files like `Form.xml` even when their content never mentions the name), with line-level previews for content matches
31
31
4.**`fetch_artifacts`** - Load the full source for relevant search hits
32
32
5.**`get_artifact_relationships`** - Expand call graph, inheritance, and reference relationships for one artifact
33
33
6.**`chat`** - Slower synthesized codebase Q&A, typically only after search
0 commit comments