Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(mcp-host): log the resolved context window under a key the logger keeps

Alfredo Lopez40818ba5c143
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 69a172cf9..cf4ea675d 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.441",
+ "version": "0.1.442",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.441",
+ "version": "0.1.442",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index efdd06341..7c2897178 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.441",
+ "version": "0.1.442",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/agent/__tests__/taskExecutor.test.ts b/mcp-host/src/agent/__tests__/taskExecutor.test.ts
index 06a838ca4..1d7c94beb 100644
--- a/mcp-host/src/agent/__tests__/taskExecutor.test.ts
+++ b/mcp-host/src/agent/__tests__/taskExecutor.test.ts
@@ -2499,7 +2499,7 @@ describe('TaskExecutor subscription context window (#731 R3-4)', () => {
taskId: expect.any(String),
provider: 'codex-subscription',
model: 'gpt-5.5',
- contextWindowTokens: 256_000,
+ contextWindow: 256_000,
source: 'default',
},
{
@@ -2508,7 +2508,7 @@ describe('TaskExecutor subscription context window (#731 R3-4)', () => {
taskId: expect.any(String),
provider: 'grok-subscription',
model: 'gpt-5.5',
- contextWindowTokens: 500_000,
+ contextWindow: 500_000,
source: 'catalog',
},
])
diff --git a/mcp-host/src/agent/taskExecutor.ts b/mcp-host/src/agent/taskExecutor.ts
index eb79e9f9f..7fb4f8436 100644
--- a/mcp-host/src/agent/taskExecutor.ts
+++ b/mcp-host/src/agent/taskExecutor.ts
@@ -1007,7 +1007,8 @@ export class TaskExecutor {
taskId: this.taskId,
provider,
model: this.deps.modelName,
- contextWindowTokens,
+ // Not `contextWindowTokens`: the logger redacts every key matching /token/i.
+ contextWindow: contextWindowTokens,
source,
},
'Context window resolved for the task'