@kya-os/mcp-i-core 1.1.3 → 1.1.4
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.
|
@@ -40,7 +40,7 @@ export declare class ToolProtectionService {
|
|
|
40
40
|
checkToolProtection(toolName: string, agentDid: string): Promise<ToolProtection | null>;
|
|
41
41
|
/**
|
|
42
42
|
* Fetch tool protection config from AgentShield API
|
|
43
|
-
*
|
|
43
|
+
* Uses projectId endpoint if available (preferred, project-scoped), otherwise falls back to agent_did query param
|
|
44
44
|
*
|
|
45
45
|
* @param agentDid DID of the agent to fetch config for
|
|
46
46
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-protection.service.d.ts","sourceRoot":"","sources":["../../src/services/tool-protection.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAE5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-protection.service.d.ts","sourceRoot":"","sources":["../../src/services/tool-protection.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAE5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAkC7E;;GAEG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,KAAK,CAAsB;gBAGjC,MAAM,EAAE,2BAA2B,EACnC,KAAK,EAAE,mBAAmB;IAM5B;;;;;;;;;;OAUG;IACG,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA2H9E;;;;;;OAMG;IACG,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAsB7F;;;;;OAKG;YACW,YAAY;IAwC1B;;;;OAIG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAKlD"}
|
|
@@ -54,24 +54,53 @@ class ToolProtectionService {
|
|
|
54
54
|
try {
|
|
55
55
|
const response = await this.fetchFromApi(agentDid);
|
|
56
56
|
// Transform API response format to internal format
|
|
57
|
-
// API
|
|
58
|
-
//
|
|
57
|
+
// API can return either:
|
|
58
|
+
// - Array format: { data: { tools: [{ name: "greet", requiresDelegation: true, ... }] } }
|
|
59
|
+
// - Object format: { data: { tools: { greet: { requiresDelegation: true, ... } } } }
|
|
59
60
|
const toolProtections = {};
|
|
60
61
|
if (response.data.tools) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
// Handle array format (current API)
|
|
63
|
+
if (Array.isArray(response.data.tools)) {
|
|
64
|
+
for (const tool of response.data.tools) {
|
|
65
|
+
const toolName = tool.name;
|
|
66
|
+
if (!toolName) {
|
|
67
|
+
if (this.config.debug) {
|
|
68
|
+
console.warn('[ToolProtectionService] Tool missing name in array format', tool);
|
|
69
|
+
}
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const requiresDelegation = tool.requires_delegation ?? tool.requiresDelegation ?? false;
|
|
73
|
+
const requiredScopes = tool.required_scopes ?? tool.scopes ?? [];
|
|
74
|
+
toolProtections[toolName] = {
|
|
75
|
+
requiresDelegation,
|
|
76
|
+
requiredScopes,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
// Handle object format (legacy/backward compatibility)
|
|
82
|
+
for (const [toolName, toolConfig] of Object.entries(response.data.tools)) {
|
|
83
|
+
const requiresDelegation = toolConfig.requires_delegation ?? toolConfig.requiresDelegation ?? false;
|
|
84
|
+
const requiredScopes = toolConfig.required_scopes ?? toolConfig.scopes ?? [];
|
|
85
|
+
toolProtections[toolName] = {
|
|
86
|
+
requiresDelegation,
|
|
87
|
+
requiredScopes,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
69
90
|
}
|
|
70
91
|
}
|
|
71
92
|
const config = { toolProtections };
|
|
72
93
|
// 3. Cache the response
|
|
73
94
|
const ttl = this.config.cacheTtl ?? 300000; // Default 5 minutes
|
|
74
95
|
await this.cache.set(cacheKey, config, ttl);
|
|
96
|
+
// Always log tool count and protection status (critical for debugging)
|
|
97
|
+
console.log('[ToolProtectionService] Config loaded', {
|
|
98
|
+
toolCount: Object.keys(toolProtections).length,
|
|
99
|
+
protectedTools: Object.entries(toolProtections)
|
|
100
|
+
.filter(([_, config]) => config.requiresDelegation)
|
|
101
|
+
.map(([name]) => name),
|
|
102
|
+
agentDid: agentDid.slice(0, 20) + '...',
|
|
103
|
+
});
|
|
75
104
|
if (this.config.debug) {
|
|
76
105
|
console.log('[ToolProtectionService] API fetch successful, cached', {
|
|
77
106
|
agentDid: agentDid.slice(0, 20) + '...',
|
|
@@ -87,27 +116,27 @@ class ToolProtectionService {
|
|
|
87
116
|
return config;
|
|
88
117
|
}
|
|
89
118
|
catch (error) {
|
|
119
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
90
120
|
if (this.config.debug) {
|
|
91
121
|
console.error('[ToolProtectionService] API fetch failed', {
|
|
92
122
|
agentDid: agentDid.slice(0, 20) + '...',
|
|
93
|
-
error:
|
|
123
|
+
error: errorMessage,
|
|
94
124
|
});
|
|
95
125
|
}
|
|
96
126
|
// 4. Fallback to local config
|
|
97
127
|
if (this.config.fallbackConfig) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
agentDid: agentDid.slice(0, 20) + '...',
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return this.config.fallbackConfig;
|
|
104
|
-
}
|
|
105
|
-
// 5. No fallback available - return empty config (allow all tools)
|
|
106
|
-
if (this.config.debug) {
|
|
107
|
-
console.warn('[ToolProtectionService] No fallback config, allowing all tools', {
|
|
128
|
+
// Always warn when using fallback (not just debug mode)
|
|
129
|
+
console.warn('[ToolProtectionService] API fetch failed, using fallback config', {
|
|
108
130
|
agentDid: agentDid.slice(0, 20) + '...',
|
|
131
|
+
error: errorMessage,
|
|
109
132
|
});
|
|
133
|
+
return this.config.fallbackConfig;
|
|
110
134
|
}
|
|
135
|
+
// 5. No fallback available - return empty config (allow all tools)
|
|
136
|
+
console.warn('[ToolProtectionService] No fallback config, allowing all tools', {
|
|
137
|
+
agentDid: agentDid.slice(0, 20) + '...',
|
|
138
|
+
error: errorMessage,
|
|
139
|
+
});
|
|
111
140
|
return { toolProtections: {} };
|
|
112
141
|
}
|
|
113
142
|
}
|
|
@@ -121,6 +150,16 @@ class ToolProtectionService {
|
|
|
121
150
|
async checkToolProtection(toolName, agentDid) {
|
|
122
151
|
const config = await this.getToolProtectionConfig(agentDid);
|
|
123
152
|
const protection = config.toolProtections[toolName];
|
|
153
|
+
// Always log the check result (critical for debugging)
|
|
154
|
+
if (this.config.debug || !protection || protection.requiresDelegation) {
|
|
155
|
+
console.log('[ToolProtectionService] Protection check', {
|
|
156
|
+
tool: toolName,
|
|
157
|
+
agentDid: agentDid.slice(0, 20) + '...',
|
|
158
|
+
found: !!protection,
|
|
159
|
+
requiresDelegation: protection?.requiresDelegation ?? false,
|
|
160
|
+
availableTools: Object.keys(config.toolProtections),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
124
163
|
if (!protection || !protection.requiresDelegation) {
|
|
125
164
|
return null;
|
|
126
165
|
}
|
|
@@ -128,14 +167,24 @@ class ToolProtectionService {
|
|
|
128
167
|
}
|
|
129
168
|
/**
|
|
130
169
|
* Fetch tool protection config from AgentShield API
|
|
131
|
-
*
|
|
170
|
+
* Uses projectId endpoint if available (preferred, project-scoped), otherwise falls back to agent_did query param
|
|
132
171
|
*
|
|
133
172
|
* @param agentDid DID of the agent to fetch config for
|
|
134
173
|
*/
|
|
135
174
|
async fetchFromApi(agentDid) {
|
|
136
|
-
|
|
175
|
+
// Prefer projectId endpoint if available (more reliable, project-scoped)
|
|
176
|
+
// Fallback to agent_did query param for backward compatibility
|
|
177
|
+
let url;
|
|
178
|
+
if (this.config.projectId) {
|
|
179
|
+
url = `${this.config.apiUrl}/api/v1/bouncer/config/${encodeURIComponent(this.config.projectId)}`;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
url = `${this.config.apiUrl}/api/v1/bouncer/config?agent_did=${encodeURIComponent(agentDid)}`;
|
|
183
|
+
}
|
|
137
184
|
if (this.config.debug) {
|
|
138
|
-
console.log('[ToolProtectionService] Fetching from API:', url
|
|
185
|
+
console.log('[ToolProtectionService] Fetching from API:', url, {
|
|
186
|
+
method: this.config.projectId ? 'projectId (path)' : 'agent_did (query)',
|
|
187
|
+
});
|
|
139
188
|
}
|
|
140
189
|
const response = await fetch(url, {
|
|
141
190
|
method: 'GET',
|
|
@@ -160,7 +209,8 @@ class ToolProtectionService {
|
|
|
160
209
|
* @param agentDid DID of the agent to clear cache for
|
|
161
210
|
*/
|
|
162
211
|
async clearCache(agentDid) {
|
|
163
|
-
|
|
212
|
+
// Use agentDid directly as the cache key to match getToolProtectionConfig
|
|
213
|
+
const cacheKey = agentDid;
|
|
164
214
|
await this.cache.delete(cacheKey);
|
|
165
215
|
}
|
|
166
216
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-protection.service.js","sourceRoot":"","sources":["../../src/services/tool-protection.service.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"tool-protection.service.js","sourceRoot":"","sources":["../../src/services/tool-protection.service.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AA0CH;;GAEG;AACH,MAAa,qBAAqB;IACxB,MAAM,CAA8B;IACpC,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SACF,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;YACrE,MAAM,IAAI,KAAK,CACb,mCAAmC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,UAAU,MAAM,SAAS,EAAE,CAC3F,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAA6B,CAAC;QAEjE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,QAAgB;QAC/B,0EAA0E;QAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;CACF;AAvOD,sDAuOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/mcp-i-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Core provider-based architecture for MCP-I framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@types/node": "^20.0.0",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
44
44
|
"@typescript-eslint/parser": "^6.0.0",
|
|
45
|
-
"@vitest/coverage-v8": "^
|
|
45
|
+
"@vitest/coverage-v8": "^4.0.5",
|
|
46
46
|
"eslint": "^8.0.0",
|
|
47
47
|
"tsx": "^4.7.0",
|
|
48
48
|
"typescript": "^5.3.0",
|
|
49
|
-
"vitest": "^
|
|
49
|
+
"vitest": "^4.0.5"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=20.0.0"
|