@gavdi/cap-mcp 1.0.0 → 1.0.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.
@@ -156,7 +156,7 @@ function determineResourceOptions(annotations) {
156
156
  function parseResourceElements(definition) {
157
157
  const properties = new Map();
158
158
  const resourceKeys = new Map();
159
- for (const [key, value] of Object.entries(definition.elements)) {
159
+ for (const [key, value] of Object.entries(definition.elements || {})) {
160
160
  if (!value.type)
161
161
  continue;
162
162
  const parsedType = value.type.replace("cds.", "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gavdi/cap-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP Pluging for CAP",
5
5
  "keywords": [
6
6
  "MCP",