| name | serena-lsp-integration |
| description | Конфигурация Serena MCP под languages проекта - LSP keys, .serena/project.yml, ls_specific_settings. Используй для: настрой Serena LSP, индексация, семантический анализ, project.yml серены. EN triggers: configure Serena, Serena LSP keys, project.yml, semantic index, ls_specific_settings, set up Serena project, Serena onboarding. |
| allowed-tools | ["mcp__plugin_rldyour-mcps_serena__*","Read","Write","Edit","Bash"] |
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
${CLAUDE_PLUGIN_ROOT}/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 through
lsp-health-check 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:
check_onboarding_performed
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.
Anti-patterns
- Автоматически редактировать
.serena/project.yml без explicit setup request.
- Заявлять Serena-native поддержку для HTML/CSS/Docker/QML без upstream confirmation.
- Hardcode machine-local LSP paths (
/opt/homebrew/...) в committed .serena/project.yml (use .serena/project.local.yml).
- Skip'нуть
serena project index после изменения language configuration.
- Использовать
search_for_pattern для symbol-level questions когда есть find_symbol.