Introduction¶
When building DeepSeek Harness (DSH) applications that use MCP (Model Context Protocol), configuring multiple MCP services, managing tool schemas, debugging connections, and controlling Agent access to tools can become fragmented and difficult to maintain. DSH natively provides only basic tool registration, lacking a unified visual management interface.
DSH MCP Studio is a standalone web plugin designed to consolidate the above capabilities into the DSH settings interface, providing visualized connection configuration, tool browsing and debugging, resource inspection, and per-tool-granularity Agent authorization. The plugin entry point is located at Settings → MCP Services, positioned after Plugins, and utilizes the host’s React slots and theme colors.
Plugin Positioning & Maintainer¶
DSH MCP Studio is an MCP service management plugin for DSH, maintained by luonianxin. It is installed in DSH’s web settings environment, loaded via DSH’s plugin mechanism, and shares the host process.
The plugin primarily addresses the following problems:
- Unified configuration and connection testing for multiple MCP services (HTTP, stdio).
- Read-only browsing of tool schemas and resources for understanding available capabilities.
- Per-tool-granularity permission control at the Agent level to avoid over-authorization.
- Browsing native MCP sources to understand services already registered in the current profile.
Core Features¶
1. Service Connection Management¶
The plugin supports adding services through the following methods:
- Remote HTTP services: enter a URL and select Bearer Token, custom Headers, or no authentication (the Bearer prefix is handled programmatically).
- Local stdio services: launch a local subprocess.
- JSON import: paste
mcpServersconfiguration directly.
Configuration items include server name, URL, authentication method, headers, environment variables, etc. Configuration belongs solely to this plugin and will not migrate or copy configurations, tokens, or environment variables from other MCP plugins.
2. Tool & Resource Browsing¶
The plugin identifies @deepseek-ai/dsh-mcp-client via configEditor.entries(), matches by serverName and public tool names, and displays source, tool description, and input schema in read-only mode. A registered tool does not imply real-time connectivity or that the current Agent has permission to invoke it.
Resources and resource templates are only available when the server declares support. The plugin inventories native MCP sources, supporting up to 100 sources and 1,000 tools, with a cumulative input schema limit of 2 MiB.
3. Debugging & Testing¶
On the Tools page, you can browse tool names, descriptions, and input schemas, and manually enter JSON parameters for debugging. HTTP endpoints display only the origin—no userinfo, path, query, or fragment is shown.
4. Agent Permission Management¶
The plugin supports explicitly granting access to a service and specific tools at the tool granularity level. New services do not expose tools to Agents by default. Agents use the inventory action of mcpstudio_manage to obtain the same view; list still only returns Studio connections. External source IDs cannot be used for management operations.
Permission management and manual debugging are independent of each other; tool invocations may produce server-side side effects, so verify the tool and parameters before execution.
5. Credentials & Authorization¶
Credentials are stored via the DSH Credentials service. The configuration list returns only a boolean indicating whether credentials are set—it does not return tokens or environment variables in plaintext. Editing supports retain, replace, and clear. Changing the connection target or credentials clears the Agent authorization for that service, requiring re-confirmation.
The management interface uses DSH’s authenticated same-origin /api/mcpstudio routes. Credentials are not passed through chat commands, nor stored in browser persistent storage. Errors and return values are sanitized with respect to known configuration secrets.
Installation & Activation¶
The plugin requires DSH version >=0.2.1-rc.2 <0.3.0-0. The verified host is DSH 0.2.1-rc.2. Local development uses Node.js 22 or higher; CI uses Node.js 24.
The installation command is as follows:
dsh plugin add github:luonianxin/dsh-mcp-studio
You can also use github:luonianxin/dsh-mcp-studio as the installation target in DSH’s plugin management tool. After installation, refresh the web page and navigate to Settings → MCP Services. Installation affects all sessions in the current profile.
Usage Workflow¶
- Add a service, choosing remote HTTP or local stdio; you can also paste
mcpServersJSON. - For remote services, enter the URL and select Bearer Token, custom Headers, or no authentication.
- Test the connection, review the capabilities returned by the server, then save.
- On the Tools page, browse tool names, descriptions, and input schemas, and manually enter JSON parameters for debugging.
- On the Agent Permissions page, explicitly grant access to a service and specific tools. New services do not expose tools to Agents by default.
Quotas & Limits¶
The plugin enforces the following limits on management requests and responses:
- Management request streaming read limit: 1 MiB; read timeout: 10 seconds.
- HTTP JSON response and single SSE event limit: 4 MiB.
- Response structure: maximum 20 levels, maximum 1,000 items per container, maximum 20,000 total nodes.
- Tool discovery: maximum 1,000 tools, 100 pages, with duplicate cursor detection.
- Maximum 100 managed services; at most 8 concurrent or queued operations.
- Headers and environment variable mapping: 64 KiB each.
- Credential sanitization cache is managed separately per service and per temporary probe; cleaned up on replacement, deletion, and shutdown.
- On shutdown, deregistration is revoked immediately and a cancellation signal is emitted; connection/queue cleanup waits at most 1 second; storage cleanup waits at most an additional 1 second.
- A single corrupted configuration entry is converted to a disabled state with an error displayed; remaining configurations continue to load.
Dependencies & Development¶
The project uses native JavaScript. The repository contains all runtime files—installation requires no compilation or build scripts. The package name @local/dsh-mcp-studio is an existing plugin identifier. It is currently distributed via GitHub and has not been published to npm. It is recommended to install from a pinned version released in the repository; do not manually modify the DSH profile.
The runtime dependency @modelcontextprotocol/sdk is pinned to 1.32.2. The client reuses the React provided by DSH and does not bundle a separate copy of React.
Local verification steps:
pnpm install --ignore-scripts --node-linker=hoisted
pnpm run check
pnpm test
The plugin runs in the same process as the Host.
Use Cases & Notes¶
DSH MCP Studio is suitable for scenarios requiring unified management of multiple MCP services, per-tool-granularity Agent permission control, and visualized connection debugging within DSH settings.
The plugin runs with the current DSH process privileges. Review the source code and license before installation.
Conclusion¶
DSH MCP Studio consolidates MCP service management, tool schema browsing, resource inspection, and Agent permission control into the DSH settings interface, reducing configuration complexity and facilitating maintenance of the MCP ecosystem in team or personal environments.
For more details and source code, refer to the plugin directory page and the GitHub repository:
- https://www.skillhub.cn/plugins/luonianxin/dsh-mcp-studio
- https://github.com/luonianxin/dsh-mcp-studio