menotbobbybrown/dsh-plugin-mcp ↗★ 0
dsh-plugin-mcp
用于 DeepSeek Harness 的通用模型上下文协议(MCP)桥接插件
AI 分析
核心用途是桥接 MCP 服务。适合需要在 DSH 中配置和调用符合 MCP 规范的第三方工具(如 GitHub、文件系统、PostgreSQL 等)的用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Configuration
Add the plugin to your dsh.config.yaml:
plugins:
mcp:
prefixToolNames: true
prefixDelimiter: "_"
defaultTimeoutMs: 60000
servers:
# GitHub MCP Server
github:
type: stdio
command: npx
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "${GITHUB_TOKEN}"
# Local Filesystem MCP Server
filesystem:
type: stdio
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "./workspace"]
# PostgreSQL Database MCP Server
postgres:
type: stdio
command: npx
args: ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/mydb"]
# Remote MCP Server via SSE
remote_service:
type: sse
url: "https://mcp.example.com/sse"
headers:
Authorization: "Bearer ${API_KEY}"
Programmatic Usage (Cordis API)
import { Context } from 'cordis';
import * as McpPlugin from 'dsh-plugin-mcp';
const ctx = new Context();
ctx.plugin(McpPlugin, {
servers: {
github: {
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-github'],
},
},
});
// Access registered MCP tools & services
const tools = await ctx.mcp.getAllTools();
const statuses = ctx.mcp.getStatuses();