fix: use NANOCLAW_IPC_DIR env var in MCP server instead of hardcoded /workspace/ipc
This commit is contained in:
@@ -11,7 +11,7 @@ import fs from 'fs';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { CronExpressionParser } from 'cron-parser';
|
import { CronExpressionParser } from 'cron-parser';
|
||||||
|
|
||||||
const IPC_DIR = '/workspace/ipc';
|
const IPC_DIR = process.env.NANOCLAW_IPC_DIR || '/workspace/ipc';
|
||||||
const MESSAGES_DIR = path.join(IPC_DIR, 'messages');
|
const MESSAGES_DIR = path.join(IPC_DIR, 'messages');
|
||||||
const TASKS_DIR = path.join(IPC_DIR, 'tasks');
|
const TASKS_DIR = path.join(IPC_DIR, 'tasks');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user