@mandujs/mcp 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/activity-monitor.ts +17 -0
package/package.json
CHANGED
package/src/activity-monitor.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import fs from "fs";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import type { Subprocess } from "bun";
|
|
11
|
+
import { eventBus } from "@mandujs/core/observability";
|
|
11
12
|
|
|
12
13
|
const TOOL_ICONS: Record<string, string> = {
|
|
13
14
|
// Spec
|
|
@@ -379,6 +380,14 @@ export class ActivityMonitor {
|
|
|
379
380
|
fingerprint: `tool:error:${name}:${argsStr}`,
|
|
380
381
|
data: { tool: name, tag, args, argsSummary: argsStr, error },
|
|
381
382
|
});
|
|
383
|
+
// Phase 1-3: MCP 도구 에러 → EventBus
|
|
384
|
+
eventBus.emit({
|
|
385
|
+
type: "mcp",
|
|
386
|
+
severity: "error",
|
|
387
|
+
source: "mcp",
|
|
388
|
+
message: `${name} ❌ ${error}`,
|
|
389
|
+
data: { tool: name, args, error },
|
|
390
|
+
});
|
|
382
391
|
return;
|
|
383
392
|
}
|
|
384
393
|
|
|
@@ -389,6 +398,14 @@ export class ActivityMonitor {
|
|
|
389
398
|
source: "tool",
|
|
390
399
|
data: { tool: name, tag, args, argsSummary: argsStr },
|
|
391
400
|
});
|
|
401
|
+
// Phase 1-3: MCP 도구 호출 → EventBus
|
|
402
|
+
eventBus.emit({
|
|
403
|
+
type: "mcp",
|
|
404
|
+
severity: "info",
|
|
405
|
+
source: "mcp",
|
|
406
|
+
message: `${name} ✅`,
|
|
407
|
+
data: { tool: name, args },
|
|
408
|
+
});
|
|
392
409
|
}
|
|
393
410
|
|
|
394
411
|
/**
|