The open-source agent harness - the runtime layer that turns an LLM into a working agent.
Pin mcp 1.x in the sandbox image for Code Mode types (#321)
Bhavesh Patel08700d1c32ae
diff --git a/.changeset/sandbox-mcp-types-pin.md b/.changeset/sandbox-mcp-types-pin.mdnew file mode 100644index 000000000..f76e6e401--- /dev/null+++ b/.changeset/sandbox-mcp-types-pin.md@@ -0,0 +1,5 @@+---+'@truefoundry/trueforge-core': patch+---++Pin `mcp==1.29.0` in the sandbox image so Code Mode can import `mcp.types`.diff --git a/.github/fern/openapi/openapi.json b/.github/fern/openapi/openapi.jsonindex 531098b55..f48a44191 100644--- a/.github/fern/openapi/openapi.json+++ b/.github/fern/openapi/openapi.json@@ -4185,7 +4185,7 @@"info": {"description": "HTTP API for the TrueForge agent server (`/api/v1`). Interactive docs are served at `/api/v1/docs` (OpenAPI JSON at `/api/v1/openapi.json`).\n\n**Authentication:** Standalone deployments (no OIDC) accept requests without credentials — middleware stamps a local default user. When OIDC is configured, protected routes require a valid `id_token` cookie or `Authorization: Bearer` ID token. There is no built-in API-key scheme; pass custom headers only if your reverse proxy or IdP layer requires them.\n\nCovers DB-backed sessions, the agent registry, settings catalogs, and model/MCP/skill/sandbox providers.","title": "TrueForge API",- "version": "0.1.1"+ "version": "0.1.2"},"openapi": "3.1.0","paths": {diff --git a/docs/openapi.json b/docs/openapi.jsonindex 531098b55..f48a44191 100644--- a/docs/openapi.json+++ b/docs/openapi.json@@ -4185,7 +4185,7 @@"info": {"description": "HTTP API for the TrueForge agent server (`/api/v1`). Interactive docs are served at `/api/v1/docs` (OpenAPI JSON at `/api/v1/openapi.json`).\n\n**Authentication:** Standalone deployments (no OIDC) accept requests without credentials — middleware stamps a local default user. When OIDC is configured, protected routes require a valid `id_token` cookie or `Authorization: Bearer` ID token. There is no built-in API-key scheme; pass custom headers only if your reverse proxy or IdP layer requires them.\n\nCovers DB-backed sessions, the agent registry, settings catalogs, and model/MCP/skill/sandbox providers.","title": "TrueForge API",- "version": "0.1.1"+ "version": "0.1.2"},"openapi": "3.1.0","paths": {diff --git a/packages/trueforge-core/scripts/sandbox/sandbox.Dockerfile b/packages/trueforge-core/scripts/sandbox/sandbox.Dockerfileindex 7782ec213..5e61cbf6c 100644--- a/packages/trueforge-core/scripts/sandbox/sandbox.Dockerfile+++ b/packages/trueforge-core/scripts/sandbox/sandbox.Dockerfile@@ -32,6 +32,7 @@ RUN apt-get update \&& python -m pip install --no-cache-dir \aiohttp==3.14.1 \genson==1.3.0 \+ mcp==1.29.0 \nats-py==2.15.0 \openpyxl==3.1.5 \pandas==3.0.5 \diff --git a/packages/trueforge-core/src/core/sandbox/scripts/mcp_client.py b/packages/trueforge-core/src/core/sandbox/scripts/mcp_client.pyindex 6725871a0..b942acde5 100644--- a/packages/trueforge-core/src/core/sandbox/scripts/mcp_client.py+++ b/packages/trueforge-core/src/core/sandbox/scripts/mcp_client.py@@ -1,7 +1,7 @@#!/usr/bin/env python3# /// script-# dependencies = ["pydantic==2.12.5", "nats-py==2.15.0"]+# dependencies = ["mcp==1.29.0", "pydantic==2.12.5", "nats-py==2.15.0"]# ///import os