You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/02-usage/030_clients.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,23 @@ object, e.g.
75
75
76
76
Serena is a great way to make Claude Code both cheaper and more powerful!
77
77
78
-
**Per-Project Configuration.** To add the Serena MCP server to the current project in the current directory,
79
-
use this command:
78
+
:::{note}
79
+
Serena might take some time to start up, especially on the first run.
80
+
To make sure that enough time is available for the server to start,
81
+
set `MCP_TIMEOUT` to a sufficiently high value (e.g. by adding `export MCP_TIMEOUT=60000` to your shell profile)
82
+
before starting Claude Code.
83
+
84
+
Confirm that Claude Code is connected to Serena by running the `/mcp` command and by reconnecting, if necessary.
85
+
:::
86
+
87
+
**Global Configuration**. To add the Serena MCP server for all your projects, use the user-level configuration of claude code and the `--project-from-cwd` flag:
88
+
89
+
```shell
90
+
claude mcp add --scope user serena -- uvx --python 3.13 --from git+https://github.com/oraios/serena serena start-mcp-server --context=claude-code --project-from-cwd
91
+
```
92
+
93
+
**Per-Project Configuration.** Alternatively, to add Serena only for the current project in the current directory,
0 commit comments