@reaudit/mcp-server 1.0.0

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 (119) hide show
  1. package/LICENSE +33 -0
  2. package/README.md +399 -0
  3. package/dist/auth/oauth-client.d.ts +43 -0
  4. package/dist/auth/oauth-client.d.ts.map +1 -0
  5. package/dist/auth/oauth-client.js +340 -0
  6. package/dist/auth/oauth-client.js.map +1 -0
  7. package/dist/auth/token-store.d.ts +41 -0
  8. package/dist/auth/token-store.d.ts.map +1 -0
  9. package/dist/auth/token-store.js +176 -0
  10. package/dist/auth/token-store.js.map +1 -0
  11. package/dist/index.d.ts +11 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +480 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/lib/api-client.d.ts +970 -0
  16. package/dist/lib/api-client.d.ts.map +1 -0
  17. package/dist/lib/api-client.js +441 -0
  18. package/dist/lib/api-client.js.map +1 -0
  19. package/dist/lib/confirmation.d.ts +92 -0
  20. package/dist/lib/confirmation.d.ts.map +1 -0
  21. package/dist/lib/confirmation.js +224 -0
  22. package/dist/lib/confirmation.js.map +1 -0
  23. package/dist/lib/error-handler.d.ts +57 -0
  24. package/dist/lib/error-handler.d.ts.map +1 -0
  25. package/dist/lib/error-handler.js +235 -0
  26. package/dist/lib/error-handler.js.map +1 -0
  27. package/dist/lib/offline-mode.d.ts +107 -0
  28. package/dist/lib/offline-mode.d.ts.map +1 -0
  29. package/dist/lib/offline-mode.js +356 -0
  30. package/dist/lib/offline-mode.js.map +1 -0
  31. package/dist/lib/progress-tracker.d.ts +87 -0
  32. package/dist/lib/progress-tracker.d.ts.map +1 -0
  33. package/dist/lib/progress-tracker.js +238 -0
  34. package/dist/lib/progress-tracker.js.map +1 -0
  35. package/dist/prompts/index.d.ts +24 -0
  36. package/dist/prompts/index.d.ts.map +1 -0
  37. package/dist/prompts/index.js +305 -0
  38. package/dist/prompts/index.js.map +1 -0
  39. package/dist/resources/index.d.ts +44 -0
  40. package/dist/resources/index.d.ts.map +1 -0
  41. package/dist/resources/index.js +125 -0
  42. package/dist/resources/index.js.map +1 -0
  43. package/dist/tools/account.d.ts +25 -0
  44. package/dist/tools/account.d.ts.map +1 -0
  45. package/dist/tools/account.js +69 -0
  46. package/dist/tools/account.js.map +1 -0
  47. package/dist/tools/action-grids.d.ts +414 -0
  48. package/dist/tools/action-grids.d.ts.map +1 -0
  49. package/dist/tools/action-grids.js +271 -0
  50. package/dist/tools/action-grids.js.map +1 -0
  51. package/dist/tools/analytics-query.d.ts +126 -0
  52. package/dist/tools/analytics-query.d.ts.map +1 -0
  53. package/dist/tools/analytics-query.js +106 -0
  54. package/dist/tools/analytics-query.js.map +1 -0
  55. package/dist/tools/analytics.d.ts +57 -0
  56. package/dist/tools/analytics.d.ts.map +1 -0
  57. package/dist/tools/analytics.js +122 -0
  58. package/dist/tools/analytics.js.map +1 -0
  59. package/dist/tools/audits.d.ts +123 -0
  60. package/dist/tools/audits.d.ts.map +1 -0
  61. package/dist/tools/audits.js +226 -0
  62. package/dist/tools/audits.js.map +1 -0
  63. package/dist/tools/calendar.d.ts +57 -0
  64. package/dist/tools/calendar.d.ts.map +1 -0
  65. package/dist/tools/calendar.js +109 -0
  66. package/dist/tools/calendar.js.map +1 -0
  67. package/dist/tools/content-generation.d.ts +211 -0
  68. package/dist/tools/content-generation.d.ts.map +1 -0
  69. package/dist/tools/content-generation.js +363 -0
  70. package/dist/tools/content-generation.js.map +1 -0
  71. package/dist/tools/content.d.ts +92 -0
  72. package/dist/tools/content.d.ts.map +1 -0
  73. package/dist/tools/content.js +130 -0
  74. package/dist/tools/content.js.map +1 -0
  75. package/dist/tools/indexing.d.ts +132 -0
  76. package/dist/tools/indexing.d.ts.map +1 -0
  77. package/dist/tools/indexing.js +190 -0
  78. package/dist/tools/indexing.js.map +1 -0
  79. package/dist/tools/optimization.d.ts +70 -0
  80. package/dist/tools/optimization.d.ts.map +1 -0
  81. package/dist/tools/optimization.js +106 -0
  82. package/dist/tools/optimization.js.map +1 -0
  83. package/dist/tools/projects.d.ts +67 -0
  84. package/dist/tools/projects.d.ts.map +1 -0
  85. package/dist/tools/projects.js +113 -0
  86. package/dist/tools/projects.js.map +1 -0
  87. package/dist/tools/prompts.d.ts +306 -0
  88. package/dist/tools/prompts.d.ts.map +1 -0
  89. package/dist/tools/prompts.js +378 -0
  90. package/dist/tools/prompts.js.map +1 -0
  91. package/dist/tools/publishing.d.ts +135 -0
  92. package/dist/tools/publishing.d.ts.map +1 -0
  93. package/dist/tools/publishing.js +209 -0
  94. package/dist/tools/publishing.js.map +1 -0
  95. package/dist/tools/reports.d.ts +252 -0
  96. package/dist/tools/reports.d.ts.map +1 -0
  97. package/dist/tools/reports.js +183 -0
  98. package/dist/tools/reports.js.map +1 -0
  99. package/dist/tools/social.d.ts +224 -0
  100. package/dist/tools/social.d.ts.map +1 -0
  101. package/dist/tools/social.js +291 -0
  102. package/dist/tools/social.js.map +1 -0
  103. package/dist/tools/sources.d.ts +221 -0
  104. package/dist/tools/sources.d.ts.map +1 -0
  105. package/dist/tools/sources.js +308 -0
  106. package/dist/tools/sources.js.map +1 -0
  107. package/dist/tools/strategy.d.ts +345 -0
  108. package/dist/tools/strategy.d.ts.map +1 -0
  109. package/dist/tools/strategy.js +392 -0
  110. package/dist/tools/strategy.js.map +1 -0
  111. package/dist/tools/usage.d.ts +101 -0
  112. package/dist/tools/usage.d.ts.map +1 -0
  113. package/dist/tools/usage.js +184 -0
  114. package/dist/tools/usage.js.map +1 -0
  115. package/dist/tools/visibility.d.ts +95 -0
  116. package/dist/tools/visibility.d.ts.map +1 -0
  117. package/dist/tools/visibility.js +163 -0
  118. package/dist/tools/visibility.js.map +1 -0
  119. package/package.json +54 -0
