Serena for VS Code: Setup & Config
Serena gives VS Code symbol-aware retrieval, editing, refactoring, and debugging capabilities through MCP.
What you can do with Serena in VS Code
Add symbol-aware IDE capabilities to coding agents instead of relying entirely on text search and edits.
- Navigate a large project using symbols, references, and file outlines.
- Preserve project knowledge across agent sessions with memory.
Before you start: Serena in VS Code
- uv
- An LLM client supporting MCP
- Additional language-specific dependencies where required
This command installs Serena; it is not the client launch command. Next run serena init, then configure your MCP client using the linked client guide. The default backend uses language servers. A separately started HTTP server is also supported, but no endpoint is stated in this README.
Serena VS Code configuration
Choose VS Code configuration scope
For Serena, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.
Add Serena to VS Code
Use the serena entry below in servers. Keep Serena's documented stdio connection fields and your other VS Code entries.
Check Serena in VS Code
Serena: Start in VS Code’s MCP controls; inspect output and trust prompts.
Config file · Workspace: .vscode/mcp.json
{
"servers": {
"serena": {
"type": "stdio",
"command": "uv",
"args": [
"tool",
"install",
"-p",
"3.13",
"serena-agent"
],
"env": {}
}
}
}Serena tools available to VS Code
Serena's stored tool list documents 6 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.
- search_for_pattern
Look for search_for_pattern among VS Code's agent-mode tools after starting Serena through the MCP controls.
Search a codebase using regular expressions.
- replace_content
Look for replace_content among VS Code's agent-mode tools after starting Serena through the MCP controls.
Apply literal or regex-based text substitutions.
- list_dir
Look for list_dir among VS Code's agent-mode tools after starting Serena through the MCP controls.
- find_file
Look for find_file among VS Code's agent-mode tools after starting Serena through the MCP controls.
Locate files within a project.
- read_file
Look for read_file among VS Code's agent-mode tools after starting Serena through the MCP controls.
- execute_shell_command
Look for execute_shell_command among VS Code's agent-mode tools after starting Serena through the MCP controls.
Troubleshooting Serena in VS Code
- Serena's uv tool install command installs a package, not a persistent MCP process. Confirm the upstream launch command before connecting VS Code.
- Make uv available in the workspace, container, or remote environment hosting Serena. Start through VS Code's MCP controls; inspect output and trust prompts.
- Known limitation: Semantic capabilities depend on the selected backend and language server.
- Known limitation: Interactive debugging and several advanced refactorings require the paid JetBrains plugin.
- Known limitation: Some languages need additional dependencies.
- General VS Code troubleshooting lives in the /clients/vscode guide.
Serena — details. VS Code guide