From ac12430182cd5ee823f9fd0ae70656dd3dd2fbda Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Fri, 18 Jul 2025 11:28:38 +0200 Subject: [PATCH] Expose top-level command serena which now contains all other commands --- README.md | 2 +- pyproject.toml | 7 +------ src/serena/cli.py | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 53bda0a..a349aef 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 9f37d6f..d1dcf9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/serena/cli.py b/src/serena/cli.py index d80bdbd..ffaab95 100644 --- a/src/serena/cli.py +++ b/src/serena/cli.py @@ -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):