Preface¶
The common approach to using Notion in DSH is to install a Notion MCP plugin, enabling the agent to read and write pages and databases. If you have multiple local DSH workspaces corresponding to multiple Notion workspaces (e.g., separate setups for “Study” and “Work”), single-instance authorization is often insufficient. Solutions like dsh-notion-mcp typically retain only a single Notion authorization for the entire DSH environment; authorizing a second workspace overwrites the first. Furthermore, DSH lacks a built-in setting to “switch credentials by workspace.” The following section introduces the community plugin dsh-notion-workspaces, which implements mapping at the agent scope. This allows each DSH workspace to connect to its own Notion workspace via the official Notion MCP (https://mcp.notion.com).
What is this¶
dsh-notion-workspaces is a networking tool plugin for DeepSeek Harness, released by community maintainer hugo11032 (Directory page: SkillHub). In short: it configures Notion OAuth and MCP clients individually for each DSH workspace. Only the set of mcp__<serverName>__* tools bound to that workspace appears in the session; Notion tools will not appear for unbound workspaces.
Version 0.1.0, License MIT. The OAuth implementation is adapted from mingzeng’s dsh-notion-mcp. This plugin modifies the callback port and credential references to be assigned per binding (see the repository NOTICE for details). This plugin is an independent community work and is not affiliated with or endorsed by Notion Labs, Inc.
What gap does it fill¶
dsh-notion-mcp can connect DSH to Notion but holds only a single authorization for the entire DSH environment: the credential reference NOTION_OAUTH and serverName are hardcoded, and the MCP client is mounted at the global scope of the profile. Authorizing a second Notion workspace overwrites the first. DSH also lacks workspace-level credential scoping—<cwd>/.env has lower priority than the writable credential store, and the desktop host starts services for all workspaces at once.
This plugin writes the “DSH workspace path → Notion workspace authorization” mapping at the granularity DSH can provide: agent scope.
How it works¶
- One binding corresponds to: one workspace path, one Notion grant (independent credential ref, independent
serverName, independent OAuth callback port). - At
agent/created, the session’sheader.cwdis used to select the binding. - The MCP client is mounted in the context of that agent, so
mcp__<serverName>__*is only visible in sessions for that workspace.
The binding table is stored in $DSH_HOME/notion-workspaces.json; the secret for each authorization occupies a separate ref in the DSH credential store ($DSH_HOME/.credentials.yaml). Access tokens are refreshed in the background; agents holding rotated tokens will remount to avoid continuing with invalid tokens.
Installation and Activation¶
Refer to the repository README for the installation command (replace desktop with the profile where you actually run the agent, e.g., web, headless):
dsh plugin --profile desktop add github:moyu-777/dsh-notion-workspaces
The repository is pure JavaScript (lib/, client/) with no declared build scripts, so allowBuilds approval is generally not required.
Environment Requirements (from README):
- Profiles with a Web service (
desktoporweb, etc.) can use the settings interface; minimal profiles can still usedsh notion-workspaces login. - Node 22.13+.
- Access to
https://mcp.notion.com.
Configuration Steps¶
- Click Notion next to Settings at the bottom of the sidebar (or open the same editor via Settings → Notion Workspaces).
- Add a new binding and select the target DSH workspace from the list.
- Click Authorize. The browser opens the Notion consent page; approve the workspace you wish to connect. The callback lands on the running host’s
127.0.0.1:<port>. - Repeat the above steps for each DSH workspace that needs Notion. After successful binding, tools named like
mcp__notion_study__*will appear in that workspace’s session (serverNamedepends on the binding).
Status and Network Boundaries¶
| Content | Location |
|---|---|
| Binding table (workspace path → authorization) | $DSH_HOME/notion-workspaces.json |
| OAuth authorization for each binding | DSH credential store ($DSH_HOME/.credentials.yaml), one ref per binding |
| Diagnostic logs | $DSH_HOME/notion-workspaces-diag.log (can be deleted) |
The plugin reads and writes its own refs in the credential store; network access is limited to https://mcp.notion.com (OAuth discovery, dynamic client registration, token exchange and refresh, MCP streaming). No telemetry, no installation-time scripts, no other external hosts.
Known Limitations and Usage Notes¶
- Entry Point: The workspace row hover menu (
…) has no extension point, so configuration entries are limited to the Notion button at the bottom of the sidebar or the “Notion Workspaces” section in the settings page. - Permissions & Security: The plugin runs with the permissions of the current dsh process and will write to the credential store and configuration files under
$DSH_HOME. It is recommended to read the source code and the MIT license before installation to ensure the OAuth and MCP behaviors comply with your security policy. - Use Cases: Ideal for multi-workspace, multi-Notion teams/spaces where agent tool sets need to be isolated by workspace; it can also be used for single-workspace, single-Notion setups, but the primary value lies in “preventing authorizations from overwriting each other.”
Conclusion¶
dsh-notion-workspaces uses agent scope to separate Notion MCP access per DSH workspace, preventing a single global authorization from being overwritten by a subsequent OAuth flow. See the SkillHub plugin page for the directory and description; see GitHub for the source code and full documentation (for installation commands, refer to github:moyu-777/dsh-notion-workspaces in the README above).