Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(mcp-host): guide GFS resource discovery
Alfredo Lopez30f4910cce16
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 10cb1d7b7..679ca3bdb 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.482",+ "version": "0.1.483","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.482",+ "version": "0.1.483","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 30b90dae3..01f45cfd7 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.482",+ "version": "0.1.483","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/core/reasoning/__tests__/promptBuilder.test.ts b/mcp-host/src/core/reasoning/__tests__/promptBuilder.test.tsindex 1dd7cb564..c65bfbfdb 100644--- a/mcp-host/src/core/reasoning/__tests__/promptBuilder.test.ts+++ b/mcp-host/src/core/reasoning/__tests__/promptBuilder.test.ts@@ -44,6 +44,7 @@ describe('DefaultPromptBuilder — governed GFS workspace files', () => {const builder = new DefaultPromptBuilder()const msg = builder.buildSystemPrompt([tool('clerum__gfs_download')])expect(msg.content).toContain(GFS_WORKSPACE_FILE_GUIDANCE_TEXT)+ expect(msg.content).toContain('never invent a resourceId')expect(msg.content).toContain('write outputs outside `.gfs-downloads`')})diff --git a/mcp-host/src/core/reasoning/promptBuilder.ts b/mcp-host/src/core/reasoning/promptBuilder.tsindex bca852bd1..cd70e1bd7 100644--- a/mcp-host/src/core/reasoning/promptBuilder.ts+++ b/mcp-host/src/core/reasoning/promptBuilder.ts@@ -62,6 +62,7 @@ export const DESKTOP_ENVIRONMENT_HINT =* tool is registered; the per-result `usage` object remains authoritative.*/export const GFS_WORKSPACE_FILE_GUIDANCE_TEXT =+ 'GFS RESOURCE IDs: GFS resource tools require the drive and a real resourceId from an accessible/list/resolve result or a turn file reference. When the user provides a human path, discover that exact path with `clerum__gfs_accessible` and `clerum__gfs_list` before downloading; never invent a resourceId or pass the path as the id. ' +'GFS WORKSPACE FILES: When a GFS result says `delivery:"workspace_file"`, its `path` is relative to the caller workspace and the file is already present locally. ' +'Do not print, `file_read`, or paste the whole source. If analysis or conversion is needed, use an approved `shell_exec` command or script with that relative path, write outputs outside `.gfs-downloads`, and return only bounded counts, aggregates, errors, or small samples. ' +'Ask for shell approval with the exact command/script to execute. Do not treat expiry, checksum, version, transfer, or destination selection as model-controlled choices.'