npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-mcp-scopes

v0.4.0

Published

MCP server manager for DeepSeek Harness: profile and workspace scopes, OAuth-ready connections, and a Settings page.

Readme

MCP servers for DeepSeek Harness

Connect external MCP servers from the Host, scope them to a profile or a workspace, and manage them from Settings.

What it does

  • Discovers tools over stdio and Streamable HTTP and registers them as mcp__<server>__<tool> (direct exposure) or reaches them through the bridge (catalog exposure, the default).
  • Two scopes. Profile servers come from $DSH_HOME/plugins/mcp-manager/<profile>.json; workspace servers come from <workspace>/.dsh/mcp.json.
  • A workspace entry shadows a profile entry with the same name, and disableProfileServers hides inherited servers for that workspace only.
  • Tools register in each Agent's scope, so a workspace's servers never appear in another workspace's sessions.
  • Bearer tokens come from the credentials store: an environment-style reference in the Authorization header, or a stored record.
  • A Settings section lists every server with a status pill, type and auth chips, search, a labeled Details control that opens its tools and credential actions, and a row actions menu. Servers are added, edited, enabled, disabled, and deleted in either scope.
  • The add and edit form asks for Local command or Remote URL, takes one argument per line, and edits headers or environment variables as key and value rows.
  • OAuth sign-in opens a browser tab, uses PKCE and dynamic client registration, refreshes tokens, and falls back to a pasted redirect URL when the browser cannot reach the loopback callback.
  • Bearer tokens can be pasted in the page after saving a server; the value is stored in the credentials store and never returned to the page.
  • Per-server toolPolicy allows and denies tools by wildcard (get*).
  • Two exposure modes. Catalog, the default, replaces a server's individual tool definitions with one compact prompt catalog plus three bridge tools: mcp_search finds a tool by what it does, mcp_describe returns exact schemas, and mcp_call(server, tool, arguments) runs the tool. A 100-tool server costs roughly 40K tokens of tool definitions under direct exposure and about 2K tokens of catalog under catalog exposure. Set dsh.exposure.<server>: "direct" to register a server's tools individually with their full schemas again; the policy still applies either way, and a server's own instructions text only enters the prompt in direct mode.

Screenshots

These screenshots come from the plugin's visual harness, which renders the page with sample server data.

Server list

MCP server list with connection statuses and workspace selector

Add a server

Form for adding a remote MCP server

Mobile view

MCP server list on a mobile screen

Dark empty state

Empty MCP server list in dark mode

Install

  1. Open Plugins in DeepSeek Harness and select Add plugin.
  2. Enter dsh-mcp-scopes as the package name and install it.
  3. Open Settings > MCP servers. Restart DSH if the plugin manager asks you to do so.

This package is a DeepSeek Harness plugin. Installing it in an unrelated Node.js project does not add it to your DSH profile.

Add a server

  1. In Settings > MCP servers, select All workspaces for a profile-wide server, or choose a registered workspace for a workspace-only server.
  2. Select Add server, choose a local command or remote URL, and fill in the connection details.
  3. Save the server. If it needs authentication, open Details and save a bearer token or start OAuth sign-in.
  4. Check the server status and available tools in Details. Tools are named mcp__<server>__<tool>.

Install from a local checkout

npm install
npm run bundle

In DSH, open Plugins > Add plugin and choose the checkout directory. The profile links that directory, so keep its node_modules/ in place. Restart DSH after rebuilding the Host code.

Configuration

Files are written in the mcpServers shape used by Claude, Cursor, and Claude Desktop, so a server entry can be copied in either direction. Plugin-only settings live under a top-level dsh key that other clients ignore.

Profile file: $DSH_HOME/plugins/mcp-manager/<profile>.json. It is created with mode 0600 on the first save.

{
  "mcpServers": {
    "example-crm": {
      "type": "http",
      "url": "https://api.example.com/mcp",
      "headers": { "Authorization": "Bearer ${EXAMPLE_MCP_TOKEN}" }
    },
    "local-files": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/parth/Projects"]
    },
    "notion": {
      "type": "http",
      "url": "https://mcp.notion.com/mcp"
    }
  },
  "dsh": {
    "toolPolicy": { "example-crm": { "allow": ["crm_*"], "deny": ["crm_delete_*"] } },
    "timeouts": { "example-crm": { "connectMs": 15000 } }
  }
}

Workspace file: <workspace>/.dsh/mcp.json. You can commit it with the repository, but do not put secrets in the file.

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": ["-y", "@stripe/mcp", "--tools=all"]
    }
  },
  "dsh": {
    "disableProfileServers": ["notion"]
  }
}

A workspace stdio entry runs in the workspace directory, so a relative cwd, command path, or argument path resolves against the project it is configured for rather than the Harness process directories. A profile entry keeps the process working directory, so a path there must be absolute.

Local entries use command plus args. A command array such as ["npx", "-y", "pkg"] and environment are accepted too. Remote entries use type: "http" or a bare url. sse is not supported and reports the server name.

Other shapes are read and normalized:

  • mcpServers (Claude, Cursor, Claude Desktop)
  • mcp.servers with type: local|remote (OpenCode V2)
  • a flat mcp map (OpenCode V1)
  • servers with type: stdio|http (VS Code)

Writes always use the mcpServers shape.

disabled: true or enabled: false keeps a server configured without connecting it. dsh.auth holds none and oauth details that the standard shape cannot express; a bearer token is carried by the Authorization header reference.

Environment references use ${NAME}, ${NAME:-default}, or {env:NAME}. The credential store is checked first, then the process environment. The page writes the reference, never the token.

toolPolicy.allow and toolPolicy.deny accept exact names or wildcards. Deny wins; an empty allow list means all tools.

Status

Connected, Connecting, Configured, Sign-in required, Token missing, Error, and Disabled are visible in the page. The page polls every two seconds while mounted. Failed connections retry with bounded backoff and never block Host startup or a session.

Security

  • Tokens saved through the token field live in the credentials store and are not returned in RPC responses. Do not paste secrets into configuration headers or environment values.
  • Stdio children receive the scrubbed parent environment plus the entry's env.
  • OAuth uses a loopback callback on 127.0.0.1, PKCE S256, and a single-use state that expires after three minutes. A pasted redirect URL is validated against the same state.
  • Signing out deletes the grant. A rejected refresh moves the row back to Sign-in required and removes its tools.
  • Headers and environment values are configuration, not credentials; use the token field for secrets.

Development and publishing

Build and check the package before publishing. The build output must exist before running npm publish.

npm install
npm test
npm pack --dry-run
npm publish

Publishing requires an npm account with permission to publish dsh-mcp-scopes. Push the README and screenshots to the repository before publishing so the screenshot URLs work on npm.

Other development commands:

npm run bundle     # write lib/host.js and lib/client.js
npm run typecheck  # tsc --noEmit
npm test           # bundle, typecheck, node --test

Test manually

  1. Install and open Settings, section MCP servers.
  2. Add a streamable HTTP server with a URL and a token. Confirm the row reaches Connected.
  3. Expand the row, save a token, and confirm the tools appear.
  4. Add an OAuth server, click Sign in, finish in the browser, and confirm the row reaches Connected.
  5. Start a session and call one tool.
  6. Add a workspace server in another repository and confirm it appears only there.
  7. Restart DSH and confirm connection state and OAuth grants survive.