@@ -0,0 +1,345 @@
1
+ /**
2
+ * Strategy Tools
3
+ *
4
+ * MCP tools for GTM strategy management.
5
+ */
6
+ import { z } from 'zod';
7
+ import { ReauditAPIClient } from '../lib/api-client.js';
8
+ export declare const listStrategiesSchema: z.ZodObject<{
9
+ projectId: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodOptional<z.ZodString>;
11
+ limit: z.ZodOptional<z.ZodNumber>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ status?: string | undefined;
14
+ projectId?: string | undefined;
15
+ limit?: number | undefined;
16
+ }, {
17
+ status?: string | undefined;
18
+ projectId?: string | undefined;
19
+ limit?: number | undefined;
20
+ }>;
21
+ export declare const getStrategyDetailsSchema: z.ZodObject<{
22
+ strategyId: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ strategyId: string;
25
+ }, {
26
+ strategyId: string;
27
+ }>;
28
+ export declare const createStrategySchema: z.ZodObject<{
29
+ name: z.ZodString;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ projectId: z.ZodOptional<z.ZodString>;
32
+ companyName: z.ZodString;
33
+ industry: z.ZodString;
34
+ productService: z.ZodString;
35
+ targetMarket: z.ZodString;
36
+ currentChallenges: z.ZodOptional<z.ZodString>;
37
+ competitors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
+ uniqueValueProposition: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ name: string;
41
+ companyName: string;
42
+ industry: string;
43
+ productService: string;
44
+ targetMarket: string;
45
+ projectId?: string | undefined;
46
+ description?: string | undefined;
47
+ currentChallenges?: string | undefined;
48
+ competitors?: string[] | undefined;
49
+ uniqueValueProposition?: string | undefined;
50
+ }, {
51
+ name: string;
52
+ companyName: string;
53
+ industry: string;
54
+ productService: string;
55
+ targetMarket: string;
56
+ projectId?: string | undefined;
57
+ description?: string | undefined;
58
+ currentChallenges?: string | undefined;
59
+ competitors?: string[] | undefined;
60
+ uniqueValueProposition?: string | undefined;
61
+ }>;
62
+ export declare const getStrategyContentItemsSchema: z.ZodObject<{
63
+ strategyId: z.ZodString;
64
+ status: z.ZodOptional<z.ZodString>;
65
+ weekNumber: z.ZodOptional<z.ZodNumber>;
66
+ platform: z.ZodOptional<z.ZodString>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ strategyId: string;
69
+ status?: string | undefined;
70
+ platform?: string | undefined;
71
+ weekNumber?: number | undefined;
72
+ }, {
73
+ strategyId: string;
74
+ status?: string | undefined;
75
+ platform?: string | undefined;
76
+ weekNumber?: number | undefined;
77
+ }>;
78
+ export declare const updateContentItemStatusSchema: z.ZodObject<{
79
+ strategyId: z.ZodString;
80
+ itemId: z.ZodString;
81
+ status: z.ZodOptional<z.ZodString>;
82
+ notes: z.ZodOptional<z.ZodString>;
83
+ topic: z.ZodOptional<z.ZodString>;
84
+ platform: z.ZodOptional<z.ZodString>;
85
+ plannedDate: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ strategyId: string;
88
+ itemId: string;
89
+ status?: string | undefined;
90
+ platform?: string | undefined;
91
+ notes?: string | undefined;
92
+ topic?: string | undefined;
93
+ plannedDate?: string | undefined;
94
+ }, {
95
+ strategyId: string;
96
+ itemId: string;
97
+ status?: string | undefined;
98
+ platform?: string | undefined;
99
+ notes?: string | undefined;
100
+ topic?: string | undefined;
101
+ plannedDate?: string | undefined;
102
+ }>;
103
+ /**
104
+ * List strategies tool handler
105
+ */
106
+ export declare function listStrategies(client: ReauditAPIClient, args: z.infer<typeof listStrategiesSchema>): Promise<string>;
107
+ /**
108
+ * Get strategy details tool handler
109
+ */
110
+ export declare function getStrategyDetails(client: ReauditAPIClient, args: z.infer<typeof getStrategyDetailsSchema>): Promise<string>;
111
+ /**
112
+ * Create strategy tool handler
113
+ */
114
+ export declare function createStrategy(client: ReauditAPIClient, args: z.infer<typeof createStrategySchema>): Promise<string>;
115
+ /**
116
+ * Get strategy content items tool handler
117
+ */
118
+ export declare function getStrategyContentItems(client: ReauditAPIClient, args: z.infer<typeof getStrategyContentItemsSchema>): Promise<string>;
119
+ /**
120
+ * Update content item status tool handler
121
+ */
122
+ export declare function updateContentItemStatus(client: ReauditAPIClient, args: z.infer<typeof updateContentItemStatusSchema>): Promise<string>;
123
+ /**
124
+ * Tool definitions for MCP
125
+ */
126
+ export declare const strategyTools: ({
127
+ name: string;
128
+ description: string;
129
+ inputSchema: {
130
+ type: "object";
131
+ properties: {
132
+ projectId: {
133
+ type: string;
134
+ description: string;
135
+ };
136
+ status: {
137
+ type: string;
138
+ description: string;
139
+ };
140
+ limit: {
141
+ type: string;
142
+ description: string;
143
+ };
144
+ strategyId?: undefined;
145
+ name?: undefined;
146
+ description?: undefined;
147
+ companyName?: undefined;
148
+ industry?: undefined;
149
+ productService?: undefined;
150
+ targetMarket?: undefined;
151
+ currentChallenges?: undefined;
152
+ competitors?: undefined;
153
+ uniqueValueProposition?: undefined;
154
+ weekNumber?: undefined;
155
+ platform?: undefined;
156
+ itemId?: undefined;
157
+ notes?: undefined;
158
+ topic?: undefined;
159
+ plannedDate?: undefined;
160
+ };
161
+ required: string[];
162
+ };
163
+ } | {
164
+ name: string;
165
+ description: string;
166
+ inputSchema: {
167
+ type: "object";
168
+ properties: {
169
+ strategyId: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ projectId?: undefined;
174
+ status?: undefined;
175
+ limit?: undefined;
176
+ name?: undefined;
177
+ description?: undefined;
178
+ companyName?: undefined;
179
+ industry?: undefined;
180
+ productService?: undefined;
181
+ targetMarket?: undefined;
182
+ currentChallenges?: undefined;
183
+ competitors?: undefined;
184
+ uniqueValueProposition?: undefined;
185
+ weekNumber?: undefined;
186
+ platform?: undefined;
187
+ itemId?: undefined;
188
+ notes?: undefined;
189
+ topic?: undefined;
190
+ plannedDate?: undefined;
191
+ };
192
+ required: string[];
193
+ };
194
+ } | {
195
+ name: string;
196
+ description: string;
197
+ inputSchema: {
198
+ type: "object";
199
+ properties: {
200
+ name: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ description: {
205
+ type: string;
206
+ description: string;
207
+ };
208
+ projectId: {
209
+ type: string;
210
+ description: string;
211
+ };
212
+ companyName: {
213
+ type: string;
214
+ description: string;
215
+ };
216
+ industry: {
217
+ type: string;
218
+ description: string;
219
+ };
220
+ productService: {
221
+ type: string;
222
+ description: string;
223
+ };
224
+ targetMarket: {
225
+ type: string;
226
+ description: string;
227
+ };
228
+ currentChallenges: {
229
+ type: string;
230
+ description: string;
231
+ };
232
+ competitors: {
233
+ type: string;
234
+ items: {
235
+ type: string;
236
+ };
237
+ description: string;
238
+ };
239
+ uniqueValueProposition: {
240
+ type: string;
241
+ description: string;
242
+ };
243
+ status?: undefined;
244
+ limit?: undefined;
245
+ strategyId?: undefined;
246
+ weekNumber?: undefined;
247
+ platform?: undefined;
248
+ itemId?: undefined;
249
+ notes?: undefined;
250
+ topic?: undefined;
251
+ plannedDate?: undefined;
252
+ };
253
+ required: string[];
254
+ };
255
+ } | {
256
+ name: string;
257
+ description: string;
258
+ inputSchema: {
259
+ type: "object";
260
+ properties: {
261
+ strategyId: {
262
+ type: string;
263
+ description: string;
264
+ };
265
+ status: {
266
+ type: string;
267
+ description: string;
268
+ };
269
+ weekNumber: {
270
+ type: string;
271
+ description: string;
272
+ };
273
+ platform: {
274
+ type: string;
275
+ description: string;
276
+ };
277
+ projectId?: undefined;
278
+ limit?: undefined;
279
+ name?: undefined;
280
+ description?: undefined;
281
+ companyName?: undefined;
282
+ industry?: undefined;
283
+ productService?: undefined;
284
+ targetMarket?: undefined;
285
+ currentChallenges?: undefined;
286
+ competitors?: undefined;
287
+ uniqueValueProposition?: undefined;
288
+ itemId?: undefined;
289
+ notes?: undefined;
290
+ topic?: undefined;
291
+ plannedDate?: undefined;
292
+ };
293
+ required: string[];
294
+ };
295
+ } | {
296
+ name: string;
297
+ description: string;
298
+ inputSchema: {
299
+ type: "object";
300
+ properties: {
301
+ strategyId: {
302
+ type: string;
303
+ description: string;
304
+ };
305
+ itemId: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ status: {
310
+ type: string;
311
+ description: string;
312
+ };
313
+ notes: {
314
+ type: string;
315
+ description: string;
316
+ };
317
+ topic: {
318
+ type: string;
319
+ description: string;
320
+ };
321
+ platform: {
322
+ type: string;
323
+ description: string;
324
+ };
325
+ plannedDate: {
326
+ type: string;
327
+ description: string;
328
+ };
329
+ projectId?: undefined;
330
+ limit?: undefined;
331
+ name?: undefined;
332
+ description?: undefined;
333
+ companyName?: undefined;
334
+ industry?: undefined;
335
+ productService?: undefined;
336
+ targetMarket?: undefined;
337
+ currentChallenges?: undefined;
338
+ competitors?: undefined;
339
+ uniqueValueProposition?: undefined;
340
+ weekNumber?: undefined;
341
+ };
342
+ required: string[];
343
+ };
344
+ })[];
345
+ //# sourceMappingURL=strategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strategy.d.ts","sourceRoot":"","sources":["../../src/tools/strategy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;EAKxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;EAQxC,CAAC;AAEH;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,CAsCjB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,GAC7C,OAAO,CAAC,MAAM,CAAC,CA8CjB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,CA2BjB;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,GAClD,OAAO,CAAC,MAAM,CAAC,CAoDjB;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,GAClD,OAAO,CAAC,MAAM,CAAC,CA4BjB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBJ,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoI7B,CAAC"}