@open-loyalty/mcp-server 1.14.1 → 1.16.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.
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/server.js +1 -1
- package/dist/tools/analytics/handlers.js +2 -2
- package/dist/tools/analytics/index.d.ts +4 -4
- package/dist/tools/analytics/schemas.d.ts +4 -4
- package/dist/tools/analytics/schemas.js +7 -5
- package/dist/tools/apps/dashboard/handlers.d.ts +21 -6
- package/dist/tools/apps/dashboard/handlers.js +70 -13
- package/dist/tools/campaign/handlers.js +24 -5
- package/dist/tools/campaign/index.d.ts +227 -116
- package/dist/tools/campaign/index.js +4 -1
- package/dist/tools/campaign/normalizers.d.ts +5 -0
- package/dist/tools/campaign/normalizers.js +50 -0
- package/dist/tools/campaign/schemas.d.ts +227 -116
- package/dist/tools/campaign/schemas.js +34 -20
- package/dist/tools/campaign/types.d.ts +9 -7
- package/dist/types/schemas/analytics.d.ts +38 -6
- package/dist/types/schemas/analytics.js +6 -2
- package/dist/types/schemas/campaign.d.ts +120 -120
- package/dist/types/schemas/campaign.js +3 -3
- package/dist/ui/dashboard.html +109 -135
- package/dist/utils/errors.js +4 -3
- package/package.json +1 -1
package/dist/utils/errors.js
CHANGED
|
@@ -69,10 +69,11 @@ export function formatApiError(error, relatedTool) {
|
|
|
69
69
|
code: "VALIDATION_ERROR",
|
|
70
70
|
message: fullMessage,
|
|
71
71
|
hint: "An enum value is invalid. Common fixes: " +
|
|
72
|
-
"1. For interval types, use 'calendarDays' (not 'days'), 'calendarWeeks', 'calendarMonths', 'calendarYears'. " +
|
|
72
|
+
"1. For interval types, use 'calendarHours', 'calendarDays' (not 'days'), 'calendarWeeks', 'calendarMonths', 'calendarYears'. " +
|
|
73
73
|
"2. For period types, use 'day' (not 'days'), 'week', 'month', 'year'. " +
|
|
74
|
-
"3. For
|
|
75
|
-
"4.
|
|
74
|
+
"3. For campaign visibility, use 'tier', 'segment', or 'none' (invisible to everyone). Omit visibility for all-member visibility -- do not use 'all'. " +
|
|
75
|
+
"4. For trigger types, check the tool description for valid options. " +
|
|
76
|
+
"5. Omit interval entirely for lifetime/forever limits.",
|
|
76
77
|
relatedTool,
|
|
77
78
|
});
|
|
78
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-loyalty/mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for Open Loyalty API - enables AI agents to manage loyalty programs, members, points, rewards, and transactions",
|
|
6
6
|
"author": "Marcin Dyguda <md@openloyalty.io>",
|