dsh-mcp-lazy: On-Demand MCP Tool Loading for DSH Sessions
Introducing the community plugin @liuhange/dsh-mcp-lazy: In DeepSeek Harness, by default only the MCP tool schemas within the coreTools whitelist are retained, while all others are removed from context via session-level tools.restrict. When needed, the model activates them by calling lazy_load_tool. This covers installation (profile bundles and npm install), configuration of cordis and dsh-mcp-lazy.json, pre-execution interception and the typical invocation flow, and explains applicable scenarios, boundaries, and security considerations.
Read MoreDeepSeek Harness Plugin: dsh-mcp-lazy
`dsh-mcp-lazy` is a plugin for DeepSeek Harness designed to address the problem of native MCP plugins consuming a large number of tokens and maintaining a persistent memory footprint. It introduces a single proxy tool that uses lazy loading and idle disconnection mechanisms to start the corresponding server only when invoked. It supports metadata disk caching, token savings measurement, and configuration migration, significantly reducing context space consumption. Users should note the Node.js version requirements and token savings thresholds, and it is recommended to validate the setup before enabling it.
Read Moredsh-mcp-lazy: DSH's Lazy-Loading MCP Plugin, Reducing Token Waste by Disclosing Tool Schemas on Demand
# Introduction The philosophy of DSH (DeepSeek Harness) is "everything is a plugin." Developers often install multiple MCPs on it, such as files, browsers, and databases. This incurs a specific cost: even if the current problem only requires file tools, all MCP tool names, descriptions, and parameters may enter the model context simultaneously. The more MCPs installed, the more tokens are consumed per round. Below is an introduction to leaforbook/dsh-mcp-lazy, a DSH plugin designed to hide descriptions of temporarily unused tools and load them when the task requires them. # What is it dsh-mcp-lazy (npm package name `@yilinxiao/dsh-mcp-lazy`) is an MCP for DeepSeek Harness (DSH).
Read More