虚拟助手插件集成工具

OpenCode提供插件和MCP服务器,用于与虚拟助手服务集成,支持TTS通知和代理中心功能。

  • by Olbrasoft
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 Olbrasoft/opencode

使用说明

OpenCode

用于VirtualAssistant集成的OpenCode插件和MCP服务器。

结构

opencode/
├── plugins/                      # OpenCode plugins
│   └── opencode-notify-plugin/   # TTS notification plugin
└── mcp-servers/                  # MCP (Model Context Protocol) servers
    └── opencode-hub-plugin/      # Agent hub integration

插件

opencode通知插件

用于向VirtualAssistant服务发送TTS通知的OpenCode插件。

  • 类型: OpenCode插件(@opencode-ai/plugin)
  • 地点: plugins/opencode-notify-plugin/
  • 工具: notify({ text: "..." })
  • API http://localhost:5055/api/tts/notify

阅读更多→

MCP服务器

opencode中心插件

MCP服务器,用于OpenCode与VirtualAssistant代理中心的集成。

  • 类型: MCP服务器(@modelcontextprotocol/sdk)
  • 地点: mcp-servers/opencode-hub-plugin/
  • 工具: hub_start, hub_progress, hub_complete, hub_check
  • API http://localhost:5055/api/hub

阅读更多→

有什么区别?

插件 MCP服务器
建筑 在OpenCode进程内运行 作为单独进程运行
沟通 直接函数调用 JSON-RPC通过stdio
语言 仅限JavaScript/TypeScript 语言无关
隔离 共享进程 进程隔离
用例 简单、快速的集成 复杂的服务、外部系统

文档

发展

每个插件/服务器都有自己的 package.json 并且可以独立开发:

# Notify plugin
cd plugins/opencode-notify-plugin
npm install
npm run build          # Automatically deploys to ~/virtual-assistant/opencode/

# Hub MCP server
cd mcp-servers/opencode-hub-plugin
npm install
npm run build          # Automatically deploys to ~/virtual-assistant/opencode/

# Deploy all projects
./deploy-all.sh

自动部署

所有项目使用 烧伤后挂钩 用于构建后的自动部署。看 部署指南 了解详情。

相关项目

许可证

麻省理工学院