terraphim / terraphim/terraphim-ai
Phase 1: Extend MCP Server with File Editing Tools (Week 1)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 62
- Fork
- 5
- Merge medio
- 2h 27m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust, typescript, wasm
- Ambito
- backend, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100