@gavdi/cap-mcp 1.2.1 → 1.2.2

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.
@@ -39,19 +39,19 @@ function parseDefinitions(model) {
39
39
  const resourceAnnotation = constructResourceAnnotation(serviceName, target, verifiedAnnotations, def, model);
40
40
  if (!resourceAnnotation)
41
41
  continue;
42
- result.set(resourceAnnotation.target, resourceAnnotation);
42
+ result.set(`${serviceName}.${target}`, resourceAnnotation);
43
43
  continue;
44
44
  case "function":
45
45
  const functionAnnotation = constructToolAnnotation(model, serviceName, target, verifiedAnnotations);
46
46
  if (!functionAnnotation)
47
47
  continue;
48
- result.set(functionAnnotation.target, functionAnnotation);
48
+ result.set(`${serviceName}.${target}`, functionAnnotation);
49
49
  continue;
50
50
  case "action":
51
51
  const actionAnnotation = constructToolAnnotation(model, serviceName, target, verifiedAnnotations);
52
52
  if (!actionAnnotation)
53
53
  continue;
54
- result.set(actionAnnotation.target, actionAnnotation);
54
+ result.set(`${serviceName}.${target}`, actionAnnotation);
55
55
  continue;
56
56
  case "service":
57
57
  const promptsAnnotation = constructPromptAnnotation(serviceName, verifiedAnnotations);
@@ -197,6 +197,6 @@ function parseBoundOperations(model, serviceName, entityKey, definition, resultR
197
197
  const toolAnnotation = constructToolAnnotation(model, serviceName, k, verifiedAnnotations, entityKey, keyParams);
198
198
  if (!toolAnnotation)
199
199
  continue;
200
- resultRef.set(k, toolAnnotation);
200
+ resultRef.set(`${serviceName}.${entityKey}.${k}`, toolAnnotation);
201
201
  }
202
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gavdi/cap-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "MCP Pluging for CAP",
5
5
  "keywords": [
6
6
  "MCP",