dsh-a2a

by kouyichi

工具与能力github收录于 08-21

dsh 原生 A2A 服务:通过 HTTP JSON-RPC 将本 dsh 暴露为可调用的代理。

Native A2A (Agent-to-Agent) server for dsh: expose this dsh as a callable agent over HTTP with JSON-RPC tasks.

安装

dsh plugin --profile web add github:kouyichi/dsh-plugins#path:/dsh-a2a

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

把 dsh 暴露为 A2A v1.0(Agent-to-Agent,JSON-RPC over HTTP)agent——其他 agent(Hermes 等)可直接调 tasks/send 让本 dsh 干活。生态空白:截至 2026-08-16 无第三方 A2A server(官方示例只覆盖 ACP/JSON-RPC)。

工具

工具 功能
a2a_start 启动 server(默认 127.0.0.1:9917;require_token=true 加 Bearer 认证)
a2a_stop / a2a_status 停止 / 状态
a2a_tasks 任务列表与状态

协议

  • tasks/send {id, message:{role, parts:[{type:"text",text}]}} → Task
  • tasks/get / tasks/cancel / tasks/list / agent/get

每个任务独立 agent 执行(会话落盘可审计)。token 优先读 DSH_A2A_TOKEN 环境变量;DSH_A2A_AUTOSTART=1 可在启动时自动开。

示例(curl)

curl -s -X POST http://127.0.0.1:9917 -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tasks/send","params":{"id":"t1","message":{"role":"user","parts":[{"type":"text","text":"运行 echo hello"}]}}}'

原始 README: https://github.com/kouyichi/dsh-plugins/blob/main/dsh-a2a/README.md ↗