Encapsulate Daemon as MCP and add OpenTeam MCP Server module - #61
Open
techdou wants to merge 4 commits into
Open
Encapsulate Daemon as MCP and add OpenTeam MCP Server module#61techdou wants to merge 4 commits into
techdou wants to merge 4 commits into
Conversation
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
feat: 添加 OpenTeam MCP Server 模块
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add OpenTeam MCP Server module (
@afumu/openteam-mcp), enabling AI agents to interact with the OpenTeam local daemon via the Model Context Protocol. Agents can manage group chats, configure roles, post tasks, and read results through a standardized MCP tool interface.Fixes #
Changes
packages/openteamcli/mcp/package with@afumu/openteam-mcpdefinition, including@modelcontextprotocol/sdkandzodas dependenciessrc/index.ts) with 12 tools:openteam_ping,openteam_status,openteam_doctoropenteam_chat_list,openteam_chat_get,openteam_chat_create,openteam_chat_activate,openteam_chat_initializeopenteam_roles_batch_add(supports temporary roles and multiple AI sites: deepseek, chatgpt, gemini, claude, grok)openteam_task_post,openteam_task_read,openteam_task_waitopenteam_run_create_and_post(create chat → add roles → post task → wait for replies, with chat reuse strategies)~/.openteam/control-token) and configurable command timeout.cursor/mcp.json) for development environment integrationmcp-config.example.json) for user referenceTest results
Manual testing steps:
cd packages/openteamcli/mcp && npm install && npm run build— verify TypeScript compiles without errorsopenteamcli daemon start)node dist/index.js) and verify tool discovery via an MCP clientopenteam_pingandopenteam_doctorto confirm daemon connectivityopenteam_run_create_and_postend-to-end: create a chat with roles, post a task, and read repliesRisk / blast radius
Low — This PR adds a new self-contained package under
packages/openteamcli/mcp/with no modifications to existing code. The MCP server is opt-in and only activates when explicitly configured. The daemon HTTP layer depends on the local daemon being running, so it gracefully fails if unavailable.Checklist
npm run verifypasses locally