pulsemcp-cms-admin-mcp-server 0.9.5 → 0.9.6
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/build/shared/src/server.js +67 -65
- package/package.json +1 -1
- package/shared/server.js +67 -65
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
2
|
import { createRegisterTools } from './tools.js';
|
|
3
|
+
// Static imports for all API client functions (replaces dynamic imports
|
|
4
|
+
// which can fail at runtime in some environments due to ESM resolution)
|
|
5
|
+
import { getPosts } from './pulsemcp-admin-client/lib/get-posts.js';
|
|
6
|
+
import { getPost } from './pulsemcp-admin-client/lib/get-post.js';
|
|
7
|
+
import { createPost } from './pulsemcp-admin-client/lib/create-post.js';
|
|
8
|
+
import { updatePost } from './pulsemcp-admin-client/lib/update-post.js';
|
|
9
|
+
import { uploadImage } from './pulsemcp-admin-client/lib/upload-image.js';
|
|
10
|
+
import { getAuthors } from './pulsemcp-admin-client/lib/get-authors.js';
|
|
11
|
+
import { getAuthorBySlug } from './pulsemcp-admin-client/lib/get-author-by-slug.js';
|
|
12
|
+
import { getAuthorById } from './pulsemcp-admin-client/lib/get-author-by-id.js';
|
|
13
|
+
import { getMCPServerBySlug } from './pulsemcp-admin-client/lib/get-mcp-server-by-slug.js';
|
|
14
|
+
import { getMCPServerById } from './pulsemcp-admin-client/lib/get-mcp-server-by-id.js';
|
|
15
|
+
import { getMCPClientBySlug } from './pulsemcp-admin-client/lib/get-mcp-client-by-slug.js';
|
|
16
|
+
import { getMCPClientById } from './pulsemcp-admin-client/lib/get-mcp-client-by-id.js';
|
|
17
|
+
import { getMCPImplementationById } from './pulsemcp-admin-client/lib/get-mcp-implementation-by-id.js';
|
|
18
|
+
import { searchMCPImplementations } from './pulsemcp-admin-client/lib/search-mcp-implementations.js';
|
|
19
|
+
import { getDraftMCPImplementations } from './pulsemcp-admin-client/lib/get-draft-mcp-implementations.js';
|
|
20
|
+
import { saveMCPImplementation } from './pulsemcp-admin-client/lib/save-mcp-implementation.js';
|
|
21
|
+
import { createMCPImplementation } from './pulsemcp-admin-client/lib/create-mcp-implementation.js';
|
|
22
|
+
import { sendEmail } from './pulsemcp-admin-client/lib/send-email.js';
|
|
23
|
+
import { searchProviders } from './pulsemcp-admin-client/lib/search-providers.js';
|
|
24
|
+
import { getProviderById } from './pulsemcp-admin-client/lib/get-provider-by-id.js';
|
|
25
|
+
import { getOfficialMirrorQueueItems } from './pulsemcp-admin-client/lib/get-official-mirror-queue-items.js';
|
|
26
|
+
import { getOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/get-official-mirror-queue-item.js';
|
|
27
|
+
import { approveOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/approve-official-mirror-queue-item.js';
|
|
28
|
+
import { approveOfficialMirrorQueueItemWithoutModifying } from './pulsemcp-admin-client/lib/approve-official-mirror-queue-item-without-modifying.js';
|
|
29
|
+
import { rejectOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/reject-official-mirror-queue-item.js';
|
|
30
|
+
import { addOfficialMirrorToRegularQueue } from './pulsemcp-admin-client/lib/add-official-mirror-to-regular-queue.js';
|
|
31
|
+
import { unlinkOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/unlink-official-mirror-queue-item.js';
|
|
32
|
+
import { getUnofficialMirrors } from './pulsemcp-admin-client/lib/get-unofficial-mirrors.js';
|
|
33
|
+
import { getUnofficialMirror } from './pulsemcp-admin-client/lib/get-unofficial-mirror.js';
|
|
34
|
+
import { createUnofficialMirror } from './pulsemcp-admin-client/lib/create-unofficial-mirror.js';
|
|
35
|
+
import { updateUnofficialMirror } from './pulsemcp-admin-client/lib/update-unofficial-mirror.js';
|
|
36
|
+
import { deleteUnofficialMirror } from './pulsemcp-admin-client/lib/delete-unofficial-mirror.js';
|
|
37
|
+
import { getOfficialMirrors } from './pulsemcp-admin-client/lib/get-official-mirrors.js';
|
|
38
|
+
import { getOfficialMirror } from './pulsemcp-admin-client/lib/get-official-mirror.js';
|
|
39
|
+
import { getTenants } from './pulsemcp-admin-client/lib/get-tenants.js';
|
|
40
|
+
import { getTenant } from './pulsemcp-admin-client/lib/get-tenant.js';
|
|
41
|
+
import { getMcpJsons } from './pulsemcp-admin-client/lib/get-mcp-jsons.js';
|
|
42
|
+
import { getMcpJson } from './pulsemcp-admin-client/lib/get-mcp-json.js';
|
|
43
|
+
import { createMcpJson } from './pulsemcp-admin-client/lib/create-mcp-json.js';
|
|
44
|
+
import { updateMcpJson } from './pulsemcp-admin-client/lib/update-mcp-json.js';
|
|
45
|
+
import { deleteMcpJson } from './pulsemcp-admin-client/lib/delete-mcp-json.js';
|
|
46
|
+
import { getUnifiedMCPServers } from './pulsemcp-admin-client/lib/get-unified-mcp-servers.js';
|
|
47
|
+
import { getUnifiedMCPServer } from './pulsemcp-admin-client/lib/get-unified-mcp-server.js';
|
|
48
|
+
import { updateUnifiedMCPServer } from './pulsemcp-admin-client/lib/update-unified-mcp-server.js';
|
|
49
|
+
import { getRedirects } from './pulsemcp-admin-client/lib/get-redirects.js';
|
|
50
|
+
import { getRedirect } from './pulsemcp-admin-client/lib/get-redirect.js';
|
|
51
|
+
import { createRedirect } from './pulsemcp-admin-client/lib/create-redirect.js';
|
|
52
|
+
import { updateRedirect } from './pulsemcp-admin-client/lib/update-redirect.js';
|
|
53
|
+
import { deleteRedirect } from './pulsemcp-admin-client/lib/delete-redirect.js';
|
|
54
|
+
import { getGoodJobs } from './pulsemcp-admin-client/lib/get-good-jobs.js';
|
|
55
|
+
import { getGoodJob } from './pulsemcp-admin-client/lib/get-good-job.js';
|
|
56
|
+
import { getGoodJobCronSchedules } from './pulsemcp-admin-client/lib/get-good-job-cron-schedules.js';
|
|
57
|
+
import { getGoodJobProcesses } from './pulsemcp-admin-client/lib/get-good-job-processes.js';
|
|
58
|
+
import { getGoodJobStatistics } from './pulsemcp-admin-client/lib/get-good-job-statistics.js';
|
|
59
|
+
import { retryGoodJob } from './pulsemcp-admin-client/lib/retry-good-job.js';
|
|
60
|
+
import { discardGoodJob } from './pulsemcp-admin-client/lib/discard-good-job.js';
|
|
61
|
+
import { rescheduleGoodJob } from './pulsemcp-admin-client/lib/reschedule-good-job.js';
|
|
62
|
+
import { forceTriggerGoodJobCron } from './pulsemcp-admin-client/lib/force-trigger-good-job-cron.js';
|
|
63
|
+
import { cleanupGoodJobs } from './pulsemcp-admin-client/lib/cleanup-good-jobs.js';
|
|
64
|
+
import { runExamForMirror } from './pulsemcp-admin-client/lib/run-exam-for-mirror.js';
|
|
65
|
+
import { saveResultsForMirror } from './pulsemcp-admin-client/lib/save-results-for-mirror.js';
|
|
66
|
+
import { getProctorRuns } from './pulsemcp-admin-client/lib/get-proctor-runs.js';
|
|
67
|
+
import { getDiscoveredUrls } from './pulsemcp-admin-client/lib/get-discovered-urls.js';
|
|
68
|
+
import { markDiscoveredUrlProcessed } from './pulsemcp-admin-client/lib/mark-discovered-url-processed.js';
|
|
69
|
+
import { getDiscoveredUrlStats } from './pulsemcp-admin-client/lib/get-discovered-url-stats.js';
|
|
3
70
|
// PulseMCP Admin API client implementation
|
|
4
71
|
export class PulseMCPAdminClient {
|
|
5
72
|
apiKey;
|
|
@@ -9,273 +76,208 @@ export class PulseMCPAdminClient {
|
|
|
9
76
|
this.baseUrl = baseUrl || 'https://admin.pulsemcp.com';
|
|
10
77
|
}
|
|
11
78
|
async getPosts(params) {
|
|
12
|
-
const { getPosts } = await import('./pulsemcp-admin-client/lib/get-posts.js');
|
|
13
79
|
return getPosts(this.apiKey, this.baseUrl, params);
|
|
14
80
|
}
|
|
15
81
|
async getPost(slug) {
|
|
16
|
-
const { getPost } = await import('./pulsemcp-admin-client/lib/get-post.js');
|
|
17
82
|
return getPost(this.apiKey, this.baseUrl, slug);
|
|
18
83
|
}
|
|
19
84
|
async createPost(params) {
|
|
20
|
-
const { createPost } = await import('./pulsemcp-admin-client/lib/create-post.js');
|
|
21
85
|
return createPost(this.apiKey, this.baseUrl, params);
|
|
22
86
|
}
|
|
23
87
|
async updatePost(slug, params) {
|
|
24
|
-
const { updatePost } = await import('./pulsemcp-admin-client/lib/update-post.js');
|
|
25
88
|
return updatePost(this.apiKey, this.baseUrl, slug, params);
|
|
26
89
|
}
|
|
27
90
|
async uploadImage(postSlug, fileName, fileData) {
|
|
28
|
-
const { uploadImage } = await import('./pulsemcp-admin-client/lib/upload-image.js');
|
|
29
91
|
return uploadImage(this.apiKey, this.baseUrl, postSlug, fileName, fileData);
|
|
30
92
|
}
|
|
31
93
|
async getAuthors(params) {
|
|
32
|
-
const { getAuthors } = await import('./pulsemcp-admin-client/lib/get-authors.js');
|
|
33
94
|
return getAuthors(this.apiKey, this.baseUrl, params);
|
|
34
95
|
}
|
|
35
96
|
async getAuthorBySlug(slug) {
|
|
36
|
-
const { getAuthorBySlug } = await import('./pulsemcp-admin-client/lib/get-author-by-slug.js');
|
|
37
97
|
return getAuthorBySlug(this.apiKey, this.baseUrl, slug);
|
|
38
98
|
}
|
|
39
99
|
async getAuthorById(id) {
|
|
40
|
-
const { getAuthorById } = await import('./pulsemcp-admin-client/lib/get-author-by-id.js');
|
|
41
100
|
return getAuthorById(this.apiKey, this.baseUrl, id);
|
|
42
101
|
}
|
|
43
102
|
async getMCPServerBySlug(slug) {
|
|
44
|
-
const { getMCPServerBySlug } = await import('./pulsemcp-admin-client/lib/get-mcp-server-by-slug.js');
|
|
45
103
|
return getMCPServerBySlug(this.apiKey, this.baseUrl, slug);
|
|
46
104
|
}
|
|
47
105
|
async getMCPServerById(id) {
|
|
48
|
-
const { getMCPServerById } = await import('./pulsemcp-admin-client/lib/get-mcp-server-by-id.js');
|
|
49
106
|
return getMCPServerById(this.apiKey, this.baseUrl, id);
|
|
50
107
|
}
|
|
51
108
|
async getMCPClientBySlug(slug) {
|
|
52
|
-
const { getMCPClientBySlug } = await import('./pulsemcp-admin-client/lib/get-mcp-client-by-slug.js');
|
|
53
109
|
return getMCPClientBySlug(this.apiKey, this.baseUrl, slug);
|
|
54
110
|
}
|
|
55
111
|
async getMCPClientById(id) {
|
|
56
|
-
const { getMCPClientById } = await import('./pulsemcp-admin-client/lib/get-mcp-client-by-id.js');
|
|
57
112
|
return getMCPClientById(this.apiKey, this.baseUrl, id);
|
|
58
113
|
}
|
|
59
114
|
async getMCPImplementationById(id) {
|
|
60
|
-
const { getMCPImplementationById } = await import('./pulsemcp-admin-client/lib/get-mcp-implementation-by-id.js');
|
|
61
115
|
return getMCPImplementationById(this.apiKey, this.baseUrl, id);
|
|
62
116
|
}
|
|
63
117
|
async searchMCPImplementations(params) {
|
|
64
|
-
const { searchMCPImplementations } = await import('./pulsemcp-admin-client/lib/search-mcp-implementations.js');
|
|
65
118
|
return searchMCPImplementations(this.apiKey, this.baseUrl, params);
|
|
66
119
|
}
|
|
67
120
|
async getDraftMCPImplementations(params) {
|
|
68
|
-
const { getDraftMCPImplementations } = await import('./pulsemcp-admin-client/lib/get-draft-mcp-implementations.js');
|
|
69
121
|
return getDraftMCPImplementations(this.apiKey, this.baseUrl, params);
|
|
70
122
|
}
|
|
71
123
|
async saveMCPImplementation(id, params) {
|
|
72
|
-
const { saveMCPImplementation } = await import('./pulsemcp-admin-client/lib/save-mcp-implementation.js');
|
|
73
124
|
return saveMCPImplementation(this.apiKey, this.baseUrl, id, params);
|
|
74
125
|
}
|
|
75
126
|
async createMCPImplementation(params) {
|
|
76
|
-
const { createMCPImplementation } = await import('./pulsemcp-admin-client/lib/create-mcp-implementation.js');
|
|
77
127
|
return createMCPImplementation(this.apiKey, this.baseUrl, params);
|
|
78
128
|
}
|
|
79
129
|
async sendEmail(params) {
|
|
80
|
-
const { sendEmail } = await import('./pulsemcp-admin-client/lib/send-email.js');
|
|
81
130
|
return sendEmail(this.apiKey, this.baseUrl, params);
|
|
82
131
|
}
|
|
83
132
|
async searchProviders(params) {
|
|
84
|
-
const { searchProviders } = await import('./pulsemcp-admin-client/lib/search-providers.js');
|
|
85
133
|
return searchProviders(this.apiKey, this.baseUrl, params);
|
|
86
134
|
}
|
|
87
135
|
async getProviderById(id) {
|
|
88
|
-
const { getProviderById } = await import('./pulsemcp-admin-client/lib/get-provider-by-id.js');
|
|
89
136
|
return getProviderById(this.apiKey, this.baseUrl, id);
|
|
90
137
|
}
|
|
91
138
|
// Official Mirror Queue methods
|
|
92
139
|
async getOfficialMirrorQueueItems(params) {
|
|
93
|
-
const { getOfficialMirrorQueueItems } = await import('./pulsemcp-admin-client/lib/get-official-mirror-queue-items.js');
|
|
94
140
|
return getOfficialMirrorQueueItems(this.apiKey, this.baseUrl, params);
|
|
95
141
|
}
|
|
96
142
|
async getOfficialMirrorQueueItem(id) {
|
|
97
|
-
const { getOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/get-official-mirror-queue-item.js');
|
|
98
143
|
return getOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
99
144
|
}
|
|
100
145
|
async approveOfficialMirrorQueueItem(id, mcpServerSlug) {
|
|
101
|
-
const { approveOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/approve-official-mirror-queue-item.js');
|
|
102
146
|
return approveOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id, mcpServerSlug);
|
|
103
147
|
}
|
|
104
148
|
async approveOfficialMirrorQueueItemWithoutModifying(id) {
|
|
105
|
-
const { approveOfficialMirrorQueueItemWithoutModifying } = await import('./pulsemcp-admin-client/lib/approve-official-mirror-queue-item-without-modifying.js');
|
|
106
149
|
return approveOfficialMirrorQueueItemWithoutModifying(this.apiKey, this.baseUrl, id);
|
|
107
150
|
}
|
|
108
151
|
async rejectOfficialMirrorQueueItem(id) {
|
|
109
|
-
const { rejectOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/reject-official-mirror-queue-item.js');
|
|
110
152
|
return rejectOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
111
153
|
}
|
|
112
154
|
async addOfficialMirrorToRegularQueue(id) {
|
|
113
|
-
const { addOfficialMirrorToRegularQueue } = await import('./pulsemcp-admin-client/lib/add-official-mirror-to-regular-queue.js');
|
|
114
155
|
return addOfficialMirrorToRegularQueue(this.apiKey, this.baseUrl, id);
|
|
115
156
|
}
|
|
116
157
|
async unlinkOfficialMirrorQueueItem(id) {
|
|
117
|
-
const { unlinkOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/unlink-official-mirror-queue-item.js');
|
|
118
158
|
return unlinkOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
119
159
|
}
|
|
120
160
|
// Unofficial Mirror REST API methods
|
|
121
161
|
async getUnofficialMirrors(params) {
|
|
122
|
-
const { getUnofficialMirrors } = await import('./pulsemcp-admin-client/lib/get-unofficial-mirrors.js');
|
|
123
162
|
return getUnofficialMirrors(this.apiKey, this.baseUrl, params);
|
|
124
163
|
}
|
|
125
164
|
async getUnofficialMirror(id) {
|
|
126
|
-
const { getUnofficialMirror } = await import('./pulsemcp-admin-client/lib/get-unofficial-mirror.js');
|
|
127
165
|
return getUnofficialMirror(this.apiKey, this.baseUrl, id);
|
|
128
166
|
}
|
|
129
167
|
async createUnofficialMirror(params) {
|
|
130
|
-
const { createUnofficialMirror } = await import('./pulsemcp-admin-client/lib/create-unofficial-mirror.js');
|
|
131
168
|
return createUnofficialMirror(this.apiKey, this.baseUrl, params);
|
|
132
169
|
}
|
|
133
170
|
async updateUnofficialMirror(id, params) {
|
|
134
|
-
const { updateUnofficialMirror } = await import('./pulsemcp-admin-client/lib/update-unofficial-mirror.js');
|
|
135
171
|
return updateUnofficialMirror(this.apiKey, this.baseUrl, id, params);
|
|
136
172
|
}
|
|
137
173
|
async deleteUnofficialMirror(id) {
|
|
138
|
-
const { deleteUnofficialMirror } = await import('./pulsemcp-admin-client/lib/delete-unofficial-mirror.js');
|
|
139
174
|
return deleteUnofficialMirror(this.apiKey, this.baseUrl, id);
|
|
140
175
|
}
|
|
141
176
|
// Official Mirror REST API methods (read-only)
|
|
142
177
|
async getOfficialMirrors(params) {
|
|
143
|
-
const { getOfficialMirrors } = await import('./pulsemcp-admin-client/lib/get-official-mirrors.js');
|
|
144
178
|
return getOfficialMirrors(this.apiKey, this.baseUrl, params);
|
|
145
179
|
}
|
|
146
180
|
async getOfficialMirror(id) {
|
|
147
|
-
const { getOfficialMirror } = await import('./pulsemcp-admin-client/lib/get-official-mirror.js');
|
|
148
181
|
return getOfficialMirror(this.apiKey, this.baseUrl, id);
|
|
149
182
|
}
|
|
150
183
|
// Tenant REST API methods (read-only)
|
|
151
184
|
async getTenants(params) {
|
|
152
|
-
const { getTenants } = await import('./pulsemcp-admin-client/lib/get-tenants.js');
|
|
153
185
|
return getTenants(this.apiKey, this.baseUrl, params);
|
|
154
186
|
}
|
|
155
187
|
async getTenant(idOrSlug) {
|
|
156
|
-
const { getTenant } = await import('./pulsemcp-admin-client/lib/get-tenant.js');
|
|
157
188
|
return getTenant(this.apiKey, this.baseUrl, idOrSlug);
|
|
158
189
|
}
|
|
159
190
|
// MCP JSON REST API methods
|
|
160
191
|
async getMcpJsons(params) {
|
|
161
|
-
const { getMcpJsons } = await import('./pulsemcp-admin-client/lib/get-mcp-jsons.js');
|
|
162
192
|
return getMcpJsons(this.apiKey, this.baseUrl, params);
|
|
163
193
|
}
|
|
164
194
|
async getMcpJson(id) {
|
|
165
|
-
const { getMcpJson } = await import('./pulsemcp-admin-client/lib/get-mcp-json.js');
|
|
166
195
|
return getMcpJson(this.apiKey, this.baseUrl, id);
|
|
167
196
|
}
|
|
168
197
|
async createMcpJson(params) {
|
|
169
|
-
const { createMcpJson } = await import('./pulsemcp-admin-client/lib/create-mcp-json.js');
|
|
170
198
|
return createMcpJson(this.apiKey, this.baseUrl, params);
|
|
171
199
|
}
|
|
172
200
|
async updateMcpJson(id, params) {
|
|
173
|
-
const { updateMcpJson } = await import('./pulsemcp-admin-client/lib/update-mcp-json.js');
|
|
174
201
|
return updateMcpJson(this.apiKey, this.baseUrl, id, params);
|
|
175
202
|
}
|
|
176
203
|
async deleteMcpJson(id) {
|
|
177
|
-
const { deleteMcpJson } = await import('./pulsemcp-admin-client/lib/delete-mcp-json.js');
|
|
178
204
|
return deleteMcpJson(this.apiKey, this.baseUrl, id);
|
|
179
205
|
}
|
|
180
206
|
// Unified MCP Server methods (abstracted interface)
|
|
181
207
|
async getUnifiedMCPServers(params) {
|
|
182
|
-
const { getUnifiedMCPServers } = await import('./pulsemcp-admin-client/lib/get-unified-mcp-servers.js');
|
|
183
208
|
return getUnifiedMCPServers(this.apiKey, this.baseUrl, params);
|
|
184
209
|
}
|
|
185
210
|
async getUnifiedMCPServer(slug) {
|
|
186
|
-
const { getUnifiedMCPServer } = await import('./pulsemcp-admin-client/lib/get-unified-mcp-server.js');
|
|
187
211
|
return getUnifiedMCPServer(this.apiKey, this.baseUrl, slug);
|
|
188
212
|
}
|
|
189
213
|
async updateUnifiedMCPServer(implementationId, params) {
|
|
190
|
-
const { updateUnifiedMCPServer } = await import('./pulsemcp-admin-client/lib/update-unified-mcp-server.js');
|
|
191
214
|
return updateUnifiedMCPServer(this.apiKey, this.baseUrl, implementationId, params);
|
|
192
215
|
}
|
|
193
216
|
// Redirect REST API methods
|
|
194
217
|
async getRedirects(params) {
|
|
195
|
-
const { getRedirects } = await import('./pulsemcp-admin-client/lib/get-redirects.js');
|
|
196
218
|
return getRedirects(this.apiKey, this.baseUrl, params);
|
|
197
219
|
}
|
|
198
220
|
async getRedirect(id) {
|
|
199
|
-
const { getRedirect } = await import('./pulsemcp-admin-client/lib/get-redirect.js');
|
|
200
221
|
return getRedirect(this.apiKey, this.baseUrl, id);
|
|
201
222
|
}
|
|
202
223
|
async createRedirect(params) {
|
|
203
|
-
const { createRedirect } = await import('./pulsemcp-admin-client/lib/create-redirect.js');
|
|
204
224
|
return createRedirect(this.apiKey, this.baseUrl, params);
|
|
205
225
|
}
|
|
206
226
|
async updateRedirect(id, params) {
|
|
207
|
-
const { updateRedirect } = await import('./pulsemcp-admin-client/lib/update-redirect.js');
|
|
208
227
|
return updateRedirect(this.apiKey, this.baseUrl, id, params);
|
|
209
228
|
}
|
|
210
229
|
async deleteRedirect(id) {
|
|
211
|
-
const { deleteRedirect } = await import('./pulsemcp-admin-client/lib/delete-redirect.js');
|
|
212
230
|
return deleteRedirect(this.apiKey, this.baseUrl, id);
|
|
213
231
|
}
|
|
214
232
|
// GoodJob REST API methods
|
|
215
233
|
async getGoodJobs(params) {
|
|
216
|
-
const { getGoodJobs } = await import('./pulsemcp-admin-client/lib/get-good-jobs.js');
|
|
217
234
|
return getGoodJobs(this.apiKey, this.baseUrl, params);
|
|
218
235
|
}
|
|
219
236
|
async getGoodJob(id) {
|
|
220
|
-
const { getGoodJob } = await import('./pulsemcp-admin-client/lib/get-good-job.js');
|
|
221
237
|
return getGoodJob(this.apiKey, this.baseUrl, id);
|
|
222
238
|
}
|
|
223
239
|
async getGoodJobCronSchedules() {
|
|
224
|
-
const { getGoodJobCronSchedules } = await import('./pulsemcp-admin-client/lib/get-good-job-cron-schedules.js');
|
|
225
240
|
return getGoodJobCronSchedules(this.apiKey, this.baseUrl);
|
|
226
241
|
}
|
|
227
242
|
async getGoodJobProcesses() {
|
|
228
|
-
const { getGoodJobProcesses } = await import('./pulsemcp-admin-client/lib/get-good-job-processes.js');
|
|
229
243
|
return getGoodJobProcesses(this.apiKey, this.baseUrl);
|
|
230
244
|
}
|
|
231
245
|
async getGoodJobStatistics() {
|
|
232
|
-
const { getGoodJobStatistics } = await import('./pulsemcp-admin-client/lib/get-good-job-statistics.js');
|
|
233
246
|
return getGoodJobStatistics(this.apiKey, this.baseUrl);
|
|
234
247
|
}
|
|
235
248
|
async retryGoodJob(id) {
|
|
236
|
-
const { retryGoodJob } = await import('./pulsemcp-admin-client/lib/retry-good-job.js');
|
|
237
249
|
return retryGoodJob(this.apiKey, this.baseUrl, id);
|
|
238
250
|
}
|
|
239
251
|
async discardGoodJob(id) {
|
|
240
|
-
const { discardGoodJob } = await import('./pulsemcp-admin-client/lib/discard-good-job.js');
|
|
241
252
|
return discardGoodJob(this.apiKey, this.baseUrl, id);
|
|
242
253
|
}
|
|
243
254
|
async rescheduleGoodJob(id, scheduledAt) {
|
|
244
|
-
const { rescheduleGoodJob } = await import('./pulsemcp-admin-client/lib/reschedule-good-job.js');
|
|
245
255
|
return rescheduleGoodJob(this.apiKey, this.baseUrl, id, scheduledAt);
|
|
246
256
|
}
|
|
247
257
|
async forceTriggerGoodJobCron(cronKey) {
|
|
248
|
-
const { forceTriggerGoodJobCron } = await import('./pulsemcp-admin-client/lib/force-trigger-good-job-cron.js');
|
|
249
258
|
return forceTriggerGoodJobCron(this.apiKey, this.baseUrl, cronKey);
|
|
250
259
|
}
|
|
251
260
|
async cleanupGoodJobs(params) {
|
|
252
|
-
const { cleanupGoodJobs } = await import('./pulsemcp-admin-client/lib/cleanup-good-jobs.js');
|
|
253
261
|
return cleanupGoodJobs(this.apiKey, this.baseUrl, params);
|
|
254
262
|
}
|
|
255
263
|
// Proctor REST API methods
|
|
256
264
|
async runExamForMirror(params) {
|
|
257
|
-
const { runExamForMirror } = await import('./pulsemcp-admin-client/lib/run-exam-for-mirror.js');
|
|
258
265
|
return runExamForMirror(this.apiKey, this.baseUrl, params);
|
|
259
266
|
}
|
|
260
267
|
async saveResultsForMirror(params) {
|
|
261
|
-
const { saveResultsForMirror } = await import('./pulsemcp-admin-client/lib/save-results-for-mirror.js');
|
|
262
268
|
return saveResultsForMirror(this.apiKey, this.baseUrl, params);
|
|
263
269
|
}
|
|
264
270
|
async getProctorRuns(params) {
|
|
265
|
-
const { getProctorRuns } = await import('./pulsemcp-admin-client/lib/get-proctor-runs.js');
|
|
266
271
|
return getProctorRuns(this.apiKey, this.baseUrl, params);
|
|
267
272
|
}
|
|
268
273
|
// Discovered URL REST API methods
|
|
269
274
|
async getDiscoveredUrls(params) {
|
|
270
|
-
const { getDiscoveredUrls } = await import('./pulsemcp-admin-client/lib/get-discovered-urls.js');
|
|
271
275
|
return getDiscoveredUrls(this.apiKey, this.baseUrl, params);
|
|
272
276
|
}
|
|
273
277
|
async markDiscoveredUrlProcessed(params) {
|
|
274
|
-
const { markDiscoveredUrlProcessed } = await import('./pulsemcp-admin-client/lib/mark-discovered-url-processed.js');
|
|
275
278
|
return markDiscoveredUrlProcessed(this.apiKey, this.baseUrl, params);
|
|
276
279
|
}
|
|
277
280
|
async getDiscoveredUrlStats() {
|
|
278
|
-
const { getDiscoveredUrlStats } = await import('./pulsemcp-admin-client/lib/get-discovered-url-stats.js');
|
|
279
281
|
return getDiscoveredUrlStats(this.apiKey, this.baseUrl);
|
|
280
282
|
}
|
|
281
283
|
}
|
package/package.json
CHANGED
package/shared/server.js
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
2
|
import { createRegisterTools } from './tools.js';
|
|
3
|
+
// Static imports for all API client functions (replaces dynamic imports
|
|
4
|
+
// which can fail at runtime in some environments due to ESM resolution)
|
|
5
|
+
import { getPosts } from './pulsemcp-admin-client/lib/get-posts.js';
|
|
6
|
+
import { getPost } from './pulsemcp-admin-client/lib/get-post.js';
|
|
7
|
+
import { createPost } from './pulsemcp-admin-client/lib/create-post.js';
|
|
8
|
+
import { updatePost } from './pulsemcp-admin-client/lib/update-post.js';
|
|
9
|
+
import { uploadImage } from './pulsemcp-admin-client/lib/upload-image.js';
|
|
10
|
+
import { getAuthors } from './pulsemcp-admin-client/lib/get-authors.js';
|
|
11
|
+
import { getAuthorBySlug } from './pulsemcp-admin-client/lib/get-author-by-slug.js';
|
|
12
|
+
import { getAuthorById } from './pulsemcp-admin-client/lib/get-author-by-id.js';
|
|
13
|
+
import { getMCPServerBySlug } from './pulsemcp-admin-client/lib/get-mcp-server-by-slug.js';
|
|
14
|
+
import { getMCPServerById } from './pulsemcp-admin-client/lib/get-mcp-server-by-id.js';
|
|
15
|
+
import { getMCPClientBySlug } from './pulsemcp-admin-client/lib/get-mcp-client-by-slug.js';
|
|
16
|
+
import { getMCPClientById } from './pulsemcp-admin-client/lib/get-mcp-client-by-id.js';
|
|
17
|
+
import { getMCPImplementationById } from './pulsemcp-admin-client/lib/get-mcp-implementation-by-id.js';
|
|
18
|
+
import { searchMCPImplementations } from './pulsemcp-admin-client/lib/search-mcp-implementations.js';
|
|
19
|
+
import { getDraftMCPImplementations } from './pulsemcp-admin-client/lib/get-draft-mcp-implementations.js';
|
|
20
|
+
import { saveMCPImplementation } from './pulsemcp-admin-client/lib/save-mcp-implementation.js';
|
|
21
|
+
import { createMCPImplementation } from './pulsemcp-admin-client/lib/create-mcp-implementation.js';
|
|
22
|
+
import { sendEmail } from './pulsemcp-admin-client/lib/send-email.js';
|
|
23
|
+
import { searchProviders } from './pulsemcp-admin-client/lib/search-providers.js';
|
|
24
|
+
import { getProviderById } from './pulsemcp-admin-client/lib/get-provider-by-id.js';
|
|
25
|
+
import { getOfficialMirrorQueueItems } from './pulsemcp-admin-client/lib/get-official-mirror-queue-items.js';
|
|
26
|
+
import { getOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/get-official-mirror-queue-item.js';
|
|
27
|
+
import { approveOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/approve-official-mirror-queue-item.js';
|
|
28
|
+
import { approveOfficialMirrorQueueItemWithoutModifying } from './pulsemcp-admin-client/lib/approve-official-mirror-queue-item-without-modifying.js';
|
|
29
|
+
import { rejectOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/reject-official-mirror-queue-item.js';
|
|
30
|
+
import { addOfficialMirrorToRegularQueue } from './pulsemcp-admin-client/lib/add-official-mirror-to-regular-queue.js';
|
|
31
|
+
import { unlinkOfficialMirrorQueueItem } from './pulsemcp-admin-client/lib/unlink-official-mirror-queue-item.js';
|
|
32
|
+
import { getUnofficialMirrors } from './pulsemcp-admin-client/lib/get-unofficial-mirrors.js';
|
|
33
|
+
import { getUnofficialMirror } from './pulsemcp-admin-client/lib/get-unofficial-mirror.js';
|
|
34
|
+
import { createUnofficialMirror } from './pulsemcp-admin-client/lib/create-unofficial-mirror.js';
|
|
35
|
+
import { updateUnofficialMirror } from './pulsemcp-admin-client/lib/update-unofficial-mirror.js';
|
|
36
|
+
import { deleteUnofficialMirror } from './pulsemcp-admin-client/lib/delete-unofficial-mirror.js';
|
|
37
|
+
import { getOfficialMirrors } from './pulsemcp-admin-client/lib/get-official-mirrors.js';
|
|
38
|
+
import { getOfficialMirror } from './pulsemcp-admin-client/lib/get-official-mirror.js';
|
|
39
|
+
import { getTenants } from './pulsemcp-admin-client/lib/get-tenants.js';
|
|
40
|
+
import { getTenant } from './pulsemcp-admin-client/lib/get-tenant.js';
|
|
41
|
+
import { getMcpJsons } from './pulsemcp-admin-client/lib/get-mcp-jsons.js';
|
|
42
|
+
import { getMcpJson } from './pulsemcp-admin-client/lib/get-mcp-json.js';
|
|
43
|
+
import { createMcpJson } from './pulsemcp-admin-client/lib/create-mcp-json.js';
|
|
44
|
+
import { updateMcpJson } from './pulsemcp-admin-client/lib/update-mcp-json.js';
|
|
45
|
+
import { deleteMcpJson } from './pulsemcp-admin-client/lib/delete-mcp-json.js';
|
|
46
|
+
import { getUnifiedMCPServers } from './pulsemcp-admin-client/lib/get-unified-mcp-servers.js';
|
|
47
|
+
import { getUnifiedMCPServer } from './pulsemcp-admin-client/lib/get-unified-mcp-server.js';
|
|
48
|
+
import { updateUnifiedMCPServer } from './pulsemcp-admin-client/lib/update-unified-mcp-server.js';
|
|
49
|
+
import { getRedirects } from './pulsemcp-admin-client/lib/get-redirects.js';
|
|
50
|
+
import { getRedirect } from './pulsemcp-admin-client/lib/get-redirect.js';
|
|
51
|
+
import { createRedirect } from './pulsemcp-admin-client/lib/create-redirect.js';
|
|
52
|
+
import { updateRedirect } from './pulsemcp-admin-client/lib/update-redirect.js';
|
|
53
|
+
import { deleteRedirect } from './pulsemcp-admin-client/lib/delete-redirect.js';
|
|
54
|
+
import { getGoodJobs } from './pulsemcp-admin-client/lib/get-good-jobs.js';
|
|
55
|
+
import { getGoodJob } from './pulsemcp-admin-client/lib/get-good-job.js';
|
|
56
|
+
import { getGoodJobCronSchedules } from './pulsemcp-admin-client/lib/get-good-job-cron-schedules.js';
|
|
57
|
+
import { getGoodJobProcesses } from './pulsemcp-admin-client/lib/get-good-job-processes.js';
|
|
58
|
+
import { getGoodJobStatistics } from './pulsemcp-admin-client/lib/get-good-job-statistics.js';
|
|
59
|
+
import { retryGoodJob } from './pulsemcp-admin-client/lib/retry-good-job.js';
|
|
60
|
+
import { discardGoodJob } from './pulsemcp-admin-client/lib/discard-good-job.js';
|
|
61
|
+
import { rescheduleGoodJob } from './pulsemcp-admin-client/lib/reschedule-good-job.js';
|
|
62
|
+
import { forceTriggerGoodJobCron } from './pulsemcp-admin-client/lib/force-trigger-good-job-cron.js';
|
|
63
|
+
import { cleanupGoodJobs } from './pulsemcp-admin-client/lib/cleanup-good-jobs.js';
|
|
64
|
+
import { runExamForMirror } from './pulsemcp-admin-client/lib/run-exam-for-mirror.js';
|
|
65
|
+
import { saveResultsForMirror } from './pulsemcp-admin-client/lib/save-results-for-mirror.js';
|
|
66
|
+
import { getProctorRuns } from './pulsemcp-admin-client/lib/get-proctor-runs.js';
|
|
67
|
+
import { getDiscoveredUrls } from './pulsemcp-admin-client/lib/get-discovered-urls.js';
|
|
68
|
+
import { markDiscoveredUrlProcessed } from './pulsemcp-admin-client/lib/mark-discovered-url-processed.js';
|
|
69
|
+
import { getDiscoveredUrlStats } from './pulsemcp-admin-client/lib/get-discovered-url-stats.js';
|
|
3
70
|
// PulseMCP Admin API client implementation
|
|
4
71
|
export class PulseMCPAdminClient {
|
|
5
72
|
apiKey;
|
|
@@ -9,273 +76,208 @@ export class PulseMCPAdminClient {
|
|
|
9
76
|
this.baseUrl = baseUrl || 'https://admin.pulsemcp.com';
|
|
10
77
|
}
|
|
11
78
|
async getPosts(params) {
|
|
12
|
-
const { getPosts } = await import('./pulsemcp-admin-client/lib/get-posts.js');
|
|
13
79
|
return getPosts(this.apiKey, this.baseUrl, params);
|
|
14
80
|
}
|
|
15
81
|
async getPost(slug) {
|
|
16
|
-
const { getPost } = await import('./pulsemcp-admin-client/lib/get-post.js');
|
|
17
82
|
return getPost(this.apiKey, this.baseUrl, slug);
|
|
18
83
|
}
|
|
19
84
|
async createPost(params) {
|
|
20
|
-
const { createPost } = await import('./pulsemcp-admin-client/lib/create-post.js');
|
|
21
85
|
return createPost(this.apiKey, this.baseUrl, params);
|
|
22
86
|
}
|
|
23
87
|
async updatePost(slug, params) {
|
|
24
|
-
const { updatePost } = await import('./pulsemcp-admin-client/lib/update-post.js');
|
|
25
88
|
return updatePost(this.apiKey, this.baseUrl, slug, params);
|
|
26
89
|
}
|
|
27
90
|
async uploadImage(postSlug, fileName, fileData) {
|
|
28
|
-
const { uploadImage } = await import('./pulsemcp-admin-client/lib/upload-image.js');
|
|
29
91
|
return uploadImage(this.apiKey, this.baseUrl, postSlug, fileName, fileData);
|
|
30
92
|
}
|
|
31
93
|
async getAuthors(params) {
|
|
32
|
-
const { getAuthors } = await import('./pulsemcp-admin-client/lib/get-authors.js');
|
|
33
94
|
return getAuthors(this.apiKey, this.baseUrl, params);
|
|
34
95
|
}
|
|
35
96
|
async getAuthorBySlug(slug) {
|
|
36
|
-
const { getAuthorBySlug } = await import('./pulsemcp-admin-client/lib/get-author-by-slug.js');
|
|
37
97
|
return getAuthorBySlug(this.apiKey, this.baseUrl, slug);
|
|
38
98
|
}
|
|
39
99
|
async getAuthorById(id) {
|
|
40
|
-
const { getAuthorById } = await import('./pulsemcp-admin-client/lib/get-author-by-id.js');
|
|
41
100
|
return getAuthorById(this.apiKey, this.baseUrl, id);
|
|
42
101
|
}
|
|
43
102
|
async getMCPServerBySlug(slug) {
|
|
44
|
-
const { getMCPServerBySlug } = await import('./pulsemcp-admin-client/lib/get-mcp-server-by-slug.js');
|
|
45
103
|
return getMCPServerBySlug(this.apiKey, this.baseUrl, slug);
|
|
46
104
|
}
|
|
47
105
|
async getMCPServerById(id) {
|
|
48
|
-
const { getMCPServerById } = await import('./pulsemcp-admin-client/lib/get-mcp-server-by-id.js');
|
|
49
106
|
return getMCPServerById(this.apiKey, this.baseUrl, id);
|
|
50
107
|
}
|
|
51
108
|
async getMCPClientBySlug(slug) {
|
|
52
|
-
const { getMCPClientBySlug } = await import('./pulsemcp-admin-client/lib/get-mcp-client-by-slug.js');
|
|
53
109
|
return getMCPClientBySlug(this.apiKey, this.baseUrl, slug);
|
|
54
110
|
}
|
|
55
111
|
async getMCPClientById(id) {
|
|
56
|
-
const { getMCPClientById } = await import('./pulsemcp-admin-client/lib/get-mcp-client-by-id.js');
|
|
57
112
|
return getMCPClientById(this.apiKey, this.baseUrl, id);
|
|
58
113
|
}
|
|
59
114
|
async getMCPImplementationById(id) {
|
|
60
|
-
const { getMCPImplementationById } = await import('./pulsemcp-admin-client/lib/get-mcp-implementation-by-id.js');
|
|
61
115
|
return getMCPImplementationById(this.apiKey, this.baseUrl, id);
|
|
62
116
|
}
|
|
63
117
|
async searchMCPImplementations(params) {
|
|
64
|
-
const { searchMCPImplementations } = await import('./pulsemcp-admin-client/lib/search-mcp-implementations.js');
|
|
65
118
|
return searchMCPImplementations(this.apiKey, this.baseUrl, params);
|
|
66
119
|
}
|
|
67
120
|
async getDraftMCPImplementations(params) {
|
|
68
|
-
const { getDraftMCPImplementations } = await import('./pulsemcp-admin-client/lib/get-draft-mcp-implementations.js');
|
|
69
121
|
return getDraftMCPImplementations(this.apiKey, this.baseUrl, params);
|
|
70
122
|
}
|
|
71
123
|
async saveMCPImplementation(id, params) {
|
|
72
|
-
const { saveMCPImplementation } = await import('./pulsemcp-admin-client/lib/save-mcp-implementation.js');
|
|
73
124
|
return saveMCPImplementation(this.apiKey, this.baseUrl, id, params);
|
|
74
125
|
}
|
|
75
126
|
async createMCPImplementation(params) {
|
|
76
|
-
const { createMCPImplementation } = await import('./pulsemcp-admin-client/lib/create-mcp-implementation.js');
|
|
77
127
|
return createMCPImplementation(this.apiKey, this.baseUrl, params);
|
|
78
128
|
}
|
|
79
129
|
async sendEmail(params) {
|
|
80
|
-
const { sendEmail } = await import('./pulsemcp-admin-client/lib/send-email.js');
|
|
81
130
|
return sendEmail(this.apiKey, this.baseUrl, params);
|
|
82
131
|
}
|
|
83
132
|
async searchProviders(params) {
|
|
84
|
-
const { searchProviders } = await import('./pulsemcp-admin-client/lib/search-providers.js');
|
|
85
133
|
return searchProviders(this.apiKey, this.baseUrl, params);
|
|
86
134
|
}
|
|
87
135
|
async getProviderById(id) {
|
|
88
|
-
const { getProviderById } = await import('./pulsemcp-admin-client/lib/get-provider-by-id.js');
|
|
89
136
|
return getProviderById(this.apiKey, this.baseUrl, id);
|
|
90
137
|
}
|
|
91
138
|
// Official Mirror Queue methods
|
|
92
139
|
async getOfficialMirrorQueueItems(params) {
|
|
93
|
-
const { getOfficialMirrorQueueItems } = await import('./pulsemcp-admin-client/lib/get-official-mirror-queue-items.js');
|
|
94
140
|
return getOfficialMirrorQueueItems(this.apiKey, this.baseUrl, params);
|
|
95
141
|
}
|
|
96
142
|
async getOfficialMirrorQueueItem(id) {
|
|
97
|
-
const { getOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/get-official-mirror-queue-item.js');
|
|
98
143
|
return getOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
99
144
|
}
|
|
100
145
|
async approveOfficialMirrorQueueItem(id, mcpServerSlug) {
|
|
101
|
-
const { approveOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/approve-official-mirror-queue-item.js');
|
|
102
146
|
return approveOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id, mcpServerSlug);
|
|
103
147
|
}
|
|
104
148
|
async approveOfficialMirrorQueueItemWithoutModifying(id) {
|
|
105
|
-
const { approveOfficialMirrorQueueItemWithoutModifying } = await import('./pulsemcp-admin-client/lib/approve-official-mirror-queue-item-without-modifying.js');
|
|
106
149
|
return approveOfficialMirrorQueueItemWithoutModifying(this.apiKey, this.baseUrl, id);
|
|
107
150
|
}
|
|
108
151
|
async rejectOfficialMirrorQueueItem(id) {
|
|
109
|
-
const { rejectOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/reject-official-mirror-queue-item.js');
|
|
110
152
|
return rejectOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
111
153
|
}
|
|
112
154
|
async addOfficialMirrorToRegularQueue(id) {
|
|
113
|
-
const { addOfficialMirrorToRegularQueue } = await import('./pulsemcp-admin-client/lib/add-official-mirror-to-regular-queue.js');
|
|
114
155
|
return addOfficialMirrorToRegularQueue(this.apiKey, this.baseUrl, id);
|
|
115
156
|
}
|
|
116
157
|
async unlinkOfficialMirrorQueueItem(id) {
|
|
117
|
-
const { unlinkOfficialMirrorQueueItem } = await import('./pulsemcp-admin-client/lib/unlink-official-mirror-queue-item.js');
|
|
118
158
|
return unlinkOfficialMirrorQueueItem(this.apiKey, this.baseUrl, id);
|
|
119
159
|
}
|
|
120
160
|
// Unofficial Mirror REST API methods
|
|
121
161
|
async getUnofficialMirrors(params) {
|
|
122
|
-
const { getUnofficialMirrors } = await import('./pulsemcp-admin-client/lib/get-unofficial-mirrors.js');
|
|
123
162
|
return getUnofficialMirrors(this.apiKey, this.baseUrl, params);
|
|
124
163
|
}
|
|
125
164
|
async getUnofficialMirror(id) {
|
|
126
|
-
const { getUnofficialMirror } = await import('./pulsemcp-admin-client/lib/get-unofficial-mirror.js');
|
|
127
165
|
return getUnofficialMirror(this.apiKey, this.baseUrl, id);
|
|
128
166
|
}
|
|
129
167
|
async createUnofficialMirror(params) {
|
|
130
|
-
const { createUnofficialMirror } = await import('./pulsemcp-admin-client/lib/create-unofficial-mirror.js');
|
|
131
168
|
return createUnofficialMirror(this.apiKey, this.baseUrl, params);
|
|
132
169
|
}
|
|
133
170
|
async updateUnofficialMirror(id, params) {
|
|
134
|
-
const { updateUnofficialMirror } = await import('./pulsemcp-admin-client/lib/update-unofficial-mirror.js');
|
|
135
171
|
return updateUnofficialMirror(this.apiKey, this.baseUrl, id, params);
|
|
136
172
|
}
|
|
137
173
|
async deleteUnofficialMirror(id) {
|
|
138
|
-
const { deleteUnofficialMirror } = await import('./pulsemcp-admin-client/lib/delete-unofficial-mirror.js');
|
|
139
174
|
return deleteUnofficialMirror(this.apiKey, this.baseUrl, id);
|
|
140
175
|
}
|
|
141
176
|
// Official Mirror REST API methods (read-only)
|
|
142
177
|
async getOfficialMirrors(params) {
|
|
143
|
-
const { getOfficialMirrors } = await import('./pulsemcp-admin-client/lib/get-official-mirrors.js');
|
|
144
178
|
return getOfficialMirrors(this.apiKey, this.baseUrl, params);
|
|
145
179
|
}
|
|
146
180
|
async getOfficialMirror(id) {
|
|
147
|
-
const { getOfficialMirror } = await import('./pulsemcp-admin-client/lib/get-official-mirror.js');
|
|
148
181
|
return getOfficialMirror(this.apiKey, this.baseUrl, id);
|
|
149
182
|
}
|
|
150
183
|
// Tenant REST API methods (read-only)
|
|
151
184
|
async getTenants(params) {
|
|
152
|
-
const { getTenants } = await import('./pulsemcp-admin-client/lib/get-tenants.js');
|
|
153
185
|
return getTenants(this.apiKey, this.baseUrl, params);
|
|
154
186
|
}
|
|
155
187
|
async getTenant(idOrSlug) {
|
|
156
|
-
const { getTenant } = await import('./pulsemcp-admin-client/lib/get-tenant.js');
|
|
157
188
|
return getTenant(this.apiKey, this.baseUrl, idOrSlug);
|
|
158
189
|
}
|
|
159
190
|
// MCP JSON REST API methods
|
|
160
191
|
async getMcpJsons(params) {
|
|
161
|
-
const { getMcpJsons } = await import('./pulsemcp-admin-client/lib/get-mcp-jsons.js');
|
|
162
192
|
return getMcpJsons(this.apiKey, this.baseUrl, params);
|
|
163
193
|
}
|
|
164
194
|
async getMcpJson(id) {
|
|
165
|
-
const { getMcpJson } = await import('./pulsemcp-admin-client/lib/get-mcp-json.js');
|
|
166
195
|
return getMcpJson(this.apiKey, this.baseUrl, id);
|
|
167
196
|
}
|
|
168
197
|
async createMcpJson(params) {
|
|
169
|
-
const { createMcpJson } = await import('./pulsemcp-admin-client/lib/create-mcp-json.js');
|
|
170
198
|
return createMcpJson(this.apiKey, this.baseUrl, params);
|
|
171
199
|
}
|
|
172
200
|
async updateMcpJson(id, params) {
|
|
173
|
-
const { updateMcpJson } = await import('./pulsemcp-admin-client/lib/update-mcp-json.js');
|
|
174
201
|
return updateMcpJson(this.apiKey, this.baseUrl, id, params);
|
|
175
202
|
}
|
|
176
203
|
async deleteMcpJson(id) {
|
|
177
|
-
const { deleteMcpJson } = await import('./pulsemcp-admin-client/lib/delete-mcp-json.js');
|
|
178
204
|
return deleteMcpJson(this.apiKey, this.baseUrl, id);
|
|
179
205
|
}
|
|
180
206
|
// Unified MCP Server methods (abstracted interface)
|
|
181
207
|
async getUnifiedMCPServers(params) {
|
|
182
|
-
const { getUnifiedMCPServers } = await import('./pulsemcp-admin-client/lib/get-unified-mcp-servers.js');
|
|
183
208
|
return getUnifiedMCPServers(this.apiKey, this.baseUrl, params);
|
|
184
209
|
}
|
|
185
210
|
async getUnifiedMCPServer(slug) {
|
|
186
|
-
const { getUnifiedMCPServer } = await import('./pulsemcp-admin-client/lib/get-unified-mcp-server.js');
|
|
187
211
|
return getUnifiedMCPServer(this.apiKey, this.baseUrl, slug);
|
|
188
212
|
}
|
|
189
213
|
async updateUnifiedMCPServer(implementationId, params) {
|
|
190
|
-
const { updateUnifiedMCPServer } = await import('./pulsemcp-admin-client/lib/update-unified-mcp-server.js');
|
|
191
214
|
return updateUnifiedMCPServer(this.apiKey, this.baseUrl, implementationId, params);
|
|
192
215
|
}
|
|
193
216
|
// Redirect REST API methods
|
|
194
217
|
async getRedirects(params) {
|
|
195
|
-
const { getRedirects } = await import('./pulsemcp-admin-client/lib/get-redirects.js');
|
|
196
218
|
return getRedirects(this.apiKey, this.baseUrl, params);
|
|
197
219
|
}
|
|
198
220
|
async getRedirect(id) {
|
|
199
|
-
const { getRedirect } = await import('./pulsemcp-admin-client/lib/get-redirect.js');
|
|
200
221
|
return getRedirect(this.apiKey, this.baseUrl, id);
|
|
201
222
|
}
|
|
202
223
|
async createRedirect(params) {
|
|
203
|
-
const { createRedirect } = await import('./pulsemcp-admin-client/lib/create-redirect.js');
|
|
204
224
|
return createRedirect(this.apiKey, this.baseUrl, params);
|
|
205
225
|
}
|
|
206
226
|
async updateRedirect(id, params) {
|
|
207
|
-
const { updateRedirect } = await import('./pulsemcp-admin-client/lib/update-redirect.js');
|
|
208
227
|
return updateRedirect(this.apiKey, this.baseUrl, id, params);
|
|
209
228
|
}
|
|
210
229
|
async deleteRedirect(id) {
|
|
211
|
-
const { deleteRedirect } = await import('./pulsemcp-admin-client/lib/delete-redirect.js');
|
|
212
230
|
return deleteRedirect(this.apiKey, this.baseUrl, id);
|
|
213
231
|
}
|
|
214
232
|
// GoodJob REST API methods
|
|
215
233
|
async getGoodJobs(params) {
|
|
216
|
-
const { getGoodJobs } = await import('./pulsemcp-admin-client/lib/get-good-jobs.js');
|
|
217
234
|
return getGoodJobs(this.apiKey, this.baseUrl, params);
|
|
218
235
|
}
|
|
219
236
|
async getGoodJob(id) {
|
|
220
|
-
const { getGoodJob } = await import('./pulsemcp-admin-client/lib/get-good-job.js');
|
|
221
237
|
return getGoodJob(this.apiKey, this.baseUrl, id);
|
|
222
238
|
}
|
|
223
239
|
async getGoodJobCronSchedules() {
|
|
224
|
-
const { getGoodJobCronSchedules } = await import('./pulsemcp-admin-client/lib/get-good-job-cron-schedules.js');
|
|
225
240
|
return getGoodJobCronSchedules(this.apiKey, this.baseUrl);
|
|
226
241
|
}
|
|
227
242
|
async getGoodJobProcesses() {
|
|
228
|
-
const { getGoodJobProcesses } = await import('./pulsemcp-admin-client/lib/get-good-job-processes.js');
|
|
229
243
|
return getGoodJobProcesses(this.apiKey, this.baseUrl);
|
|
230
244
|
}
|
|
231
245
|
async getGoodJobStatistics() {
|
|
232
|
-
const { getGoodJobStatistics } = await import('./pulsemcp-admin-client/lib/get-good-job-statistics.js');
|
|
233
246
|
return getGoodJobStatistics(this.apiKey, this.baseUrl);
|
|
234
247
|
}
|
|
235
248
|
async retryGoodJob(id) {
|
|
236
|
-
const { retryGoodJob } = await import('./pulsemcp-admin-client/lib/retry-good-job.js');
|
|
237
249
|
return retryGoodJob(this.apiKey, this.baseUrl, id);
|
|
238
250
|
}
|
|
239
251
|
async discardGoodJob(id) {
|
|
240
|
-
const { discardGoodJob } = await import('./pulsemcp-admin-client/lib/discard-good-job.js');
|
|
241
252
|
return discardGoodJob(this.apiKey, this.baseUrl, id);
|
|
242
253
|
}
|
|
243
254
|
async rescheduleGoodJob(id, scheduledAt) {
|
|
244
|
-
const { rescheduleGoodJob } = await import('./pulsemcp-admin-client/lib/reschedule-good-job.js');
|
|
245
255
|
return rescheduleGoodJob(this.apiKey, this.baseUrl, id, scheduledAt);
|
|
246
256
|
}
|
|
247
257
|
async forceTriggerGoodJobCron(cronKey) {
|
|
248
|
-
const { forceTriggerGoodJobCron } = await import('./pulsemcp-admin-client/lib/force-trigger-good-job-cron.js');
|
|
249
258
|
return forceTriggerGoodJobCron(this.apiKey, this.baseUrl, cronKey);
|
|
250
259
|
}
|
|
251
260
|
async cleanupGoodJobs(params) {
|
|
252
|
-
const { cleanupGoodJobs } = await import('./pulsemcp-admin-client/lib/cleanup-good-jobs.js');
|
|
253
261
|
return cleanupGoodJobs(this.apiKey, this.baseUrl, params);
|
|
254
262
|
}
|
|
255
263
|
// Proctor REST API methods
|
|
256
264
|
async runExamForMirror(params) {
|
|
257
|
-
const { runExamForMirror } = await import('./pulsemcp-admin-client/lib/run-exam-for-mirror.js');
|
|
258
265
|
return runExamForMirror(this.apiKey, this.baseUrl, params);
|
|
259
266
|
}
|
|
260
267
|
async saveResultsForMirror(params) {
|
|
261
|
-
const { saveResultsForMirror } = await import('./pulsemcp-admin-client/lib/save-results-for-mirror.js');
|
|
262
268
|
return saveResultsForMirror(this.apiKey, this.baseUrl, params);
|
|
263
269
|
}
|
|
264
270
|
async getProctorRuns(params) {
|
|
265
|
-
const { getProctorRuns } = await import('./pulsemcp-admin-client/lib/get-proctor-runs.js');
|
|
266
271
|
return getProctorRuns(this.apiKey, this.baseUrl, params);
|
|
267
272
|
}
|
|
268
273
|
// Discovered URL REST API methods
|
|
269
274
|
async getDiscoveredUrls(params) {
|
|
270
|
-
const { getDiscoveredUrls } = await import('./pulsemcp-admin-client/lib/get-discovered-urls.js');
|
|
271
275
|
return getDiscoveredUrls(this.apiKey, this.baseUrl, params);
|
|
272
276
|
}
|
|
273
277
|
async markDiscoveredUrlProcessed(params) {
|
|
274
|
-
const { markDiscoveredUrlProcessed } = await import('./pulsemcp-admin-client/lib/mark-discovered-url-processed.js');
|
|
275
278
|
return markDiscoveredUrlProcessed(this.apiKey, this.baseUrl, params);
|
|
276
279
|
}
|
|
277
280
|
async getDiscoveredUrlStats() {
|
|
278
|
-
const { getDiscoveredUrlStats } = await import('./pulsemcp-admin-client/lib/get-discovered-url-stats.js');
|
|
279
281
|
return getDiscoveredUrlStats(this.apiKey, this.baseUrl);
|
|
280
282
|
}
|
|
281
283
|
}
|