When running Serena as an MCP server via stdio transport in VS Code (Copilot/Chat), the connection hangs indefinitely at Waiting for server to respond to 'initialize' request....
This issue does not occur when using claude-code CLI, but consistently fails in VS Code.
Steps to Reproduce
- Environment: macOS, VS Code,
uv installed via mise.
- Target Project: A Go project (without an existing
.serena folder or serena.toml).
- VS Code MCP Configuration:
"serena": {
"type": "stdio",
"command": "uv",
"args": ["run", "serena", "start-mcp-server", "--context", "ide-assistant", "--project", "."]
}
- Launch VS Code.
Observed Behavior
VS Code shows: Waiting for server to respond to 'initialize' request... and eventually times out.
Server Logs (captured from stderr):
INFO [MainThread] serena.config.serena_config:start:329 - Project configuration auto-generation starting ...
INFO [MainThread] serena.config.serena_config:stop:336 - Project configuration auto-generation completed...