Skip to content

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

TypeScript

docs(mcp-host): note that the counted legacy prompt differs only in its timestamp

Alfredo Lopez4579d453b627
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index fc33b81a3..2b1b9f464 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.439",
+ "version": "0.1.440",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.439",
+ "version": "0.1.440",
"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 a98d7332d..893808369 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.439",
+ "version": "0.1.440",
"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/taskExecutor.ts b/mcp-host/src/agent/taskExecutor.ts
index f1116b42f..eb79e9f9f 100644
--- a/mcp-host/src/agent/taskExecutor.ts
+++ b/mcp-host/src/agent/taskExecutor.ts
@@ -1477,7 +1477,10 @@ export class TaskExecutor {
// request that presents `tools`, for the context manager to count. The
// cache path sends the parts it built once, joined as `LlmPortAdapter`
// joins them, whatever the loop presents; the legacy path runs the builder
- // `DefaultReasoningPort` runs, over the presented list.
+ // `DefaultReasoningPort` runs, over the presented list. That builder stamps
+ // `new Date().toISOString()`, so the counted copy carries a different
+ // timestamp from the sent one; the ISO string is always 24 characters, so
+ // the byte count, which is all the gauge reads, is the same.
let systemPromptFor: (tools: ToolDefinition[]) => string
if (parts) {
const cachedPrompt = [parts.stable, parts.context].filter(s => s.length > 0).join('\n\n')