@cplace/test-mcp-server 0.1.11 → 0.1.13

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 (62) hide show
  1. package/README.md +30 -1
  2. package/dist/conditional-registration.d.ts.map +1 -1
  3. package/dist/conditional-registration.js +4 -2
  4. package/dist/conditional-registration.js.map +1 -1
  5. package/dist/index.js +242 -47
  6. package/dist/index.js.map +1 -1
  7. package/dist/logger.d.ts +1 -1
  8. package/dist/logger.d.ts.map +1 -1
  9. package/dist/logger.js +1 -1
  10. package/dist/logger.js.map +1 -1
  11. package/dist/profiles.d.ts.map +1 -1
  12. package/dist/profiles.js +9 -2
  13. package/dist/profiles.js.map +1 -1
  14. package/dist/tools/change-listeners.d.ts.map +1 -1
  15. package/dist/tools/change-listeners.js +8 -5
  16. package/dist/tools/change-listeners.js.map +1 -1
  17. package/dist/tools/pages.d.ts.map +1 -1
  18. package/dist/tools/pages.js +16 -7
  19. package/dist/tools/pages.js.map +1 -1
  20. package/dist/tools/ppt-export-schemas.d.ts +1937 -0
  21. package/dist/tools/ppt-export-schemas.d.ts.map +1 -0
  22. package/dist/tools/{ppt-export-profiles.js → ppt-export-schemas.js} +15 -116
  23. package/dist/tools/ppt-export-schemas.js.map +1 -0
  24. package/dist/tools/{ppt-export-profiles.d.ts → ppt-export.d.ts} +1 -1
  25. package/dist/tools/ppt-export.d.ts.map +1 -0
  26. package/dist/tools/ppt-export.js +192 -0
  27. package/dist/tools/ppt-export.js.map +1 -0
  28. package/dist/tools/references.d.ts.map +1 -1
  29. package/dist/tools/references.js +4 -2
  30. package/dist/tools/references.js.map +1 -1
  31. package/dist/tools/schedule.d.ts +4 -0
  32. package/dist/tools/schedule.d.ts.map +1 -0
  33. package/dist/tools/schedule.js +42 -0
  34. package/dist/tools/schedule.js.map +1 -0
  35. package/dist/tools/search.d.ts.map +1 -1
  36. package/dist/tools/search.js +8 -4
  37. package/dist/tools/search.js.map +1 -1
  38. package/dist/tools/type-layouts.d.ts.map +1 -1
  39. package/dist/tools/type-layouts.js +4 -2
  40. package/dist/tools/type-layouts.js.map +1 -1
  41. package/dist/tools/users.d.ts.map +1 -1
  42. package/dist/tools/users.js +6 -3
  43. package/dist/tools/users.js.map +1 -1
  44. package/dist/tools/validators.d.ts.map +1 -1
  45. package/dist/tools/validators.js +8 -5
  46. package/dist/tools/validators.js.map +1 -1
  47. package/dist/tools/version-history.d.ts.map +1 -1
  48. package/dist/tools/version-history.js +8 -4
  49. package/dist/tools/version-history.js.map +1 -1
  50. package/dist/tools/widgets.d.ts.map +1 -1
  51. package/dist/tools/widgets.js +248 -21
  52. package/dist/tools/widgets.js.map +1 -1
  53. package/dist/tools/workspace.d.ts.map +1 -1
  54. package/dist/tools/workspace.js +165 -17
  55. package/dist/tools/workspace.js.map +1 -1
  56. package/dist/utils.d.ts +4 -0
  57. package/dist/utils.d.ts.map +1 -1
  58. package/dist/utils.js +11 -0
  59. package/dist/utils.js.map +1 -1
  60. package/package.json +7 -2
  61. package/dist/tools/ppt-export-profiles.d.ts.map +0 -1
  62. package/dist/tools/ppt-export-profiles.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppt-export-schemas.d.ts","sourceRoot":"","sources":["../../src/tools/ppt-export-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- const FormatConfigSchema = z.object({
2
+ export const FormatConfigSchema = z.object({
3
3
  fontSize: z.number().positive().optional().describe("Font size in points (must be > 0)"),
4
4
  fontBold: z.boolean().optional().describe("Whether text should be bold"),
5
5
  fontItalic: z.boolean().optional().describe("Whether text should be italic"),
@@ -11,16 +11,16 @@ const FormatConfigSchema = z.object({
11
11
  borderColor: z.string().optional().describe("Border color in hex format"),
12
12
  borderWidth: z.number().min(0).optional().describe("Border width in points")
13
13
  });
14
- const ScaleConfigSchema = z.object({
14
+ export const ScaleConfigSchema = z.object({
15
15
  scalePattern: z.string().optional().describe("Date/time format pattern (e.g., 'yyyy', 'MMM yyyy', 'ww')"),
16
16
  formatConfig: FormatConfigSchema.optional().describe("Font and formatting settings for the scale")
17
17
  });
18
- const TaskLabelSchema = z.object({
18
+ export const TaskLabelSchema = z.object({
19
19
  position: z.enum(["LEFT", "CENTER", "RIGHT", "ABOVE", "BELOW"]).optional().describe("Label position"),
20
20
  content: z.string().optional().describe("Label text pattern (e.g., '{name}', '{duration}')"),
21
21
  format: FormatConfigSchema.optional().describe("Font and formatting settings for the label")
22
22
  });
23
- const TaskClassDefinitionSchema = z.object({
23
+ export const TaskClassDefinitionSchema = z.object({
24
24
  id: z.string().optional().describe("Task class identifier"),
25
25
  name: z.string().optional().describe("Display name for the task class"),
26
26
  shape: z.string().optional().describe("Shape for tasks: 'Rectangle', 'Diamond', 'Chevron', etc."),
@@ -30,7 +30,7 @@ const TaskClassDefinitionSchema = z.object({
30
30
  labels: z.array(TaskLabelSchema).optional().describe("Label positioning and content definitions"),
31
31
  rollupTaskClass: z.record(z.any()).optional().describe("Configuration for rollup task representation")
32
32
  });
33
- const ColumnConfigSchema = z.object({
33
+ export const ColumnConfigSchema = z.object({
34
34
  id: z.string().optional().describe("Column identifier"),
35
35
  name: z.string().optional().describe("Column display name"),
36
36
  width: z.number().min(0).optional().describe("Column width in points"),
@@ -44,7 +44,7 @@ const ColumnConfigSchema = z.object({
44
44
  format: FormatConfigSchema.optional().describe("Column text formatting"),
45
45
  headerFormat: FormatConfigSchema.optional().describe("Column header formatting")
46
46
  });
47
- const TableConfigSchema = z.object({
47
+ export const TableConfigSchema = z.object({
48
48
  showBorders: z.boolean().optional().describe("Show table borders (default: true)"),
49
49
  borderColor: z.string().optional().describe("Table border color in hex format"),
50
50
  borderWidth: z.number().min(0).optional().describe("Table border width in points"),
@@ -57,7 +57,7 @@ const TableConfigSchema = z.object({
57
57
  cellPadding: z.number().min(0).optional().describe("Cell padding in points"),
58
58
  tableStyle: z.string().optional().describe("Predefined table style name")
59
59
  });
60
- const PageConfigSchema = z.object({
60
+ export const PageConfigSchema = z.object({
61
61
  pageSize: z.object({
62
62
  format: z.enum(["A4Paper", "A0Paper", "A1Paper", "A2Paper", "Legal", "Custom"]).optional().describe("Page format"),
63
63
  orientation: z.enum(["HORIZONTAL", "VERTICAL"]).optional().describe("Page orientation"),
@@ -71,13 +71,13 @@ const PageConfigSchema = z.object({
71
71
  bottom: z.number().min(0).optional().describe("Bottom margin in points (must be ≥ 0)")
72
72
  }).optional().describe("Page margin settings in points")
73
73
  }).optional().describe("Page size and layout configuration");
74
- const BasicVisualizationSchema = z.object({
74
+ export const BasicVisualizationSchema = z.object({
75
75
  showSchedule: z.boolean().optional().describe("Whether to show schedule information"),
76
76
  showDiagram: z.boolean().optional().describe("Whether to show diagram elements"),
77
77
  locale: z.string().optional().describe("Locale code (e.g., 'en', 'de', 'fr')"),
78
78
  localeEnabled: z.boolean().optional().describe("Whether locale-specific formatting is enabled")
79
79
  }).optional().describe("Basic visualization settings");
80
- const TimelineSchema = z.object({
80
+ export const TimelineSchema = z.object({
81
81
  bounds: z.object({
82
82
  startDate: z.string().optional().describe("Timeline start date in ISO 8601 format (yyyy-MM-dd)"),
83
83
  endDate: z.string().optional().describe("Timeline end date in ISO 8601 format (yyyy-MM-dd)"),
@@ -95,7 +95,7 @@ const TimelineSchema = z.object({
95
95
  alignedRelativeToReferenceDate: z.boolean().optional().describe("Display timeline relative to reference date vs. calendar units")
96
96
  }).optional().describe("Reference date (SOP - Start of Production) configuration")
97
97
  }).optional().describe("Timeline bounds, reference date, and display settings");
98
- const ScalesSchema = z.object({
98
+ export const ScalesSchema = z.object({
99
99
  enabledTopScales: z.array(z.enum(["YEAR", "QUARTER", "MONTH", "WEEK", "DAY", "SOP"])).optional().describe("Scales to show at top of timeline"),
100
100
  enabledBottomScales: z.array(z.enum(["YEAR", "QUARTER", "MONTH", "WEEK", "DAY", "SOP"])).optional().describe("Scales to show at bottom of timeline"),
101
101
  yearScale: ScaleConfigSchema.optional().describe("Year scale configuration"),
@@ -104,10 +104,10 @@ const ScalesSchema = z.object({
104
104
  weekScale: ScaleConfigSchema.optional().describe("Week scale configuration"),
105
105
  dayScale: ScaleConfigSchema.optional().describe("Day scale configuration")
106
106
  }).optional().describe("Timeline scale visibility, patterns, and formatting");
107
- const TaskClassesSchema = z.object({
107
+ export const TaskClassesSchema = z.object({
108
108
  definitions: z.array(TaskClassDefinitionSchema).optional().describe("List of task class definitions")
109
109
  }).optional().describe("Task class definitions and visual representations");
110
- const LayoutSchema = z.object({
110
+ export const LayoutSchema = z.object({
111
111
  tableRowHeight: z.number().min(0).optional().describe("Row height in points (minimum value applies)"),
112
112
  tableRowPaddingTop: z.number().min(0).optional().describe("Top padding in points (must be ≥ 0)"),
113
113
  tableRowPaddingBottom: z.number().min(0).optional().describe("Bottom padding in points (must be ≥ 0)"),
@@ -118,7 +118,7 @@ const LayoutSchema = z.object({
118
118
  autoWrapTextInTable: z.boolean().optional().describe("Auto wrap text in table cells (default: false)"),
119
119
  tableConfig: TableConfigSchema.optional().describe("Additional table formatting options")
120
120
  }).optional().describe("Table layout, columns, and row configuration");
121
- const AdvancedVisualizationSchema = z.object({
121
+ export const AdvancedVisualizationSchema = z.object({
122
122
  showCriticalPath: z.boolean().optional().describe("Highlight critical path"),
123
123
  showResourceNames: z.boolean().optional().describe("Display resource assignments"),
124
124
  showProgress: z.boolean().optional().describe("Show task progress bars"),
@@ -128,7 +128,7 @@ const AdvancedVisualizationSchema = z.object({
128
128
  showCompletedTasks: z.boolean().optional().describe("Include/exclude completed tasks"),
129
129
  highlightOverdueTasks: z.boolean().optional().describe("Special formatting for overdue tasks")
130
130
  }).optional().describe("Advanced visualization options");
131
- const LegendSchema = z.object({
131
+ export const LegendSchema = z.object({
132
132
  showLegend: z.boolean().optional().describe("Enable/disable legend"),
133
133
  position: z.enum(["TOP", "BOTTOM", "LEFT", "RIGHT"]).optional().describe("Legend position"),
134
134
  showTaskTypes: z.boolean().optional().describe("Include task type legend"),
@@ -138,105 +138,4 @@ const LegendSchema = z.object({
138
138
  legendWidth: z.number().min(0).optional().describe("Width of legend area"),
139
139
  legendHeight: z.number().min(0).optional().describe("Height of legend area")
140
140
  }).optional().describe("Legend configuration and display settings");
141
- export function registerPPTExportProfileTools(server, client) {
142
- server.registerTool("cplace_manage_ppt_export_profile", {
143
- description: "Create or update PowerPoint Export Profiles with comprehensive configuration options for page layout, timeline settings, task classes, and visual formatting. Prerequisites: The 'Presentation Graphics' app (cf.cplace.pptexport) must be installed in the target workspace.",
144
- inputSchema: {
145
- operation: z.enum(["create", "update"]).describe("Operation type: 'create' for new profiles, 'update' for existing profiles"),
146
- workspaceId: z.string().optional().describe("Required for create: The workspace UID where the profile should be created"),
147
- name: z.string().optional().describe("For create (required) or update (optional): Display name for the profile page in cplace"),
148
- profileName: z.string().optional().describe("For create (required) or update (optional): Internal name used for the PowerPoint export configuration"),
149
- pageUID: z.string().optional().describe("Required for update: The unique identifier of the profile page to update"),
150
- builtIn: z.boolean().optional().describe("Whether this is a built-in profile (default: false for create)"),
151
- pageConfig: PageConfigSchema,
152
- basicVisualization: BasicVisualizationSchema,
153
- timeline: TimelineSchema,
154
- scales: ScalesSchema,
155
- taskClasses: TaskClassesSchema,
156
- layout: LayoutSchema,
157
- advancedVisualization: AdvancedVisualizationSchema,
158
- legend: LegendSchema
159
- },
160
- annotations: { title: "Manage PPT Export Profile" }
161
- }, async (params) => {
162
- try {
163
- if (params.operation === "create") {
164
- if (!params.workspaceId || !params.name || !params.profileName) {
165
- return {
166
- content: [{ type: "text", text: "Error: Create operation requires workspaceId, name, and profileName parameters" }]
167
- };
168
- }
169
- const requestBody = {
170
- workspaceId: params.workspaceId,
171
- name: params.name,
172
- profileName: params.profileName
173
- };
174
- if (params.builtIn !== undefined)
175
- requestBody.builtIn = params.builtIn;
176
- if (params.pageConfig)
177
- requestBody.pageConfig = params.pageConfig;
178
- if (params.basicVisualization)
179
- requestBody.basicVisualization = params.basicVisualization;
180
- if (params.timeline)
181
- requestBody.timeline = params.timeline;
182
- if (params.scales)
183
- requestBody.scales = params.scales;
184
- if (params.taskClasses)
185
- requestBody.taskClasses = params.taskClasses;
186
- if (params.layout)
187
- requestBody.layout = params.layout;
188
- if (params.advancedVisualization)
189
- requestBody.advancedVisualization = params.advancedVisualization;
190
- if (params.legend)
191
- requestBody.legend = params.legend;
192
- const result = await client.makeApiRequest('json/pptexport-profile/create', 'POST', undefined, requestBody);
193
- return {
194
- content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
195
- };
196
- }
197
- else {
198
- if (!params.pageUID) {
199
- return {
200
- content: [{ type: "text", text: "Error: Update operation requires pageUID parameter" }]
201
- };
202
- }
203
- const requestBody = {
204
- pageUID: params.pageUID
205
- };
206
- if (params.name !== undefined)
207
- requestBody.name = params.name;
208
- if (params.profileName !== undefined)
209
- requestBody.profileName = params.profileName;
210
- if (params.builtIn !== undefined)
211
- requestBody.builtIn = params.builtIn;
212
- if (params.pageConfig)
213
- requestBody.pageConfig = params.pageConfig;
214
- if (params.basicVisualization)
215
- requestBody.basicVisualization = params.basicVisualization;
216
- if (params.timeline)
217
- requestBody.timeline = params.timeline;
218
- if (params.scales)
219
- requestBody.scales = params.scales;
220
- if (params.taskClasses)
221
- requestBody.taskClasses = params.taskClasses;
222
- if (params.layout)
223
- requestBody.layout = params.layout;
224
- if (params.advancedVisualization)
225
- requestBody.advancedVisualization = params.advancedVisualization;
226
- if (params.legend)
227
- requestBody.legend = params.legend;
228
- const result = await client.makeApiRequest('json/pptexport-profile/update', 'PATCH', undefined, requestBody);
229
- return {
230
- content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
231
- };
232
- }
233
- }
234
- catch (error) {
235
- const operationText = params.operation === "create" ? "creating" : "updating";
236
- return {
237
- content: [{ type: "text", text: `Error ${operationText} PPT Export Profile: ${error instanceof Error ? error.message : String(error)}` }]
238
- };
239
- }
240
- });
241
- }
242
- //# sourceMappingURL=ppt-export-profiles.js.map
141
+ //# sourceMappingURL=ppt-export-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppt-export-schemas.js","sourceRoot":"","sources":["../../src/tools/ppt-export-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACxF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACxE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACvF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;IAClG,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;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AAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC5E,YAAY,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACnF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC1E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAC/E,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { CplaceApiClient } from '../api.js';
3
3
  export declare function registerPPTExportProfileTools(server: McpServer, client: CplaceApiClient): void;
4
- //# sourceMappingURL=ppt-export-profiles.d.ts.map
4
+ //# sourceMappingURL=ppt-export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppt-export.d.ts","sourceRoot":"","sources":["../../src/tools/ppt-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAElE,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAc1C,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAmOvF"}
@@ -0,0 +1,192 @@
1
+ import { z } from "zod";
2
+ import { applyPathUpdates } from '../utils.js';
3
+ import { debugLogWithTag } from '../logger.js';
4
+ import { AdvancedVisualizationSchema, BasicVisualizationSchema, LayoutSchema, LegendSchema, PageConfigSchema, ScalesSchema, TaskClassesSchema, TimelineSchema } from "./ppt-export-schemas.js";
5
+ export function registerPPTExportProfileTools(server, client) {
6
+ server.registerTool("cplace_create_ppt_export_profile", {
7
+ description: "Create PowerPoint Export Profiles with comprehensive configuration options for page layout, timeline settings, task classes, and visual formatting. Prerequisites: The 'Presentation Graphics' app (cf.cplace.pptexport) must be installed in the target workspace.",
8
+ inputSchema: {
9
+ workspaceId: z.string().describe("Required: The workspace ID where the profile should be created"),
10
+ name: z.string().describe("Required: Display name for the profile page in cplace"),
11
+ profileName: z.string().describe("Required: Internal name used for the PowerPoint export configuration"),
12
+ builtIn: z.boolean().optional().describe("Whether this is a built-in profile (default: false)"),
13
+ pageConfig: PageConfigSchema,
14
+ basicVisualization: BasicVisualizationSchema,
15
+ timeline: TimelineSchema,
16
+ scales: ScalesSchema,
17
+ taskClasses: TaskClassesSchema,
18
+ layout: LayoutSchema,
19
+ advancedVisualization: AdvancedVisualizationSchema,
20
+ legend: LegendSchema
21
+ },
22
+ annotations: { title: "Create PPT Export Profile" }
23
+ }, async (params) => {
24
+ try {
25
+ if (!params.workspaceId || !params.name || !params.profileName) {
26
+ return {
27
+ content: [{ type: "text", text: "Error: workspaceId, name, and profileName are required" }],
28
+ isError: true
29
+ };
30
+ }
31
+ const requestBody = {
32
+ workspaceId: params.workspaceId,
33
+ name: params.name,
34
+ profileName: params.profileName
35
+ };
36
+ if (params.builtIn !== undefined)
37
+ requestBody.builtIn = params.builtIn;
38
+ if (params.pageConfig)
39
+ requestBody.pageConfig = params.pageConfig;
40
+ if (params.basicVisualization)
41
+ requestBody.basicVisualization = params.basicVisualization;
42
+ if (params.timeline)
43
+ requestBody.timeline = params.timeline;
44
+ if (params.scales)
45
+ requestBody.scales = params.scales;
46
+ if (params.taskClasses)
47
+ requestBody.taskClasses = params.taskClasses;
48
+ if (params.layout)
49
+ requestBody.layout = params.layout;
50
+ if (params.advancedVisualization)
51
+ requestBody.advancedVisualization = params.advancedVisualization;
52
+ if (params.legend)
53
+ requestBody.legend = params.legend;
54
+ const result = await client.makeApiRequest('json/pptexport-profile/create', 'POST', undefined, requestBody);
55
+ const successMessage = {
56
+ success: true,
57
+ operation: "created",
58
+ pageUID: result.pageUID || result.uid || "unknown",
59
+ profileName: params.profileName,
60
+ name: params.name,
61
+ workspaceId: params.workspaceId
62
+ };
63
+ return {
64
+ content: [{ type: "text", text: JSON.stringify(successMessage, null, 2) }]
65
+ };
66
+ }
67
+ catch (error) {
68
+ return {
69
+ content: [{ type: "text", text: `Error creating PPT Export Profile: ${error instanceof Error ? error.message : String(error)}` }],
70
+ isError: true
71
+ };
72
+ }
73
+ });
74
+ server.registerTool("cplace_partial_update_ppt_export_profile", {
75
+ description: "Update PowerPoint Export Profiles using path-based updates. Modify specific configuration values while preserving all other settings. This is the only way to update existing profiles. Supports dot notation paths and array indices.",
76
+ inputSchema: {
77
+ pageUID: z.string().describe("Required: The unique identifier of the profile page to update"),
78
+ name: z.string().optional().describe("Optional: New display name for the profile page"),
79
+ profileName: z.string().optional().describe("Optional: New internal name for the PowerPoint export configuration"),
80
+ builtIn: z.boolean().optional().describe("Optional: Whether this is a built-in profile"),
81
+ updates: z.array(z.object({
82
+ path: z.string().describe("Dot notation path to the configuration value (e.g., 'pageConfig.margins.left', 'taskClasses.definitions[0].fillColor')"),
83
+ value: z.any().describe("New value to set at the specified path")
84
+ })).optional().describe("Array of path-value pairs for configuration updates. Supports dot notation with array indices.")
85
+ },
86
+ annotations: { title: "Partial Update PPT Export Profile (Path-Based)" }
87
+ }, async (params) => {
88
+ try {
89
+ debugLogWithTag('PPT_UPDATE', `Starting partial update for pageUID: ${params.pageUID}`);
90
+ debugLogWithTag('PPT_UPDATE', `Input params: ${JSON.stringify(params, null, 2)}`);
91
+ if (!params.pageUID) {
92
+ debugLogWithTag('PPT_UPDATE', 'ERROR: pageUID parameter is missing');
93
+ return {
94
+ content: [{ type: "text", text: "Error: pageUID parameter is required for partial updates" }],
95
+ isError: true
96
+ };
97
+ }
98
+ const hasConfigUpdates = params.updates && params.updates.length > 0;
99
+ const hasProfileUpdates = params.name || params.profileName || params.builtIn !== undefined;
100
+ debugLogWithTag('PPT_UPDATE', `Update analysis: hasConfigUpdates=${hasConfigUpdates}, hasProfileUpdates=${hasProfileUpdates}`);
101
+ debugLogWithTag('PPT_UPDATE', `Config updates count: ${params.updates?.length || 0}`);
102
+ debugLogWithTag('PPT_UPDATE', `Profile updates: name=${params.name}, profileName=${params.profileName}, builtIn=${params.builtIn}`);
103
+ if (!hasConfigUpdates && !hasProfileUpdates) {
104
+ debugLogWithTag('PPT_UPDATE', 'ERROR: No meaningful updates provided');
105
+ return {
106
+ content: [{ type: "text", text: "No updates specified. At least one path update or profile property must be provided." }],
107
+ isError: true
108
+ };
109
+ }
110
+ debugLogWithTag('PPT_UPDATE', `Fetching current profile data for pageUID: ${params.pageUID}`);
111
+ const currentProfile = await client.makeApiRequest('json/page', 'GET', { pageUID: params.pageUID });
112
+ debugLogWithTag('PPT_UPDATE', `Current profile response status: ${currentProfile ? 'SUCCESS' : 'FAILED'}`);
113
+ debugLogWithTag('PPT_UPDATE', `Profile attributes present: ${currentProfile.attributes ? 'YES' : 'NO'}`);
114
+ debugLogWithTag('PPT_UPDATE', `Config JSON present: ${currentProfile.attributes?.['cf.cplace.pptexport.configJson'] ? 'YES' : 'NO'}`);
115
+ if (!currentProfile.attributes || !currentProfile.attributes['cf.cplace.pptexport.configJson']) {
116
+ debugLogWithTag('PPT_UPDATE', `ERROR: Profile ${params.pageUID} has no configuration data`);
117
+ debugLogWithTag('PPT_UPDATE', `Available attributes: ${Object.keys(currentProfile.attributes || {}).join(', ')}`);
118
+ return {
119
+ content: [{ type: "text", text: `Error: Profile ${params.pageUID} has no configuration data` }],
120
+ isError: true
121
+ };
122
+ }
123
+ const currentConfigJson = currentProfile.attributes['cf.cplace.pptexport.configJson'];
124
+ debugLogWithTag('PPT_UPDATE', `Current config JSON length: ${currentConfigJson.length} characters`);
125
+ debugLogWithTag('PPT_UPDATE', `Current config JSON preview: ${currentConfigJson.substring(0, 200)}...`);
126
+ let currentConfig = JSON.parse(currentConfigJson);
127
+ debugLogWithTag('PPT_UPDATE', `Parsed config keys: ${Object.keys(currentConfig).join(', ')}`);
128
+ debugLogWithTag('PPT_UPDATE', `Current config structure: ${JSON.stringify(currentConfig, null, 2).substring(0, 100)}...`);
129
+ if (hasConfigUpdates) {
130
+ debugLogWithTag('PPT_UPDATE', `Applying ${params.updates.length} path-based updates`);
131
+ params.updates.forEach((update, index) => {
132
+ debugLogWithTag('PPT_UPDATE', `Update ${index + 1}: path="${update.path}", value=${JSON.stringify(update.value)}`);
133
+ });
134
+ const configBeforeUpdate = JSON.stringify(currentConfig);
135
+ currentConfig = applyPathUpdates(currentConfig, params.updates);
136
+ const configAfterUpdate = JSON.stringify(currentConfig);
137
+ debugLogWithTag('PPT_UPDATE', `Config changed after path updates: ${configBeforeUpdate !== configAfterUpdate}`);
138
+ debugLogWithTag('PPT_UPDATE', `Updated config structure: ${JSON.stringify(currentConfig, null, 2).substring(0, 100)}...`);
139
+ }
140
+ else {
141
+ debugLogWithTag('PPT_UPDATE', 'Skipping path-based updates (none provided)');
142
+ }
143
+ debugLogWithTag('PPT_UPDATE', 'Preparing update request body');
144
+ const updateRequestBody = {
145
+ pageUID: params.pageUID,
146
+ configJson: JSON.stringify(currentConfig)
147
+ };
148
+ if (params.builtIn !== undefined) {
149
+ updateRequestBody.builtIn = params.builtIn;
150
+ debugLogWithTag('PPT_UPDATE', `Adding builtIn update: ${params.builtIn}`);
151
+ }
152
+ else if (currentProfile.attributes['cf.cplace.pptexport.builtIn'] !== undefined) {
153
+ updateRequestBody.builtIn = currentProfile.attributes['cf.cplace.pptexport.builtIn'];
154
+ debugLogWithTag('PPT_UPDATE', `Preserving existing builtIn: ${currentProfile.attributes['cf.cplace.pptexport.builtIn']}`);
155
+ }
156
+ if (params.name !== undefined) {
157
+ updateRequestBody.name = params.name;
158
+ debugLogWithTag('PPT_UPDATE', `Adding name update: ${params.name}`);
159
+ }
160
+ if (params.profileName !== undefined) {
161
+ updateRequestBody.profileName = params.profileName;
162
+ debugLogWithTag('PPT_UPDATE', `Adding profileName update: ${params.profileName}`);
163
+ }
164
+ debugLogWithTag('PPT_UPDATE', `Final request body keys: ${Object.keys(updateRequestBody).join(', ')}`);
165
+ debugLogWithTag('PPT_UPDATE', `Request body size: ${JSON.stringify(updateRequestBody).length} characters`);
166
+ debugLogWithTag('PPT_UPDATE', 'Calling update endpoint: json/pptexport-profile/update');
167
+ const result = await client.makeApiRequest('json/pptexport-profile/update', 'PATCH', undefined, updateRequestBody);
168
+ debugLogWithTag('PPT_UPDATE', `Update endpoint response status: ${result ? 'SUCCESS' : 'FAILED'}`);
169
+ debugLogWithTag('PPT_UPDATE', `Update result: ${JSON.stringify(result, null, 2).substring(0, 300)}...`);
170
+ debugLogWithTag('PPT_UPDATE', 'Partial update completed successfully');
171
+ const successMessage = {
172
+ success: true,
173
+ operation: "updated",
174
+ pageUID: params.pageUID,
175
+ profileName: result.profileName || result.attributes?.profileName || "unknown",
176
+ updatedFields: Object.keys(updateRequestBody).filter(key => key !== 'pageUID' && key !== 'configJson')
177
+ };
178
+ return {
179
+ content: [{ type: "text", text: JSON.stringify(successMessage, null, 2) }]
180
+ };
181
+ }
182
+ catch (error) {
183
+ debugLogWithTag('PPT_UPDATE', `ERROR in partial update: ${error instanceof Error ? error.message : String(error)}`);
184
+ debugLogWithTag('PPT_UPDATE', `Error stack: ${error instanceof Error ? error.stack : 'No stack available'}`);
185
+ return {
186
+ content: [{ type: "text", text: `Error in partial update: ${error instanceof Error ? error.message : String(error)}` }],
187
+ isError: true
188
+ };
189
+ }
190
+ });
191
+ }
192
+ //# sourceMappingURL=ppt-export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppt-export.js","sourceRoot":"","sources":["../../src/tools/ppt-export.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EACH,2BAA2B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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAC3E,CAAC;QAEJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAe,CAAC,YAAY,EAAE,4BAA4B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACpH,eAAe,CAAC,YAAY,EAAE,gBAAgB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC;YAC7G,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;gBACvH,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/tools/references.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAkEhF"}
1
+ {"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/tools/references.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAoEhF"}
@@ -23,7 +23,8 @@ export function registerReferenceTools(server, client) {
23
23
  catch (error) {
24
24
  debugLogWithTag('TYPE_REFS', `Error retrieving incoming references: ${error instanceof Error ? error.message : String(error)}`);
25
25
  return {
26
- content: [{ type: "text", text: `Error retrieving type incoming references: ${error instanceof Error ? error.message : String(error)}` }]
26
+ content: [{ type: "text", text: `Error retrieving type incoming references: ${error instanceof Error ? error.message : String(error)}` }],
27
+ isError: true
27
28
  };
28
29
  }
29
30
  });
@@ -49,7 +50,8 @@ export function registerReferenceTools(server, client) {
49
50
  catch (error) {
50
51
  debugLogWithTag('PAGE_REFS', `Error retrieving incoming references: ${error instanceof Error ? error.message : String(error)}`);
51
52
  return {
52
- content: [{ type: "text", text: `Error retrieving page incoming references: ${error instanceof Error ? error.message : String(error)}` }]
53
+ content: [{ type: "text", text: `Error retrieving page incoming references: ${error instanceof Error ? error.message : String(error)}` }],
54
+ isError: true
53
55
  };
54
56
  }
55
57
  });
@@ -1 +1 @@
1
- {"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/tools/references.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAuB;IAE/E,MAAM,CAAC,YAAY,CAAC,qCAAqC,EACvD;QACE,WAAW,EAAE,yOAAyO;QACtP,WAAW,EAAE;YACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;YACjG,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;SACrF;QACD,WAAW,EAAE,EAAE,KAAK,EAAE,8BAA8B,EAAE;KACvD,EACD,KAAK,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAE;QACtC,eAAe,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AK,CAAC,EAAE,EAAE,CAAC;gBACvI,OAAO,EAAE,IAAI;aAChB,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { CplaceApiClient } from '../api.js';
3
+ export declare function registerScheduleTools(server: McpServer, client: CplaceApiClient): void;
4
+ //# sourceMappingURL=schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../src/tools/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAgD/E"}
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+ import { debugLogWithTag } from "../logger.js";
3
+ export function registerScheduleTools(server, client) {
4
+ server.registerTool("cplace_get_schedule_links", {
5
+ description: "Get schedule dependencies and links between work packages. Can analyze cross-schedule dependencies (between different schedules), intra-schedule dependencies (within the same schedule), or both, based on the scope parameter.",
6
+ inputSchema: {
7
+ scheduleUID: z.string().describe("The unique identifier of the schedule to analyze for schedule links (e.g., 'page/schedule123')"),
8
+ linkType: z.string().optional().describe(`Filter results by specific link type. Supports both English and German link type names:
9
+ - English: "START_TO_START", "START_TO_FINISH", "FINISH_TO_START", "FINISH_TO_FINISH"
10
+ - German: "anfang-anfang", "anfang-ende", "ende-anfang", "ende-ende"`),
11
+ scope: z.enum(["cross", "inter", "all"]).default("cross").describe(`Determines which dependencies to include:
12
+ - "cross" (default): Cross-schedule dependencies only (between different schedules)
13
+ - "inter": Intra-schedule dependencies only (within the same schedule)
14
+ - "all": Both cross-schedule and intra-schedule dependencies`)
15
+ },
16
+ annotations: { title: "Get Cross-Schedule Links" }
17
+ }, async ({ scheduleUID, linkType, scope = "cross" }) => {
18
+ try {
19
+ debugLogWithTag('SCHEDULE_LINKS', `Getting schedule links for schedule: ${scheduleUID}, scope: ${scope}, linkType: ${linkType || 'all'}`);
20
+ const params = {
21
+ scheduleUID
22
+ };
23
+ if (linkType) {
24
+ params.linkType = linkType;
25
+ }
26
+ params.scope = scope;
27
+ const result = await client.makeApiRequest('json/schedule/links', 'GET', params);
28
+ debugLogWithTag('SCHEDULE_LINKS', `Retrieved schedule links data for scope: ${scope}`);
29
+ return {
30
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
31
+ };
32
+ }
33
+ catch (error) {
34
+ debugLogWithTag('SCHEDULE_LINKS', `Error getting schedule links: ${error instanceof Error ? error.message : String(error)}`);
35
+ return {
36
+ content: [{ type: "text", text: `Error getting schedule links: ${error instanceof Error ? error.message : String(error)}` }],
37
+ isError: true
38
+ };
39
+ }
40
+ });
41
+ }
42
+ //# sourceMappingURL=schedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../src/tools/schedule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,UAAU,qBAAqB,CAAC,MAAiB,EAAE,MAAuB;IAE9E,MAAM,CAAC,YAAY,CAAC,2BAA2B,EAC7C;QACE,WAAW,EAAE,kOAAkO;QAC/O,WAAW,EAAE;YACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gGAAgG,CAAC;YAClI,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;qEAEoB,CAAC;YAC9D,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,C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QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAgB,MAAM,WAAW,CAAC;AAO1D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAkY7E"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAgB,MAAM,WAAW,CAAC;AAO1D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAsY7E"}
@@ -133,7 +133,8 @@ Empty/not empty checks:
133
133
  catch (error) {
134
134
  debugLogWithTag('SEARCH', `Error during search: ${error instanceof Error ? error.message : String(error)}`);
135
135
  return {
136
- content: [{ type: "text", text: `Error converting or executing search: ${error instanceof Error ? error.message : String(error)}` }]
136
+ content: [{ type: "text", text: `Error converting or executing search: ${error instanceof Error ? error.message : String(error)}` }],
137
+ isError: true
137
138
  };
138
139
  }
139
140
  });
@@ -188,7 +189,8 @@ Empty/not empty checks:
188
189
  }
189
190
  catch (error) {
190
191
  return {
191
- content: [{ type: "text", text: `Error converting or executing search: ${error instanceof Error ? error.message : String(error)}` }]
192
+ content: [{ type: "text", text: `Error converting or executing search: ${error instanceof Error ? error.message : String(error)}` }],
193
+ isError: true
192
194
  };
193
195
  }
194
196
  });
@@ -248,7 +250,8 @@ Empty/not empty checks:
248
250
  }
249
251
  catch (error) {
250
252
  return {
251
- content: [{ type: "text", text: `Error retrieving pages: ${error instanceof Error ? error.message : String(error)}` }]
253
+ content: [{ type: "text", text: `Error retrieving pages: ${error instanceof Error ? error.message : String(error)}` }],
254
+ isError: true
252
255
  };
253
256
  }
254
257
  });
@@ -296,7 +299,8 @@ Empty/not empty checks:
296
299
  catch (error) {
297
300
  debugLogWithTag('CSV_SEARCH', `Error during CSV search: ${error instanceof Error ? error.message : String(error)}`);
298
301
  return {
299
- content: [{ type: "text", text: `Error converting or executing CSV search: ${error instanceof Error ? error.message : String(error)}` }]
302
+ content: [{ type: "text", text: `Error converting or executing CSV search: ${error instanceof Error ? error.message : String(error)}` }],
303
+ isError: true
300
304
  };
301
305
  }
302
306
  });