Skip to content

feat(dora): add lsp_references tool for finding symbol usages (#28)#29

Merged
amondnet merged 2 commits into
mainfrom
28-add-lsp-find-references-tool-to-pleaseaidora
Dec 18, 2025
Merged

feat(dora): add lsp_references tool for finding symbol usages (#28)#29
amondnet merged 2 commits into
mainfrom
28-add-lsp-find-references-tool-to-pleaseaidora

Conversation

@amondnet

Copy link
Copy Markdown
Contributor

Summary

Add lsp_references MCP tool to the LSP provider that finds all references to a symbol at a given position in a file.

Changes

  • Add lsp_references tool definition with file, line, character, and optional include_declaration parameters
  • Implement handleReferences handler using LSPManager.references() from @pleaseai/code-lsp
  • Add test for tool listing
  • Follow existing LSP tool patterns (path handling, error handling)

Test Plan

  • TypeScript type check passes
  • LSP provider tests pass (9/9)
  • Tool correctly appears in listTools() output

Closes #28

Add lsp_references MCP tool to the LSP provider that finds all
references to a symbol at a given position in a file.

- Add tool definition with file, line, character, and optional
  include_declaration parameters
- Implement handleReferences handler using LSPManager.references()
- Add test for tool listing
- Follow existing LSP tool patterns (path handling, error handling)

Issue: #28
@amondnet amondnet linked an issue Dec 18, 2025 that may be closed by this pull request
5 tasks
@codecov

codecov Bot commented Dec 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.94%. Comparing base (7938021) to head (99e3f98).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   40.14%   47.94%   +7.80%     
==========================================
  Files          15       15              
  Lines        3340     3341       +1     
==========================================
+ Hits         1341     1602     +261     
+ Misses       1999     1739     -260     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add missing test cases for lsp_references tool:
- TC-2: Error when calling without connection
- TC-3: Empty result handling for non-symbol position
@amondnet
amondnet merged commit fbbfd37 into main Dec 18, 2025
9 checks passed
@amondnet
amondnet deleted the 28-add-lsp-find-references-tool-to-pleaseaidora branch December 18, 2025 17:38
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.

Add LSP Find References tool to @pleaseai/dora

1 participant