Skip to main content
Glama

DSH Plugin Toolkit

5-Schichten-Infrastruktur und Plugin-Loop-Entwicklungspipeline. Der Kern hat keinerlei Laufzeitabhängigkeiten; die Bridge-Schicht basiert auf dem offiziellen @modelcontextprotocol/sdk.

Fünf-Schichten-Architektur (v2)

Schicht

Verzeichnis

Beschreibung

L1 MCP Bridge

src/bridge/

Offizielles MCP-SDK: McpServer.registerTool + StdioServerTransport, nativ kompatibel mit allen MCP-Clients wie Claude/Cursor; server-lite.ts behält die handgeschriebene Version ohne Abhängigkeiten bei

L2 A2A Cards

src/a2a/

Entspricht der Google-A2A-v1.0-Spezifikation; dsh a2a serve startet einen echten A2A-Server auf Basis von @a2a-js/sdk (JSON-RPC + REST, Skill-Level-Routing)

L3 Loop Engineering

src/loop/

6 Validatoren + dreidimensionale heuristische Selbstkritik + lineares Backoff-Retry (durch Unit-Tests abgedeckt)

L4 Cost Governance

src/cost/

Drei-Ebenen-Budget-Zustandsmaschine OK→WARNING→CRITICAL→EXCEEDED; bei Überschreitung wird CostExceededError ausgelöst und blockiert

L5 Multi-Agent-Demo

src/employees/, src/agents/

Deterministische Orchestrierung per Seed-PRNG, 4-Phasen-Parallelplanung

Die Plugin-Erkennung erfolgt über einen dreistufigen Fallback: vollständige cordis.yml → nur Laufzeit-Anzahl (count-only) → Regex-Extraktion aus dem Quellcode (regex). Alle Tools verwenden einen gemeinsamen Vertrag: MCP-Eingabeparameter { input_data: string }.

Related MCP server: finance-agent

Schnellstart

npm install
npm run build          # 编译核心 + 全部插件

npx dsh list           # 列出发现的插件与工具
npm test               # 单元测试 (node:test, 9 cases)
npx dsh bridge         # 启动官方 SDK MCP stdio 服务器
npx dsh a2a gen        # 生成 a2a-cards/*.agent-card.json (A2A v1.0)
npx dsh a2a serve      # 启动真实 A2A v1.0 服务器 (:41241)
npx dsh llm models     # 列出本地 Ollama 模型(免费推理)
npx dsh llm ask "..."  # 本地 LLM 生成 + L3 验证循环
npx dsh demo carbon [--llm]  # L5 多Agent Demo(--llm 用本地 Ollama 真实合成)
npx dsh serve [port]   # REST 网关: POST /invoke,API-Key 计费 + 限流 (:8787)
npx dsh registry gen   # 市场目录: registry.json + index.html

Integrierte Plugins (20)

Finanzen: invoice-calc / loan-calc / invest-growth / salary-tax / fx-rates Daten & Entwicklung: csv-stats / json-format / regex-lab / codec-kit / text-diff / date-math Inhalte & Marketing: seo-audit / text-summary / readability / markdown-report Lebenswerkzeuge: health-metrics / unit-convert / color-kit / pass-forge Vertikale Branchen: carbon-baseline

Neue Plugins im Loop entwickeln

npx dsh scaffold my-tool   # 生成 plugins/dsh-tool-my-tool/
npm run build              # 编译后即刻被 Bridge/A2A/Demo 发现
npx dsh list               # 验证

Implementiere den handler in der generierten src/index.ts: Eingabeparameter ist input_data: string, Rückgabewert ist eine Zeichenkette. Ein Haftungsausschluss am Ende der Ausgabe genügt, um alle Validatoren zu bestehen.

Budgetkonfiguration

Lege dsh.budget.json im Stammverzeichnis des Projekts ab:

{ "monthly": 5000000, "user": 200000, "plugin": 50000 }

Ohne Konfiguration gibt es keine Beschränkung (die Nutzung wird nur nachverfolgt).

Veröffentlichungswege

  • MCP-Marktplatz: Nach npm pack an MCP-Clients wie Claude Desktop / Cursor anschließen (Einstiegspunkt dist/bridge/server.js, offizielle SDK-Implementierung); Debugging mit npx @modelcontextprotocol/inspector node dist/bridge/server.js möglich

  • Koishi-Plugin-Marktplatz: npx dsh pack <plugin> erzeugt ein Veröffentlichungspaket, das den Marktplatz-Spezifikationen entspricht (koishi-plugin-*-Namenskonvention, peerDependencies.koishi, koishi-Metadatenfeld); cd publish/<name> && npm publish veröffentlicht es im Marktplatz

  • A2A-Registry: a2a-cards/ ist direkt kompatibel mit der Google-A2A-v1.0-Spezifikation; kann mit der offiziellen @a2a-js/sdk ClientFactory verwendet werden

CI

.github/workflows/ci.yml: build → Unit-Tests → Plugin-Auffindung/A2A/pack-Smoke-Tests → MCP-Protokoll-Smoke-Tests → deterministische Prüfung.

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    A unified MCP server providing AI agents with 40+ developer APIs including geolocation, crypto prices, DNS lookup, and web scraping. Enables natural language access to various tools through a single gateway.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to call deterministic finance tools (compound interest, loan payment, currency conversion, etc.) through MCP, with a shared tool registry used by both the agent loop and MCP clients.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Exposes 25 paid API endpoints as MCP tools for AI agents, with payments in USDC on Base mainnet via the x402 protocol, enabling tasks like web search, company intelligence, and crypto research.
    25
    68
    MIT

View all related MCP servers

Related MCP Connectors

  • Agentic Finance: 500+ tools for AI agents over x402 or MPP, free via PoW, or prepaid card credits

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

  • 100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chengganping-ship-it/dsh-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server