Expose top-level command serena which now contains all other commands

This commit is contained in:
Dominik Jain
2025-07-18 11:28:38 +02:00
committed by Dominik Jain
parent eed2057a13
commit ac12430182
3 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ claude mcp add serena -- uvx --from git+https://github.com/oraios/serena serena-
Do this whenever you start a new conversation and after any compacting operation to ensure Claude remains properly configured to use Serena's tools.
️ **NEW**: an alternative to the above is adding the instructions as part of the system prompt, then you will not need to run the command above or to remember re-running it after compacting.
This can be achieved through starting claude code with `claude --append-system-prompt $(uvx --from git+https://github.com/oraios/serena print-system-prompt)`. Note that this is **experimental**, Claude may not understand the instructions correctly in this way, and we haven't thoroughly tested the resulting behavior. Please report any issues you encounter.
This can be achieved through starting claude code with `claude --append-system-prompt $(uvx --from git+https://github.com/oraios/serena serena print-system-prompt)`. Note that this is **experimental**, Claude may not understand the instructions correctly in this way, and we haven't thoroughly tested the resulting behavior. Please report any issues you encounter.
### Claude Desktop
+1 -6
View File
@@ -37,14 +37,9 @@ dependencies = [
]
[project.scripts]
serena = "serena.cli:top_level"
serena-mcp-server = "serena.cli:start_mcp_server"
index-project = "serena.cli:index_project" # deprecated
print-system-prompt = "serena.cli:print_system_prompt"
mode = "serena.cli:mode"
context = "serena.cli:context"
project = "serena.cli:project"
config = "serena.cli:config"
help = "serena.cli:get_help"
[project.license]
text = "MIT"
-1
View File
@@ -448,7 +448,6 @@ config = SerenaConfigCommands()
top_level = TopLevelCommands()
start_mcp_server = top_level.start_mcp_server
index_project = project.index_deprecated
print_system_prompt = top_level.print_system_prompt
# needed for the help script to work - register all subcommands to the top-level group
for subgroup in (mode, context, project, config):