Managing Serena across multiple projects and worktrees without turning MCP config into a project of its own #1512
xizhibei
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Serena is stateful in a useful way: it has a project root, language-server state, indexes, memories, and project-specific behavior. That is exactly what makes it valuable for coding agents.
The hard part shows up when you use more than one agent/client/project:
Serena's official docs already describe the right primitives:
query_projectThe part that still gets messy is client configuration. Most MCP clients want static JSON, but the correct Serena config is often dynamic: it depends on the current repo, worktree, client, or session.
That is the runtime/config problem 1MCP template servers are meant to solve.
Instead of copying Serena config per client or per repo, define it once as a template:
{ "mcpTemplates": { "serena": { "command": "uvx", "args": [ "--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--project", "{{project.path}}", "--context", "claude-code" ], "tags": ["serena", "semantic", "project"] } } }Then the runtime can make the instance decision from context:
--contextif neededThis does not replace Serena's project model. It keeps Serena project-scoped and uses 1MCP for the outer routing/lifecycle/config problem.
The cases where this helps most:
1MCP Serena docs: https://docs.1mcp.app/guide/integrations/serena
Serena workflow docs: https://oraios.github.io/serena/02-usage/040_workflow.html
Beta Was this translation helpful? Give feedback.
All reactions