aiworkskills/deepseek-harness-server--packages-dsh-integration1

@dshserver/dsh-integration

OAuth-scoped business tools and authorization guard for DeepSeek Harness

AI Analysis

提供基于OAuth Token交换的业务工具访问与授权验证。适合需要在DSH中集成企业内部业务API、并进行严格角色与数据范围控制的安全部署场景。

Package
@dshserver/dsh-integration
Version
0.1.0
License
MIT
Last updated
Aug 26, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

部署输入(src/config.ts

名称类型必填默认值说明
brokerUrlstring内部 OAuth Token Exchange 服务地址
tokenEndpointPathstring/internal/oauth/tokenToken Exchange 路径
businessApiUrlstring业务 Resource Server 地址
businessApiAudiencestringurn:dshserver:business-api交换后 Token 的目标资源
runtimeLeaseFilestring当前独立 Runtime 的 0600 租约文件
scopesstring[][]Gateway 验证后写入的 Scope 上限
exposedToolsstring[][]当前 Agent Preset 可见的业务工具白名单
readScopecustomers:read:self | customers:read:team当前角色的数据读取范围
requestTimeoutMsnumber15000初始请求超时,范围 1000120000
writeOperationsEnabledbooleantrue初始写操作总开关
minimumWriteReasonLengthnumber2初始最短变更原因字符数,范围 2200

连接地址、Audience、租约、Scope 和工具白名单属于部署或策略输入,不能由普通用户修改。

租户级设置(src/connector-settings.ts

最后三项同时注册到 DSH 原生 Settings 的 dshserver-integration 命名空间。只有具备 assistant:platform:write 的平台管理员可以写入,保存后同租户的活动 Runtime 立即读取 新值,无需重启。

名称类型默认值取值范围
requestTimeoutMsnumber150001000120000
writeOperationsEnabledbooleantrue
minimumWriteReasonLengthnumber22200

@dshserver/dsh-preferences 通过 DSH 原生插件设置槽位渲染这张配置卡片。

完整配置说明见配置参考