@gavdi/cap-mcp 0.10.0 → 0.10.1

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.
@@ -197,6 +197,8 @@ function parseOperationElements(annotations) {
197
197
  */
198
198
  function parseEntityKeys(definition) {
199
199
  const result = new Map();
200
+ if (!definition?.elements)
201
+ return result; // If there is no defined elements, we exit early
200
202
  for (const [k, v] of Object.entries(definition.elements)) {
201
203
  if (!v.key)
202
204
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gavdi/cap-mcp",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "MCP Pluging for CAP",
5
5
  "keywords": [
6
6
  "MCP",