Repository navigation
feat(local-agent): add MCP server install/uninstall via HTTP sync channel - #290
Merged
Merged
Conversation
…nnel Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
m0Nst3r873
force-pushed
the
worktree-feat-mcp-sync
branch
from
August 24, 2026 09:33
a42e663 to
ceb81fb
Compare
HTTP-mode teams have no repo tree: their MCP servers are delivered through the local-agent install_mcp channel and recorded in the same managed-mcp.json that reconcileMcpForConfig prunes against. On every session-start sync the desired set was therefore always empty, so the prune loop deleted every HTTP-installed server on the second sync. Guard the reconcile with `kind === 'http' && !removeAll` so the session-start path is a no-op for HTTP teams, while the explicit removeAll teardown (teamai uninstall) still cleans them up. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
jeff-r2026
self-requested a review
August 26, 2026 10:33
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…nnel (Tencent#290) * feat(local-agent): add MCP server install/uninstall via HTTP sync channel Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix(mcp-reconcile): skip desired-set prune for http-mode teams HTTP-mode teams have no repo tree: their MCP servers are delivered through the local-agent install_mcp channel and recorded in the same managed-mcp.json that reconcileMcpForConfig prunes against. On every session-start sync the desired set was therefore always empty, so the prune loop deleted every HTTP-installed server on the second sync. Guard the reconcile with `kind === 'http' && !removeAll` so the session-start path is a no-op for HTTP teams, while the explicit removeAll teardown (teamai uninstall) still cleans them up. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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
install_mcp/uninstall_mcpcommand support to the HTTP local-agent sync channel, enabling Hatchery to distribute MCP servers (e.g. ClawPro) to AI coding toolsuser_level.mcpsandworkspaces[].mcpsin the report payload, scanning frommanaged-mcp.jsonrenderJsonEntry,renderCodexBlock) and I/O primitives (readJsonDoc,spliceCodexBlock) — no changes to the git-based reconcile engineKey design decisions
context.tool), unlike git-based reconcile which writes to all toolsmanaged-mcp.jsonProtocol reference
See
clawpro/hatchery-teamai-mcp-protocol.mdfor the full Hatchery ↔ TeamAI MCP protocol spec.Test plan
npx tsc --noEmit— type check passesnpx vitest run— 148 test files, 1952 tests pass (0 failures)src/__tests__/local-agent-mcp.test.tswith 13 e2e test cases:🤖 Generated with Claude Code