| name | serena-lsp-integration |
| description | настрой Serena LSP: индексация, project.yml, semantic analysis. Используй для: Serena config. EN: semantic index, LSP keys. |
Serena LSP Integration
Purpose
Keep Serena MCP usage aligned with real language-server support. Use Serena for semantic inspection and editing where supported, and fall back honestly where a file type is not Serena-native.
Workflow
- Inspect project evidence: manifests, build files, lockfiles, and source files.
- Read
references/serena-lsp-integration.md when exact Serena keys or limitations matter.
- Map supported languages to Serena keys:
python, typescript, rust, dart, go, cpp, yaml, bash, json, toml, markdown.
- Treat C and C++ as
cpp; treat JavaScript as typescript.
- Treat HTML, CSS, Docker, and QML as external LSP areas unless current Serena docs prove native support.
- Check health and prerequisites before expecting reliable semantic behavior.
- Recommend
serena project index after language configuration changes.
Configuration Policy
Do not silently modify .serena/project.yml. Explain or apply changes only when the user explicitly asks for setup. Full project initialization belongs to the rldyour-flow plugin.
Use .serena/project.local.yml for machine-local executable paths. Use committed .serena/project.yml only for portable project settings.
Serena Tool Priority
For supported code files, use the existing Serena-first workflow:
initial_instructions
list_memories
- relevant
read_memory
get_symbols_overview
- targeted
find_symbol
find_referencing_symbols
search_for_pattern only for broad text sweeps or unsupported file types
For unsupported files, state the limitation and use direct reads, search, external validation, or browser/design/security plugins as appropriate.