Add skill remove --mcp for global scope removal - #524
Open
xsh310 wants to merge 2 commits into
Open
Conversation
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 05:43
fb94ba5 to
59d2fd5
Compare
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 18:25
59d2fd5 to
0aa87df
Compare
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 19:09
0aa87df to
98934ea
Compare
xsh310
marked this pull request as ready for review
September 8, 2026 21:09
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 22:12
98934ea to
4921ec5
Compare
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 22:16
4921ec5 to
333fc68
Compare
Introduce `ucode skill remove --mcp`, the inverse of `ucode skill add --mcp`. It shows the schemas in each configured client's skills scope, annotated with the clients that carry them, and removes the selected schemas from every client that has them. `remove_skills_command` reuses the per-client update path, so dropping the last schema leaves the schema-less connection in place. It never adds or reconfigures anything and needs no Databricks auth. Removing downloaded skills is not supported yet, so the command requires `--mcp`. A status hint points at the new add/remove commands. Co-authored-by: Arthur Jenoudet <arthur.jenoudet@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
remove_skills_command called _update_skills_mcp with the default print_summary=True, so a removal printed the full "Skills MCP registered" block (Server / URL / Configured / Tools) before "Removed N skill schemas", which reads wrong for a removal. Pass print_summary=False so a removal reports only what it removed. The print_summary hook already existed for this case. Co-authored-by: Arthur Jenoudet <arthur.jenoudet@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
xsh310
force-pushed
the
xshen/skill-remove
branch
from
September 8, 2026 23:09
14e8dcd to
bda1dc8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
ucode skill remove --mcp, the inverse ofucode skill add --mcp. It interactively removes skill schemas from the skills MCP connection across every configured agent. Removing downloaded skills is not supported yet, so the command requires--mcp.How
remove_skills_command()reads each configured client's skills scope, offers the union of schemas via a picker (each annotated with the clients that carry it), and removes the selected schemas from every client that has them.cli.pygains theskill removecommand and astatushint pointing atug skill add/ug skill remove --mcp.Tests
test_mcp.py: a selected schema is removed from every client and each is re-registered; removing all schemas keeps the schema-less connection; an empty scope is a no-op that never opens the picker; the picker is offered each client's real scope.test_cli.py:skill removewithout--mcperrors;skill remove --mcpdispatches the global removal.uv run pytest tests/test_mcp.py tests/test_cli.py tests/test_lint.pyis green.Manual verification (installed build)
Ran against the installed build (
0.1.0+91.g5c0dc1e) in the isolated sandbox (tempHOME, stubclaude/codexbinaries recording registrations,DATABRICKS_BEARERfor offline auth), starting from stateclaude=[claude.only],codex=[shared.skills]. Invokedremove_skills_command()with the interactive picker stubbed to selectshared.skills(the picker needs a TTY); all state I/O and per-client registration ran for real.{claude:[claude.only], codex:[shared.skills]}shared.skillsdropped from codex; result{claude:[claude.only]}with codex's now-empty entry removeducode skill remove(no--mcp) exits withERROR Removing downloaded skills is not supported yet ...Stacking
Third in the stacked per-agent skills series, based on
xshen/skill-per-agent-status(#523). Per-agent remove builds on this next. Reviewing the diff against that base shows just this change. It rebuilds behavior originally designed by Arthur Jenoudet on the current per-client-map state model.This pull request and its description were written by Isaac.