본문으로 건너뛰기
F

tier0-dsh-mcp

freezonex/tier0-dsh-mcp

Connect DeepSeek Harness to Tier0 workspaces through MCP.

설치

dsh plugin --profile web add github:freezonex/tier0-dsh-mcp

README

Tier0 for DeepSeek Harness

Connect DSH to a Tier0 workspace using the official DSH MCP client. The connector discovers the tools exposed by the connected server, including whoami, docs, search and execute on the Tier0 Cloud MCP service.

连接 DSH 与 Tier0 工作空间,通过当前账号权限查询工业数据、查看数据源状态和管理资源。

Requirements

  • DSH 0.2.2-rc.1, 0.2.2-rc.2 or 0.2.2-rc.3 and Node.js 24.9.0 or newer.
  • A reachable Tier0 Cloud instance with its /mcp endpoint enabled.
  • A personal API key created in that instance. The key determines the workspace and access rights.

Install

dsh plugin --profile web add @tier0/dsh-mcp

Replace web with the name of an existing profile to install there. Restart DSH after installation.

The default endpoint is https://mcp.tier0.cn/mcp, Tier0's production service. Sign in at https://studio.tier0.cn and use a personal API key from that production instance. To connect another instance, first set url in the Tier0 plugin settings to its complete HTTPS MCP endpoint, then provide that instance's key. apiKeyEnv defaults to TIER0_API_KEY; toolCallTimeoutMs defaults to 120000.

Version 0.1.3 changes the default from development to production. Before upgrading, obtain a production API key and replace any development key in TIER0_API_KEY. If your profile explicitly saved a development URL, change it to https://mcp.tier0.cn/mcp when moving to production. Custom instance URLs remain unchanged; always pair the configured endpoint with a credential from that instance.

Version 0.1.4 adds compatibility with DSH 0.2.2-rc.3, preserving support for rc.1 and rc.2.

默认地址为 Tier0 生产环境。升级前请将开发环境 Key 替换为生产 Key;如果设置里显式保存了开发地址,迁移生产时一并修改。连接其他实例时,先填写完整 MCP 地址,例如 https://your-tier0.example/mcp,再使用该实例的个人 API Key。

Version 0.1.5 applies the installed official MCP client's configuration defaults before connecting, including the connection cleanup budget in rc.3. Production URL and supported DSH versions are unchanged.

To update an existing installation, run dsh plugin --profile web add @tier0/dsh-mcp@0.1.5, then restart DSH.

Credentials

The plugin reads the API key from the DSH process environment at activation. Enter the key value alone. Set it in the terminal used to launch DSH.

PowerShell 7

$env:TIER0_API_KEY = Read-Host 'Tier0 personal API key' -MaskInput
dsh --profile web

Bash

read -rs -p 'Tier0 personal API key: ' TIER0_API_KEY
export TIER0_API_KEY
printf '\n'
dsh --profile web

These examples retain the key for the current terminal session. Restart DSH after changing the key. Credential rotation and revocation are managed in Tier0.

Use

Ask DSH to call mcp__tier0__whoami and report the connected workspace. Then try “List the collections I can access” or “Inspect my data sources and summarize their status”.

需要确认身份时调用 whoami;缺少规则时用 docs 的 query 检索,缺少接口定义时用 search。已知有效接口可直接通过 execute 调用,无需重复检索。工具定义随服务端发现,实际能力取决于服务端和当前账号权限。

HTTP 401 requires a valid key for the configured instance. HTTP 403 indicates insufficient access. A missing TIER0_API_KEY prevents this plugin from connecting and produces a setup message. TLS certificates must be trusted by Node.js. Tool errors are returned to DSH by the official MCP client.

Use the connected deployment's current operation schemas and capacity limits. Limits for synchronous record transactions do not automatically apply to ordinary batches, sampling or metadata operations. Do not split an atomic transaction into independent writes to bypass a limit. A successful dry run validates the request; it does not commit writes. After a timeout, check the result or receipt before retrying and retain the required idempotency key.

Development

npm ci
npm test
npm pack

The package uses the host's @deepseek-ai/dsh-mcp-client peer dependency and ships a Cordis bundle patch, English and Chinese metadata, and the Tier0 icon. Compatibility is limited to the specified releases.

The packed 0.1.4 archive passed fresh Web-profile installation, full startup, four-tool discovery and a read-only production whoami call on Windows with DSH 0.2.2-rc.1, 0.2.2-rc.2 and 0.2.2-rc.3. The npm test suite checks invalid endpoints, missing credentials, accidental Bearer prefixes and preservation of the official client defaults. The packed 0.1.5 archive also passed fresh installation, full startup, four-tool discovery and production read-only whoami on all three supported DSH releases on 2026-11-16. Visual rendering of the settings page remains unverified.

License: MIT. Copyright 2026 FREEZONEX.

관련 플러그인