feat: implement complete MCP tool suite (53 tools, 190+ tests)#1
Merged
feat: implement complete MCP tool suite (53 tools, 190+ tests)#1
Conversation
Phases 1-5 of the Go rewrite of cyborg-swarm: Phase 1 -- Hive + Swarm Mail: - 7 new hive tools (epic, query, start, ready, sync, sessions) - 10 swarm mail tools (init, send, inbox, reserve, release, ack) - 3 new DB tables (sessions, messages, reservations) Phase 2 -- Swarm Orchestration: - 24 swarm tools (decompose, spawn, worktree, review, insights) - Git worktree operations via os/exec - Prompt generators for decomposition, review, and evaluation Phase 3 -- Memory: - 8 memory tools (2 Dewey proxy + 6 deprecated stubs) - HTTP proxy client with structured DEWEY_UNAVAILABLE errors Phase 4 -- CLI: - doctor, stats, query, setup commands - Preset SQL analytics queries Phase 5 -- Parity Testing: - Shape comparison engine for JSON response validation - 20/20 tool fixtures match TypeScript response shapes Code review fixes: - Check DB error returns in swarm completion paths - Delete dead SQL injection code (joinStringsSQL) - Fix inbox LIKE query to use json_each() for exact matching - Use errors.Is(err, sql.ErrNoRows) idiomatically - Implement ready filter in hive_cells query - Pass build-time version to MCP server - Accept project_path in hive_sync tool 53 tools | 190+ tests | 15MB binary | zero runtime deps
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
Complete Go implementation of cyborg-swarm's multi-agent coordination tools across 5 phases.
Phase 1: Hive + Swarm Mail (US1 + US2)
hive_create_epic,hive_query,hive_start,hive_ready,hive_sync,hive_session_start,hive_session_endswarmmail_init,swarmmail_send,swarmmail_inbox,swarmmail_read_message,swarmmail_reserve,swarmmail_release,swarmmail_release_all,swarmmail_release_agent,swarmmail_ack,swarmmail_healthPhase 2: Swarm Orchestration (US3)
os/execPhase 3: Memory (US4)
hivemind_store,hivemind_find) + 6 deprecated stubsPhase 4: CLI (US5)
doctor,stats,query,setupPhase 5: Parity Testing (US6)
Metrics