Skip to content

feat(dora): add FileProvider with Serena-inspired file tools#27

Merged
amondnet merged 2 commits into
mainfrom
feat/file-provider
Dec 18, 2025
Merged

feat(dora): add FileProvider with Serena-inspired file tools#27
amondnet merged 2 commits into
mainfrom
feat/file-provider

Conversation

@amondnet

Copy link
Copy Markdown
Contributor

Summary

Added FileProvider with six file system operation tools inspired by Serena's file utilities. This simplifies the dora MCP server to use LSP and File providers, removing the JetBrains provider (TBD for future implementation).

Changes

  • Add FileProvider with 6 tools:

    • read_file - Read files with line range support
    • create_text_file - Create or overwrite files
    • list_dir - List files and directories recursively
    • find_file - Find files matching patterns with wildcards
    • search_for_pattern - Search regex patterns across files with context
    • replace_content - Replace content using literal or regex mode
  • Simplify server.ts - Use only LSP and File providers

  • Remove JetBrains provider - Marked as TBD for future implementation

  • Move tests - Reorganize from src/**/tests/ to test/ directory

  • Update version - Bump to 0.2.0

Test Plan

  • Verify FileProvider tools load correctly
  • Test read_file with various line ranges
  • Test create_text_file creates and overwrites files
  • Test list_dir with recursive and ignore patterns
  • Test find_file with wildcard patterns
  • Test search_for_pattern with regex patterns
  • Test replace_content in both literal and regex modes
  • Verify test files moved to test/ directory
  • Run full test suite with `bun run test`

Related Issues

Closes #TBD

- Add FileProvider with 6 tools: read_file, create_text_file, list_dir, find_file, search_for_pattern, replace_content
- Remove JetBrains provider (TBD for future implementation)
- Simplify server.ts to use LSP and File providers only
- Move tests from src/**/__tests__/ to test/ directory
- Update to version 0.2.0
@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 40.14%. Comparing base (1fe9cab) to head (902370f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   32.14%   40.14%   +8.00%     
==========================================
  Files          14       15       +1     
  Lines        2946     3340     +394     
==========================================
+ Hits          947     1341     +394     
  Misses       1999     1999              

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

@amondnet
amondnet merged commit 7938021 into main Dec 18, 2025
9 checks passed
@amondnet
amondnet deleted the feat/file-provider branch December 18, 2025 16:58
@passionfactory-bot passionfactory-bot Bot mentioned this pull request Dec 18, 2025
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.

1 participant