Introduction¶
When working with DeepSeek Harness (DSH), developers often need to integrate services such as GitHub, Figma, Vercel, DigitalOcean, Notion, and Linear, and then view and govern the MCP tools exposed by these services from a single panel. The traditional approach typically involves configuring each service individually, resulting in scattered management, inconvenient tool switching, and difficulty reviewing Agent call history and permission policies. The DSH DevTools plugin adds a DevTools entry to the DSH sidebar, providing a unified panel to connect providers, manage tool toggles, configure permission policies, and review call history.
Plugin Overview¶
DSH DevTools is a developer tool integration plugin for DeepSeek Harness, maintained by lukema95. It connects GitHub, Figma, Vercel, DigitalOcean, Notion, and Linear as MCP servers, then manages tools, permissions, and call history from a single panel in DSH. The current version is a 0.x early release; the plugin API and configuration may change.
Core Features¶
The plugin adds a DevTools entry to the DSH sidebar and opens a global panel in the main area. The panel includes the following tabs and detail views:
- Integrations: Displays connection status, tool counts, and connect/manage actions. Supports adding custom streamable-HTTP MCP servers.
- Integration Details: Shows connection info, capabilities, per-provider tool toggles, permission policies, and call activity.
- Tools: All discovered MCP tools grouped by provider, with search, enable/disable, recommended sets for large catalogs, and a tool detail dialog.
- Tool Details: Tool input schema, auto-generated parameter form, and real test invocations via the same Agent execution pipeline.
- Permissions: Per-tool auto / ask / block policies, write-approval toggles, and three one-click presets (Read-only, Standard, Unattended).
- Activity: The most recent 200 MCP calls, including status, duration, redacted parameters, and result summaries.
Installation & Activation¶
The plugin requires DSH Desktop or DSH CLI, using the default web or desktop profile; DSH version must be >= 0.2.2-rc.1, and the profile must have the @deepseek-ai/dsh-mcp-manager and local credential provider mounted.
Install from npm (Recommended)¶
dsh plugin --profile desktop add @lukema/dsh-devtools
When using the Web profile, replace desktop with web. After installation, restart DSH and open DevTools from the sidebar.
To pin a specific version:
dsh plugin --profile desktop add @lukema/dsh-devtools@0.1.1
Install from GitHub¶
dsh plugin --profile desktop add github:lukema95/dsh-devtools
Install via the DSH UI¶
- Open Plugins in the DSH sidebar.
- Select Add plugin, then choose Install a third-party plugin, and enter the absolute path to this directory.
- Enable the bundle, then open DevTools from the sidebar.
Install from Source (Development)¶
git clone https://github.com/lukema95/dsh-devtools.git
cd dsh-devtools
npm test
dsh plugin --profile desktop add link:$(pwd)
Restart DSH after installation. After modifying host/ or client.js, you need to reload the plugin or restart DSH. There is no build step: index.js and client.js are the runtime files, and the Host side only references Node built-in modules.
Connecting Providers¶
Each provider uses the authentication method supported by its MCP server:
| Provider | Method |
|---|---|
| GitHub | Personal access token (classic or fine-grained) |
| Figma | Official remote MCP + browser OAuth (temporary compatibility client) |
| Vercel, DigitalOcean, Notion, Linear | Browser OAuth |
| Custom server | Optional bearer token |
GitHub — Personal Access Token¶
Open Integrations → GitHub → Connect, and paste the token you created in GitHub settings → Tokens. The dialog lists recommended scopes (repo, read:org, read:user, user:email, read:packages, write:packages, read:project, project, gist, notifications). The token is stored in DSH’s credential provider under the reference name DSH_DEVTOOLS_GITHUB; the MCP entry reads it via ${credential:DSH_DEVTOOLS_GITHUB}; the page never displays the token in plaintext. The connection dialog remains open until the MCP server is truly connected. If there is a token issue, the server error is displayed directly in the dialog; you can replace the token and retry without disconnecting first.
Figma — Official Remote MCP (Temporary Compatibility Client)¶
Figma’s official MCP server is at https://mcp.figma.com/mcp, but Figma currently only allows clients in its MCP catalog to connect. Until DSH is added to the catalog, this plugin registers its OAuth client using a temporary compatibility identity. This allows using the official remote server without the Figma desktop app or Dev Mode, but it is a workaround for Figma’s policy and may stop working if Figma adjusts its allowlist.
- Select Figma → Sign in, and confirm the OAuth authorization page in the browser.
- The dialog will note that Figma may display a different client name; that is the temporary compatibility identity.
- The plugin stores the access token as a credential ref, and stores the refresh token, client secret, and client registration in the
dsh-devtools/figmagrant record. It does not write tocordis.patch.yml. - The Free plan supports read access. Writing to Figma may require a Full seat.
- The recommended tool set enables only read-only tools by default; to enable write tools, toggle them on in the Tools tab or let the Agent search for and enable them.
No Figma desktop app, Dev Mode, or desktop MCP server is required.
Vercel, DigitalOcean, Notion, Linear — Browser OAuth¶
Select a provider and click Sign in with …. The browser opens the provider’s authorization page; after you confirm, DSH receives the code via a loopback callback and stores the access token in the credential provider. The MCP entry reads it via ${credential:DSH_DEVTOOLS_<PROVIDER>}, and the plugin automatically refreshes before expiration. The refresh token and dynamically registered OAuth client are stored in the credential GrantRecord and are never exposed in the page. The flow uses OAuth 2.1 authorization code + PKCE + state; dynamic client registration is used when the provider supports it. The callback only listens on 127.0.0.1 (RFC 8252). If the browser blocks the tab, the dialog provides an authorization link to open manually. DigitalOcean, Linear, and Vercel also support API tokens; the dialog offers Use an access token instead as a fallback. Notion only supports OAuth.
Custom servers are added via Add MCP server: name, http(s) endpoint, and an optional token. They behave identically to built-in providers and can be removed at any time.
Tool Context Budget¶
Servers like Vercel publish 200+ tools. Sending all schemas with every request can cost more than the task itself, so the plugin does not enable large catalogs wholesale:
- Providers with 30 or fewer tools are fully enabled.
- Providers with more than 30 tools get a cold-start recommended set on first discovery: up to 20 read-only tools selected by resource relevance (projects, deployments, logs, errors, domains, environments, etc.). Until the discovery process stabilizes, these tools remain hidden and are not briefly enabled in their entirety.
- After the Agent has actually invoked tools, the recommended set is rebuilt based on invocation frequency: tools called at least three times form the base set (including write tools), a small number of frequently used read-only tools cover new tasks, and unused tools stay hidden. Once usage history is generated there is no fixed count; a 16k-token safety cap prevents abnormally large catalogs. The recommended set is recalculated on reconnect/restart or when clicking Refresh recommended, and is never changed mid-model-step.
- The provider card shows Enabled / Total; the Tools tab displays the approximate schema token count of the enabled set.
- Refresh recommended recalculates based on current usage; Enable all prompts for confirmation and displays the additional token cost; Disable all removes the provider’s schemas entirely.
- In recommended/custom mode, newly discovered tools are disabled by default until manually enabled.
- Usage counts are stored in the plugin’s local state and never leave the machine.
Disabling a tool removes its schema from every Agent’s request. Permissions → Block only rejects calls without removing the schema; if your goal is to reduce context, use Tools → Disable.
Providers configured in early versions are migrated to the recommended set the first time their tool catalog is discovered.
The Agent is not limited to the recommended set. Two small plugin tools allow it to discover and enable hidden tools on demand without injecting the entire catalog:
devtools_search_toolssearches tools across all connected providers (including disabled ones) and reports provider, risk, policy, and enable status.devtools_enable_toolenables a single tool by exact name. The tool becomes visible in the next model step, and normal permission policies still apply. The Agent can enable at most 40 tools per provider; beyond that, the user must review in the Tools tab.
These two tools cost only a few hundred tokens; the alternative (200 Vercel schemas) would cost tens of thousands of tokens.
How Governance Works¶
Every MCP tool name exposed by a connected server follows the pattern mcp__<provider>__<tool>. The plugin governs these names at the runtime layer, not just in the UI:
- Disabled tools are removed from an Agent’s tool set via
ctx.tools.restrict()on that Agent’s own context, so their schemas leave the request. The mask is re-applied when tools connect, disconnect, or change. ctx.tools.guard()still rejects calls to disabled tools and tools with ablockpolicy. Other plugins cannot override a guard rejection.- The
tools/pre-executewaterfall returns an approval request foraskpolicies that require confirmation, with prompts in both English and Chinese. - Programmatic calls without an Agent (including the in-page tester) bypass Agent policies, making it convenient to debug tools the Agent is not permitted to call.
tools/resultwrites to the activity log; parameters and error text are redacted before storage.
Risk is inferred from tool names and descriptions. Names starting with read verbs (get, list, search, etc.) are treated as read-only by default unless they also contain destructive verbs (delete, destroy, drop, etc.). All inferences can be overridden on the Permissions page. Inference is a heuristic, not a security boundary: review dangerous tools published by a server before allowing writes.
Tool toggles affect two layers: enabled tools are visible and callable; disabled tools are hidden from every Agent’s request (reducing context) and rejected even if a call is dispatched. Policy changes take effect at the Agent’s next step.
Data & Privacy¶
- Provider selections, tool toggles, policies, usage counts, and activity are stored in
$DSH_HOME/devtools/state.json, written atomically with owner-only read permissions. Use Integrations → Danger zone → Reset DevTools data to clear everything along with stored credentials. - Tokens are stored in the credential provider (
$DSH_HOME/.credentials.yaml) and never enter plugin state or the browser. Disconnecting preserves tokens; Reset removes them. - OAuth refresh tokens, client secrets, and client registrations are stored in
dsh-devtools/*GrantRecords using the DSH-officially recommendedmodifyRecord()path; access tokens and PATs use credential refs. - The page communicates with a single owner-only route:
POST /api/dsh-devtools. DSH’s connection layer rejects non-owner peers before the handler executes. - Activity retains at most 200 calls, storing redacted parameters and truncated results.
Uninstallation & Cleanup¶
Uninstalling the bundle does not delete plugin state or credentials. This is not the plugin being lazy; rather, the current DSH has no independent per-plugin uninstall hook: uninstall, disable, reload, and restart all go through the same plugin lifecycle, and the plugin cannot reliably distinguish “user is uninstalling” from “temporarily disabling/restarting.” If credentials were deleted on dispose, users would be logged out every time they disabled the plugin or restarted DSH.
Therefore, the plugin makes cleanup an explicit action rather than an uninstall side effect. True “auto-cleanup on uninstall” would require the host to provide a dedicated uninstall confirmation or hook; until then, users must proactively Reset to clear credentials.
If you are simply upgrading or reinstalling the plugin, you do not need to Reset: retaining state and credentials allows direct restoration. If you are switching machines, handing over a device, or no longer using these integrations, use Integrations → Danger zone → Reset DevTools data before uninstalling. It disconnects all providers, removes DSH_DEVTOOLS_* refs and dsh-devtools/* credential records, revokes OAuth tokens where the provider supports RFC 7009, and clears state.json.
If the plugin has already been removed, stop DSH first, then clean up manually:
~/.dsh/devtools/state.json~/.dsh/devtools/state.json.bak~/.dsh/devtools/state.json.lock
Use Cases & Notes¶
Suitable for DSH developers who need to uniformly manage multiple MCP tools and review call history and permission policies. The plugin runs with the permissions of the current DSH process; review the source code and license before installing.
In Short¶
DSH DevTools provides a panel in the DSH sidebar to uniformly connect MCP servers such as GitHub, Figma, Vercel, DigitalOcean, Notion, and Linear, manage tool toggles, permission policies, and call history — ideal for developers who need fine-grained governance over tools and context budgets.
References¶
- GitHub: https://github.com/lukema95/dsh-devtools
- npm: https://www.npmjs.com/package/@lukema/dsh-devtools