GitHub MCP registry manifest duplicates package spec as a stray positional arg to start-mcp-server, breaking project auto-activation
What's broken
Installing Serena via VS Code's MCP server gallery (api.mcp.github.com, entry oraios/serena) generates a launch command that duplicates the package identifier as an extra positional argument to start-mcp-server, distinct from the already-tracked #944/#1281/#1235/#1389/#1488.
The generated mcp.json entry (from AppData\Roaming\Code\User\mcp\oraios.serena-1.0.0\manifest.json) produces:
{
"command": "uvx",
"args": [
"--from", "git+https://github.com/oraios/serena",
"serena", "start-mcp-server",
"serena@latest",
"--context", "ide-assistant"
]
}serena@latest is passed as a positional project argument to start-mcp-server, which Serena then tries to activate as a project name:
WARNING ... Positional project arg is deprecated; use --project instead. Used: serena@latest
ERROR ... Error activating project 'serena@latest' at startup: Project 'serena@latest' not found: Not a valid project name or directory. Existing project names: ['<real-project>']Project auto-activation silently fails every time Serena is launched through this gallery entry. The --context ide-assistant value is also the deprecated pre-rename context name (should be claude-code).
Root cause (best guess from the generated manifest)
manifest.json's packages[0] has both an explicit runtimeArguments sequence that already includes serena start-mcp-server as positional args, and a top-level identifier/version ("serena"/"latest") that the MCP client apparently also serializes as an implicit identifier@version package-spec positional -- producing the duplicate. Likely fixable by either dropping the explicit serena start-mcp-server positionals from runtimeArguments (letting the client's own identifier@version synthesis supply them) or removing the redundant identifier/version fields now that runtimeArguments already spells out the full invocation.
Reproduction
Install "Serena" from VS Code's MCP server gallery (Extensions/MCP view → Browse → Serena), then start it and connect any client (Claude Code, Codex, etc.) against a real project. Check the generated per-profile mcp.json under %APPDATA%\Code\User\mcp\oraios.serena-1.0.0\ and %APPDATA%\Code\User\profiles\<id>\mcp.json.
Workaround applied locally
Manually edited the generated mcp.json args to remove the duplicate positional and use --project-from-cwd + the current --context vscode (or whichever context matches the launching client) instead:
"args": ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--context", "vscode", "--project-from-cwd"]This fixes it until VS Code re-syncs the server definition from the gallery manifest, which reintroduces the bug.
Filed with Claude Code after reproducing and diagnosing the issue.
Source: oraios/serena