Introduction¶
By default, DSH uses the global Agent directory as a skill source, which clutters the skill list and makes experimental or temporary skills prone to accidental triggering. Additionally, MCP server configurations are scattered across multiple applications, making centralized management difficult. This plugin intercepts DSH’s skill scanning results, loads only skills explicitly synced by the user, and provides unified management of MCP servers.
What It Is¶
This is a DSH sidebar plugin for managing local Skills and MCP servers. The entry point is fixed as “Skills & MCP,” the UI uses DSH theme tokens, and no iframes are embedded. Developed by maintainer lock-down, current version 1.6.3, developed and validated against DSH 0.2.3-alpha.2.
Skill Management¶
The plugin intercepts DSH’s skill scanning results at the Host layer. By default, ~/.agents/skills is not fully loaded into the system skill directory. Only skills you explicitly sync will be available in DSH.
Interception Scope¶
The following sources continue to be scanned and loaded as normal:
- User-level
~/.dsh/skills - Project-level
$WORKSPACE/.dsh/skills - Project-level
$WORKSPACE/.agents/skills - DSH built-in skills
- Other
customandruntimesources
Only the global ~/.agents/skills is excluded. Project-level .agents/skills belongs to workspace content and continues to participate in the current workspace loading.
Syncing Skills¶
Syncing is explicit. The steps are as follows:
- Open the Skills tab in “Skills & MCP.”
- Click “Sync from Agent Directory.”
- Choose a sync mode:
- Symlink mode: Windows requires Developer Mode to be enabled.
- Copy mode: Uses more disk space; copies are redone after updates. - Review the source, target, backup directory, and change list.
- Select the skills to sync, then click “Confirm Sync.”
Symlink mode creates DSH symlinks pointing to the Agent source. Changes in the Agent source are reflected in DSH directly without requiring another sync. Editing a synced skill writes back to the Agent source file through the symlink.
Copy mode copies the skill directory or files into DSH, producing independent copies. Editing or deleting only affects the DSH copy and does not modify the Agent source files. Copy mode consumes more disk space.
Copy-based sync records baseline fingerprints for both source and copy. On subsequent syncs, only source changes are marked as “Update Copy”; only DSH copy changes are marked as “Locally Modified” (unchecked by default); changes in both source and copy are marked as “Both Source and Copy Changed” (unchecked by default); identical content matching the baseline is skipped.
Bulk Delete Skills¶
- Select skills to delete in the Skills tab. You can use “Select All” or filter by the current search and then select all.
- Click “Bulk Delete” and confirm the list and count.
- Deletion is executed item by item; results show the success count and failure reasons.
Symlink-synced skills only have their DSH link removed; the Agent source directory remains intact. Locally created, copy-synced, and real-directory skills are moved to ~/.dsh/capability-switch/trash.
Creating New Skills¶
Creating a new skill supports drag-and-drop or file selection of .zip skill packages. After parsing, the SKILL.md and associated files within the package are preserved.
Project-Level Skills¶
Project-level skills are scanned based on the current session’s workspace and do not use the DSH profile directory:
$WORKSPACE/.dsh/skills
$WORKSPACE/.agents/skills
$WORKSPACE is the workspace path bound to the current session.
Project skills support creation, editing, enable/disable, and deletion. When creating a new one, you can bind an existing workspace or create and register a new one; new workspaces default to being placed under ~/Documents, but the parent directory can be changed in the dialog.
.agents project skills across all registered workspaces are scanned and displayed, allowing direct editing, enable/disable, or deletion. For cross-workspace operations, the info icon next to the title, the edit dialog, and the deletion confirmation will indicate the affected workspace, subsequent session read behavior, and that running sessions may need to be reloaded.
MCP Management¶
The plugin provides a unified management interface for MCP servers, supporting creation, editing, enable/disable, deletion, connection testing, and reconnection.
Supported Connection Types¶
Connection types support stdio and SSE / Streamable HTTP. SSE configurations are uniformly handled by DSH’s Streamable HTTP transport.
Editing Methods¶
Editing supports both form and JSON modes. JSON accepts an mcpServers wrapper object or a single server configuration. When creating new, multiple servers can be saved at once; when editing, only one can be saved.
JSON multi-server creation first validates all entries and completes the approval, then writes in one batch; any failure leaves no partial configuration.
type: "sse" or transport: "sse" in JSON is mapped to DSH’s streamable-http.
Importing Configurations¶
The plugin can import user-level MCP configurations from Claude Code, Codex, Gemini CLI, OpenCode, and Cursor. A preview and source are shown before import. Items are unchecked by default and imported as disabled. If the source changes after preview, the import is rejected to prevent executing unconfirmed commands.
Existing entries with the same name are skipped; same name but different configuration are displayed separately by source.
Bulk Delete MCP¶
- Select MCP servers to delete in the MCP tab. You can use “Select All” or filter by the current search and then select all.
- Click “Bulk Delete” and confirm the list and count.
- Deletion is executed item by item; running connections are closed; standalone instances have their profile patch backed up first, and partial failures show the reason.
Permission Approval¶
Agent tools request host approval before saving and starting, enabling, restarting, connection-testing, or importing and enabling stdio MCP servers. If approval is denied, cancelled, no approval channel is available, or the current session does not provide approval prompts, the operation fails directly—no configuration is written and no process is started.
Enable, restart, and connection test re-validate the stdio configuration after approval passes; if the command changes during the approval period, execution is rejected. Save and import write the configuration as it was at the time of approval.
Approval is only requested when the operation will actually launch a local stdio command; HTTP MCP, disabling, deletion, and unenabled imports do not trigger additional prompts.
Auto-Update¶
Plugins installed via npm automatically check for and update to compatible stable versions:
- Checks once approximately 45 seconds after startup, then every 6 hours thereafter.
- Only updates
dsh-capability-switchinstalled from the npm registry. - Local directory links and Git pinned-commit installations do not self-replace.
- Only selects versions with
bundle: true, not deprecated, non-prerelease, and compatible with the current DSH. - Updates are completed through DSH’s
pluginManager.updateBundle. - With HMR, the plugin auto-loads after installation; without HMR, DSH restart is prompted.
- Auto-update does not modify Skills, MCP, workspaces, or sync state.
Preferences are saved in ~/.dsh/capability-switch/update-preferences.json.
“Release Notes” reads GitHub Releases from this repository, displaying the latest release’s name, version, release date, description, and collapsible historical versions. Results are cached for 10 minutes and can be manually refreshed.
Installation¶
Install from npm with auto-update support:
dsh plugin --profile desktop add dsh-capability-switch
Install from source (local directory installs do not auto-update):
git clone https://github.com/lock-down/dsh-capability-switch.git
cd dsh-capability-switch
npm install --ignore-scripts
Open “Plugins” in DSH, select “Add Plugin,” then choose this directory. After installation, “Skills & MCP” will appear in the left sidebar.
You can also download dsh-capability-switch-1.6.3.tgz from GitHub Releases, extract it, and install using the directory method described above.
Install from a pinned GitHub version (Git installs do not auto-update):
dsh plugin --profile desktop add "git+https://github.com/lock-down/dsh-capability-switch.git#v1.6.3"
Data & Permissions¶
The plugin only accesses local files and fixed public network endpoints:
~/.dsh/skills~/.agents/skills~/.dsh/capability-switch/backups~/.dsh/capability-switch/trash~/.dsh/capability-switch/skill-sync-backups~/.dsh/capability-switch/skill-sync-state.json~/.dsh/capability-switch/update-preferences.json- The current DSH profile’s
cordis.patch.yml
Before deleting a standalone MCP server, the original profile patch is backed up to ~/.dsh/capability-switch/backups.
Network access is limited to the npm registry (auto-update) and this repository’s Releases on api.github.com (release notes). The plugin does not upload skills, MCP configurations, or credentials; MCP connections are handled by DSH’s MCP Manager and the respective MCP services.
Use Cases¶
Suited for developers who need fine-grained control over DSH’s skill list and want unified MCP server management. The plugin is particularly well-suited for:
- Isolating experimental skills in the Agent directory to avoid accidental triggering
- Using multiple workspaces and needing unified management of project-level skills
- Importing MCP configurations from applications like Claude Code and Codex with centralized management
The plugin runs with the current DSH process permissions. Review the source code and license before installation. The current license is MIT.
Conclusion¶
This plugin keeps DSH’s skill list clean and controllable by intercepting skill scan results, providing an explicit sync mechanism, and unifying MCP server management, while also simplifying the import and management workflow for MCP configurations.
- Directory page: https://www.skillhub.cn/plugins/lock-down/dsh-capability-switch
- GitHub: https://github.com/lock-down/dsh-capability-switch