From 3031c158e79d80ae7b21ed1cff1784371b2dc2e0 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 20 Mar 2026 09:18:38 +0000 Subject: [PATCH] story-kit: create 348_story_mcp_tools_for_code_search_grep_and_glob --- ...mcp_tools_for_code_search_grep_and_glob.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .story_kit/work/1_backlog/348_story_mcp_tools_for_code_search_grep_and_glob.md diff --git a/.story_kit/work/1_backlog/348_story_mcp_tools_for_code_search_grep_and_glob.md b/.story_kit/work/1_backlog/348_story_mcp_tools_for_code_search_grep_and_glob.md new file mode 100644 index 0000000..936d888 --- /dev/null +++ b/.story_kit/work/1_backlog/348_story_mcp_tools_for_code_search_grep_and_glob.md @@ -0,0 +1,22 @@ +--- +name: "MCP tools for code search (grep and glob)" +--- + +# Story 348: MCP tools for code search (grep and glob) + +## User Story + +As a non-Claude agent connected via MCP, I want search tools so that I can find files and search code contents in my worktree. + +## Acceptance Criteria + +- [ ] grep tool — searches file contents with regex support, returns matching lines with context +- [ ] glob tool — finds files by pattern (e.g. '**/*.rs') +- [ ] Both scoped to the agent's worktree +- [ ] grep supports output modes: content (matching lines), files_with_matches (just paths), count +- [ ] grep supports context lines (-A, -B, -C) +- [ ] Results limited to prevent overwhelming the LLM context + +## Out of Scope + +- TBD