@mandujs/mcp 0.19.5 → 0.19.6

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 CHANGED
@@ -1,44 +1,44 @@
1
- {
2
- "name": "@mandujs/mcp",
3
- "version": "0.19.5",
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
- "mandujs-mcp": "./src/index.ts",
10
- "mcp": "./src/index.ts"
11
- },
12
- "exports": {
13
- ".": "./src/index.ts"
14
- },
15
- "files": [
16
- "src/**/*"
17
- ],
18
- "keywords": [
19
- "mandu",
20
- "mcp",
21
- "model-context-protocol",
22
- "ai",
23
- "agent",
24
- "code-generation"
25
- ],
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/konamgil/mandu.git",
29
- "directory": "packages/mcp"
30
- },
31
- "author": "konamgil",
32
- "license": "MPL-2.0",
33
- "publishConfig": {
34
- "access": "public"
35
- },
36
- "dependencies": {
37
- "@mandujs/core": "^0.21.0",
38
- "@mandujs/ate": "^0.18.0",
39
- "@modelcontextprotocol/sdk": "^1.25.3"
40
- },
41
- "engines": {
42
- "bun": ">=1.0.0"
43
- }
44
- }
1
+ {
2
+ "name": "@mandujs/mcp",
3
+ "version": "0.19.6",
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
+ "mandujs-mcp": "./src/index.ts",
10
+ "mcp": "./src/index.ts"
11
+ },
12
+ "exports": {
13
+ ".": "./src/index.ts"
14
+ },
15
+ "files": [
16
+ "src/**/*"
17
+ ],
18
+ "keywords": [
19
+ "mandu",
20
+ "mcp",
21
+ "model-context-protocol",
22
+ "ai",
23
+ "agent",
24
+ "code-generation"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/konamgil/mandu.git",
29
+ "directory": "packages/mcp"
30
+ },
31
+ "author": "konamgil",
32
+ "license": "MPL-2.0",
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "dependencies": {
37
+ "@mandujs/core": "^0.22.0",
38
+ "@mandujs/ate": "^0.18.2",
39
+ "@modelcontextprotocol/sdk": "^1.25.3"
40
+ },
41
+ "engines": {
42
+ "bun": ">=1.3.12"
43
+ }
44
+ }
package/src/index.ts CHANGED
File without changes
@@ -9,6 +9,7 @@ import path from "path";
9
9
  import { readConfig, readJsonFile } from "./utils/project.js";
10
10
  import { loadManduConfig, loadManifest } from "@mandujs/core";
11
11
  import { eventBus } from "@mandujs/core/observability";
12
+ import { computeAgentStats } from "@mandujs/core/kitchen";
12
13
  import { getDevServerState } from "./tools/project.js";
13
14
 
14
15
  export const manduResourceDefinitions: Resource[] = [
@@ -36,6 +37,12 @@ export const manduResourceDefinitions: Resource[] = [
36
37
  description: "Recent observability events (HTTP, MCP, Guard) from EventBus + 5-minute stats",
37
38
  mimeType: "application/json",
38
39
  },
40
+ {
41
+ uri: "mandu://agent-stats",
42
+ name: "Per-Agent Stats",
43
+ description: "MCP tool usage aggregated by sessionId (per-agent observability)",
44
+ mimeType: "application/json",
45
+ },
39
46
  ];
40
47
 
41
48
  type ResourceReadResult = { uri: string; mimeType: string; text: string };
@@ -107,6 +114,11 @@ export function manduResourceHandlers(projectRoot: string): Record<string, Resou
107
114
  });
108
115
  },
109
116
 
117
+ "mandu://agent-stats": async () => {
118
+ // Phase 5-2: per-agent (sessionId) MCP tool usage aggregation
119
+ return jsonResult("mandu://agent-stats", computeAgentStats());
120
+ },
121
+
110
122
  "mandu://errors": async () => {
111
123
  const errors: unknown[] = [];
112
124