feat: add MCP server for universal AI integrations - #229
Conversation
- Implement MCP server in mcp/ for Claude, OpenCode, Cursor, Gemini, VS Code Copilot, Devin, WorkBuddy, DeepSeek - Add support for TASKBOARD_THREAD_ID environment variable - Update skill documentation with ai integration guidance - Update cli taskctl to support TASKBOARD_THREAD_ID - Add comprehensive README for mcp server Co-authored-by: openhands <openhands@all-hands.dev>
Change breakdown — detailed notes1.
|
|
✅ Sincronizado com main O fork foi atualizado com as últimas alterações do upstream/main e o PR está pronto para merge. |
1 similar comment
|
✅ Sincronizado com main O fork foi atualizado com as últimas alterações do upstream/main e o PR está pronto para merge. |
|
Thanks for the contribution and for keeping the MCP server as a relatively thin layer over taskctl. |
Summary
This PR adds an MCP (Model Context Protocol) server and related improvements to enable universal AI integration with Codex Taskboard across multiple CLI tools and AI platforms.
Key Changes
MCP Server (
mcp/): A new Model Context Protocol server that exposes all Taskboard operations as MCP Tools, enabling integration with any AI platform that supports MCP (Claude, OpenCode, Cursor, Gemini, VS Code Copilot, Devin, WorkBuddy, DeepSeek, etc.)Thread Attribution Enhancement: Extended
cli/taskctl.mjsto supportTASKBOARD_THREAD_IDenvironment variable alongsideCODEX_THREAD_ID. Priority is now:--thread-id>TASKBOARD_THREAD_ID>CODEX_THREAD_ID.Skill Documentation Update: Updated
skills/manage-taskboard/SKILL.mdwith comprehensive AI integration guidance, including MCP server usage and non-Codex CLI support.Documentation:
mcp/README.mdwith detailed setup, configuration, and troubleshootingREADME.mdwith AI integrations sectionAGENTS.mdwith Setup, MCP registration, and runtime setup sectionsProblem Solved
Previously, AI integration was Codex-specific, requiring CDP injection and Codex-specific environment variables. This PR makes the Taskboard usable by any AI CLI or platform through:
taskctlCLITest plan
TASKBOARD_THREAD_ID,CODEX_THREAD_ID, or--thread-idImplementation Notes
The MCP server is fully isolated (
mcp/package.jsonis independent of root) and uses the existingtaskctlCLI for all operations, ensuring consistency with the main implementation. This follows the project's philosophy of minimal, direct changes.Files Changed
mcp/index.mjs- MCP server implementationmcp/taskctl-runner.js- Utility to spawn taskctlmcp/package.json- Package configurationmcp/README.md- MCP server documentationcli/taskctl.mjs- Thread attribution enhancementskills/manage-taskboard/SKILL.md- Skill documentation updateREADME.md- AI integrations sectionAGENTS.md- Setup and MCP registration guidance