# DETA 组合包(dsh bundle)配置层 # # 挂载方式:dsh plugin --profile add <本包> # 本层只做一件事:把 DETA 领域能力作为 MCP 服务挂进 harness。 # 工具以 mcp__deta__ 暴露(与 Codex 侧同名)。 # # 形态:本机 stdio(唯一管道)——与 Codex 插件共用同一个启动器 bin/deta-mcp.sh, # 由它解析领域服务运行时(DETA_SERVER_ROOT → ~/.deta/runtime → 本机开发检出)。 # 不校验 deta.city 账号、不隔离工作区;工作目录由 DETA_WORKSPACE 指定 # (缺省 ~/.deta/studio/workspace,实际值见启动器的 stderr 输出)。 # # 需要云侧能力(项目/楼栋列表、push/pull 同步、Studio 执行器中继)时注入: # DETA_TOKEN deta.city 门户令牌(node bin/deta-login.mjs 获取) # ANT_WORKSPACE_BRIDGE_URL 网关基址(与项目 ID 一起构成 host-call 中继三要素) # # 前置:设置 DETA_PLUGIN_ROOT 指向本包所在目录(未设置时启动器明确报错退出)。 # - insert: - id: deta-mcp name: '@deepseek-ai/dsh-mcp-client' config: serverName: studio_mcp transport: stdio command: bash args: - -lc - 'exec "${DETA_PLUGIN_ROOT:?请设置 DETA_PLUGIN_ROOT 指向 DETA 插件目录}/bin/deta-mcp.sh" --profile studio' env: DETA_PLUGIN_ROOT: !!js process.env.DETA_PLUGIN_ROOT ?? '' DETA_TOKEN: !!js process.env.DETA_TOKEN ?? '' DETA_WORKSPACE: !!js process.env.DETA_WORKSPACE ?? '' toolCallTimeoutMs: 600000 failOnStartupError: true