Skip to content

Commit 93d303d

Browse files
author
StackMemory Bot (CLI)
committed
fix(mcp): fix server startup crash from type-only re-export
esbuild was stripping TaskPriority/TaskStatus (type-only exports) from the JS output, but runtime import still expected them as values. Changed to `export type` and fixed import path to types/task.js. Also fixed claude_desktop_config.json: wrong dist path and Node v16.
1 parent fdacbe2 commit 93d303d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/integrations/mcp/server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ type LinearAuthManager = import('../linear/auth.js').LinearAuthManager;
4242
type LinearSyncEngine = import('../linear/sync.js').LinearSyncEngine;
4343

4444
// Re-export task types for handlers (these are just enums/types, not runtime deps)
45-
export {
46-
TaskPriority,
47-
TaskStatus,
48-
} from '../../features/tasks/linear-task-manager.js';
45+
export type { TaskPriority, TaskStatus } from '../../types/task.js';
4946
import { BrowserMCPIntegration } from '../../features/browser/browser-mcp.js';
5047
import { TraceDetector } from '../../core/trace/trace-detector.js';
5148
import { ToolCall, _Trace } from '../../core/trace/types.js';

0 commit comments

Comments
 (0)