@mandujs/mcp 0.18.10 → 0.19.0
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 +42 -42
- package/src/activity-adapter.ts +23 -0
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mandujs/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Mandu MCP Server - Agent-native interface for Mandu framework operations",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./src/index.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"mandu-mcp": "./src/index.ts"
|
|
9
|
-
},
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./src/index.ts"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"src/**/*"
|
|
15
|
-
],
|
|
16
|
-
"keywords": [
|
|
17
|
-
"mandu",
|
|
18
|
-
"mcp",
|
|
19
|
-
"model-context-protocol",
|
|
20
|
-
"ai",
|
|
21
|
-
"agent",
|
|
22
|
-
"code-generation"
|
|
23
|
-
],
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "https://github.com/konamgil/mandu.git",
|
|
27
|
-
"directory": "packages/mcp"
|
|
28
|
-
},
|
|
29
|
-
"author": "konamgil",
|
|
30
|
-
"license": "MPL-2.0",
|
|
31
|
-
"publishConfig": {
|
|
32
|
-
"access": "public"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@mandujs/core": "^0.19.1",
|
|
36
|
-
"@mandujs/ate": "^0.17.2",
|
|
37
|
-
"@modelcontextprotocol/sdk": "^1.25.3"
|
|
38
|
-
},
|
|
39
|
-
"engines": {
|
|
40
|
-
"bun": ">=1.0.0"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mandujs/mcp",
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Mandu MCP Server - Agent-native interface for Mandu framework operations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./src/index.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mandu-mcp": "./src/index.ts"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./src/index.ts"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src/**/*"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"mandu",
|
|
18
|
+
"mcp",
|
|
19
|
+
"model-context-protocol",
|
|
20
|
+
"ai",
|
|
21
|
+
"agent",
|
|
22
|
+
"code-generation"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/konamgil/mandu.git",
|
|
27
|
+
"directory": "packages/mcp"
|
|
28
|
+
},
|
|
29
|
+
"author": "konamgil",
|
|
30
|
+
"license": "MPL-2.0",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@mandujs/core": "^0.19.1",
|
|
36
|
+
"@mandujs/ate": "^0.17.2",
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.25.3"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"bun": ">=1.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ActivityMonitor -> EventBus adapter
|
|
3
|
+
* Emits MCP tool execution events into the unified observability bus.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { eventBus } from "@mandujs/core";
|
|
7
|
+
|
|
8
|
+
export function emitMcpEvent(
|
|
9
|
+
toolName: string,
|
|
10
|
+
args: unknown,
|
|
11
|
+
result: unknown,
|
|
12
|
+
duration: number,
|
|
13
|
+
success: boolean,
|
|
14
|
+
): void {
|
|
15
|
+
eventBus.emit({
|
|
16
|
+
type: "mcp",
|
|
17
|
+
severity: success ? "info" : "error",
|
|
18
|
+
source: "mcp",
|
|
19
|
+
message: `${toolName} ${success ? "ok" : "fail"} ${duration}ms`,
|
|
20
|
+
duration,
|
|
21
|
+
data: { tool: toolName, args, success },
|
|
22
|
+
});
|
|
23
|
+
}
|