---
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
