story-kit: create 350_story_mcp_tool_for_code_definitions_lookup

This commit is contained in:
Dave
2026-03-20 09:19:19 +00:00
parent 2f66c7d30e
commit f653b51dd7

View File

@@ -0,0 +1,21 @@
---
name: "MCP tool for code definitions lookup"
---
# Story 350: MCP tool for code definitions lookup
## User Story
As a non-Claude agent connected via MCP, I want a code intelligence tool so that I can find function, struct, and type definitions without grepping through all files.
## Acceptance Criteria
- [ ] get_definitions tool — finds function/struct/enum/type/class definitions by name or pattern
- [ ] Supports Rust (fn, struct, enum, impl, trait) and TypeScript (function, class, interface, type) at minimum
- [ ] Returns file path, line number, and the definition signature
- [ ] Scoped to the agent's worktree
- [ ] Faster than grepping — uses tree-sitter or regex-based parsing
## Out of Scope
- TBD