This document is mainly used as instructions for AI-assistants like Cline and others that try to do an automatic install based on freeform instructions.
- Make sure
uvis installed. If not, install it using eithercurl -LsSf https://astral.sh/uv/install.sh | sh(macOS, Linux) orpowershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"(Windows). Find the path to theuvexecutable, you'll need it later. - Clone the repo with
git clone git@github.com:oraios/serena.gitand change into its dir (e.g.,cd serena) - Check if
serena_config.ymlexists. If not, create it withcp serena_config.template.yml serena_config.yml. Read the instructions in the config. - In the config, check if the path to your project was added. If not, add it to the
projectssection - In your project, create a
.serenaif needed and check whetherproject.ymlexists there. - If no
project.ymlwas found, create it usingcp /path/to/serena/myproject.template.yml /path/to/your/project/.serena/project.yml - Read the instructions in
project.yml. Make sure theproject.ymlhas the correct project language configured. Remove the project_root entry there. - Finally, add the Serena MCP server config like this:
{
"mcpServers": {
...
"serena": {
"command": "/abs/path/to/uv",
"args": ["run", "--directory", "/abs/path/to/serena", "serena-mcp-server", "/path/to/your/project/.serena/project.yml"]
}
}
}