mcp-prqx-pricer 1.0.10 → 1.0.12

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.
@@ -58,7 +58,7 @@ class CreatePricingGroupTool {
58
58
  },
59
59
  shareOptionsType: {
60
60
  type: 'string',
61
- description: '(custom or all) Decides if we use custom parameters to share the tickets in the group or if we share them all'
61
+ description: '(all or custom) Decides if we use custom parameters to share the tickets in the group or if we share them all. Default all.'
62
62
  },
63
63
  shareAnchor: {
64
64
  type: 'boolean',
@@ -70,7 +70,7 @@ class CreatePricingGroupTool {
70
70
  },
71
71
  customSharingMethod: {
72
72
  type: 'string',
73
- description: '( % or $ ) Decides if the custom sharing amount is applied as a percentage or a dollar amount'
73
+ description: '( $ or % ) Decides if the custom sharing amount is applied as a percentage or a dollar amount.'
74
74
  },
75
75
  applyCeilingOnlyToAnchor: {
76
76
  type: 'boolean',
@@ -158,7 +158,7 @@ class CreatePricingGroupTool {
158
158
  if (response.status !== 200) {
159
159
  throw new Error(`API error: ${response.statusText}`);
160
160
  }
161
- return { content: [{ type: 'text', text: JSON.stringify(response.data) }] };
161
+ return { content: [{ type: 'text', text: JSON.stringify([response.data]) }] };
162
162
  }
163
163
  catch (error) {
164
164
  if (error instanceof Error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-prqx-pricer",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -59,7 +59,7 @@ export class CreatePricingGroupTool implements McpTool {
59
59
  },
60
60
  shareOptionsType: {
61
61
  type: 'string',
62
- description: '(custom or all) Decides if we use custom parameters to share the tickets in the group or if we share them all'
62
+ description: '(all or custom) Decides if we use custom parameters to share the tickets in the group or if we share them all. Default all.'
63
63
  },
64
64
  shareAnchor: {
65
65
  type: 'boolean',
@@ -71,7 +71,7 @@ export class CreatePricingGroupTool implements McpTool {
71
71
  },
72
72
  customSharingMethod: {
73
73
  type: 'string',
74
- description: '( % or $ ) Decides if the custom sharing amount is applied as a percentage or a dollar amount'
74
+ description: '( $ or % ) Decides if the custom sharing amount is applied as a percentage or a dollar amount.'
75
75
  },
76
76
  applyCeilingOnlyToAnchor: {
77
77
  type: 'boolean',
@@ -161,7 +161,7 @@ export class CreatePricingGroupTool implements McpTool {
161
161
  if (response.status !== 200) {
162
162
  throw new Error(`API error: ${response.statusText}`);
163
163
  }
164
- return { content: [{ type: 'text', text: JSON.stringify(response.data) }] };
164
+ return { content: [{ type: 'text', text: JSON.stringify([response.data]) }] };
165
165
  } catch (error) {
166
166
  if (error instanceof Error) {
167
167
  console.error('Error in Create Pricing Group:', error);