Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(mcp-host): project GFS image sources for Grok as tool sources
Alfredo Lopezb9c7fbbde19b
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 88ca0c35a..89c3be23a 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.447",+ "version": "0.1.448","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.447",+ "version": "0.1.448","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 3f2614c66..1afe24588 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.447",+ "version": "0.1.448","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/llm/grokSubscription.ts b/mcp-host/src/llm/grokSubscription.tsindex ee6e687ab..217dec4c8 100644--- a/mcp-host/src/llm/grokSubscription.ts+++ b/mcp-host/src/llm/grokSubscription.ts@@ -174,6 +174,13 @@ function projectImageSource(if (!source.toolCallId?.trim()) throw imageSourceError('empty toolCallId')return { kind: 'tool', attachmentId: source.attachmentId, toolCallId: source.toolCallId }}+ // A GFS read (#670) is a tool result: the contract names it by its read's+ // attachment and tool call, as Codex does.+ if (source.kind === 'gfs') {+ if (!source.attachmentId?.trim()) throw imageSourceError('empty attachmentId')+ if (!source.toolCallId?.trim()) throw imageSourceError('empty toolCallId')+ return { kind: 'tool', attachmentId: source.attachmentId, toolCallId: source.toolCallId }+ }throw imageSourceError('unknown source kind')}