terraphim / terraphim/terraphim-ai
Phase 1: Extend MCP Server with File Editing Tools (Week 1)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Rust
- Sterne
- 62
- Forks
- 5
- Ø Merge
- 2 Std. 27 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Part of Epic #270
Objective
Add 6 new file editing tools to existing MCP server, leveraging terraphim-automata for intelligent matching.
Tasks
1. Add File Editing Tools to MCP Server
Location: crates/terraphim_mcp_server/src/lib.rs
Add to existing 17 tools:
- edit_file_search_replace - Using automata strategies
- edit_file_fuzzy - Using fuzzy_autocomplete_search_levenshtein
- edit_file_patch - Apply unified diff
- edit_file_whole - Whole file rewrite
- validate_edit - Pre-edit validation
- lsp_diagnostics - Post-edit validation
2. Leverage Existing Automata Functions
- find_matches → exact search
- fuzzy_autocomplete_search_levenshtein → fuzzy match
- fuzzy_autocomplete_search → Jaro-Winkler match
- replace_matches → base for code replacement
3. Add Block Anchor Matching to Automata
Location: crates/terraphim_automata/src/lib.rs
4. Generate TypeScript Types
- Use existing WASM support
- Generate types for all new tools
Success Criteria
- 6 new MCP tools exposed
- Block anchor matching added
- TypeScript types generated
- Integration tests pass
- Can edit a file using 3+ strategies
Time: 1 week
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Start by reading crates/terraphim_mcp_server/src/lib.rs and crates/terraphim_automata/src/lib.rs, then inspect the existing automata functions and WASM support. Implementing the six tools, block anchor matching, generated TypeScript types, and integration coverage is complete when all six tools are exposed and files can be edited through at least three strategies.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust, typescript, wasm
- Bereich
- backend, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100