powerplatform-mcp 0.4.3 → 0.4.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.
Files changed (2) hide show
  1. package/build/index.js +8 -5
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -92,8 +92,10 @@ server.prompt("entity-overview", "Get an overview of a Power Platform entity", {
92
92
  `- Primary Name: ${metadata.PrimaryNameAttribute}`;
93
93
  // Get key attributes
94
94
  const keyAttributes = attributes.value
95
- .filter((attr) => attr.IsValidForRead === true && !attr.AttributeOf)
96
- .map((attr) => `- ${attr.LogicalName}: ${attr.AttributeType} (${attr.DisplayName?.UserLocalizedLabel?.Label || 'No display name'})`)
95
+ .map((attr) => {
96
+ const attrType = attr["@odata.type"] || attr.odata?.type || "Unknown type";
97
+ return `- ${attr.LogicalName}: ${attrType}`;
98
+ })
97
99
  .join('\n');
98
100
  // Get relationships summary
99
101
  const relationships = await service.getEntityRelationships(entityName);
@@ -544,9 +546,11 @@ server.tool("use-powerplatform-prompt", "Use a predefined prompt template for Po
544
546
  `- Primary Name: ${metadata.PrimaryNameAttribute}`;
545
547
  // Get key attributes
546
548
  const keyAttributes = attributes.value
547
- .filter((attr) => attr.IsValidForRead === true && !attr.AttributeOf)
548
549
  //.slice(0, 10) // Limit to first 10 important attributes
549
- .map((attr) => `- ${attr.LogicalName}: ${attr.AttributeType} (${attr.DisplayName?.UserLocalizedLabel?.Label || 'No display name'})`)
550
+ .map((attr) => {
551
+ const attrType = attr["@odata.type"] || attr.odata?.type || "Unknown type";
552
+ return `- ${attr.LogicalName}: ${attrType}`;
553
+ })
550
554
  .join('\n');
551
555
  // Get relationships summary
552
556
  const relationships = await service.getEntityRelationships(entityName);
@@ -591,7 +595,6 @@ server.tool("use-powerplatform-prompt", "Use a predefined prompt template for Po
591
595
  // Get a few important fields for the select example
592
596
  const attributes = await service.getEntityAttributes(entityName);
593
597
  const selectFields = attributes.value
594
- .filter((attr) => attr.IsValidForRead === true && !attr.AttributeOf)
595
598
  .slice(0, 5) // Just take first 5 for example
596
599
  .map((attr) => attr.LogicalName)
597
600
  .join(',');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerplatform-mcp",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "PowerPlatform Model Context Protocol server",
5
5
  "main": "build/index.js",
6
6
  "bin": {