Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(ci): cap mcp below 2.0 and unbreak the client lint
trohitg921ae5ce6c1d
diff --git a/client/src/contexts/WebSocketContext.tsx b/client/src/contexts/WebSocketContext.tsxindex 7f184a50..5f0f5648 100644--- a/client/src/contexts/WebSocketContext.tsx+++ b/client/src/contexts/WebSocketContext.tsx@@ -1640,10 +1640,14 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chinewStatus.status = 'running';newStatus.activeRuns = message.data?.active_runs || prev.activeRuns + 1;break;- case 'run_complete':// The deployment manager emits `run_completed` /// `run_failed` (see manager status callbacks); without// these cases activeRuns only ever incremented.+ //+ // Comment sits above the group, not inside it: a comment+ // between two case labels makes the first one non-empty,+ // and `no-fallthrough` then flags it as a missing break.+ case 'run_complete':case 'run_completed':case 'run_failed':newStatus.activeRuns = Math.max(0, message.data?.active_runs || prev.activeRuns - 1);diff --git a/server/pyproject.toml b/server/pyproject.tomlindex fd088a97..f961c6bf 100644--- a/server/pyproject.toml+++ b/server/pyproject.toml@@ -145,7 +145,15 @@ dependencies = [# MCP (Model Context Protocol) — host server for spawned CLI sessions# to discover and call OpenCompany tools (mcp__opencompany__*) the same way# VSCode's Claude Code extension does.- "mcp>=1.0.0",+ #+ # Capped below 2.0 deliberately. `services/cli_agent/mcp_server.py` imports+ # `mcp.server.fastmcp.FastMCP`, which 2.0.0 (released 2026-07-28) removed;+ # taking it unpinned fails that module at import with ModuleNotFoundError.+ # Because uv.lock is intentionally not committed, CI re-resolves this floor+ # on every run, so an unbounded constraint means an upstream major release+ # breaks the build with no change on our side -- which is exactly what+ # happened. Lift the cap together with the FastMCP migration.+ "mcp>=1.0.0,<2",# PTY transports — drive `claude` interactive TUI cross-platform.# POSIX uses ptyprocess (wraps forkpty) for `loop.add_reader`-friendly