pulsemcp-cms-admin-mcp-server 0.6.13 → 0.6.14
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/tools.js +6 -2
- package/package.json +1 -1
- package/shared/tools.d.ts +3 -1
- package/shared/tools.js +6 -2
|
@@ -83,12 +83,13 @@ const ALL_TOOLS = [
|
|
|
83
83
|
isWriteOperation: false,
|
|
84
84
|
},
|
|
85
85
|
{ factory: saveMCPImplementation, groups: ['server_directory'], isWriteOperation: true },
|
|
86
|
+
{ factory: findProviders, groups: ['server_directory'], isWriteOperation: false },
|
|
87
|
+
// Notification tools (separated from server_directory for isolation)
|
|
86
88
|
{
|
|
87
89
|
factory: sendMCPImplementationPostingNotification,
|
|
88
|
-
groups: ['
|
|
90
|
+
groups: ['notifications'],
|
|
89
91
|
isWriteOperation: true,
|
|
90
92
|
},
|
|
91
|
-
{ factory: findProviders, groups: ['server_directory'], isWriteOperation: false },
|
|
92
93
|
// Official mirror queue tools (also in server_directory)
|
|
93
94
|
{
|
|
94
95
|
factory: getOfficialMirrorQueueItems,
|
|
@@ -263,6 +264,7 @@ const VALID_TOOL_GROUPS = [
|
|
|
263
264
|
'proctor',
|
|
264
265
|
'discovered_urls',
|
|
265
266
|
'discovered_urls_readonly',
|
|
267
|
+
'notifications',
|
|
266
268
|
];
|
|
267
269
|
/**
|
|
268
270
|
* Base groups (without _readonly suffix) - used for default "all groups" behavior
|
|
@@ -280,6 +282,7 @@ const BASE_TOOL_GROUPS = [
|
|
|
280
282
|
'good_jobs',
|
|
281
283
|
'proctor',
|
|
282
284
|
'discovered_urls',
|
|
285
|
+
'notifications',
|
|
283
286
|
];
|
|
284
287
|
/**
|
|
285
288
|
* Parse enabled tool groups from environment variable or parameter
|
|
@@ -363,6 +366,7 @@ function shouldIncludeTool(toolDef, enabledGroups) {
|
|
|
363
366
|
* - proctor: Proctor exam execution and result storage tools (write-only, no readonly variant)
|
|
364
367
|
* - discovered_urls: Discovered URL management tools for processing URLs into MCP implementations (read + write)
|
|
365
368
|
* - discovered_urls_readonly: Discovered URL tools (read only - list and stats)
|
|
369
|
+
* - notifications: Notification email tools - send_impl_posted_notif (write-only, no readonly variant)
|
|
366
370
|
*
|
|
367
371
|
* @param clientFactory - Factory function that creates client instances
|
|
368
372
|
* @param enabledGroups - Optional comma-separated list of enabled tool groups (overrides env var)
|
package/package.json
CHANGED
package/shared/tools.d.ts
CHANGED
|
@@ -25,8 +25,9 @@ import { ClientFactory } from './server.js';
|
|
|
25
25
|
* - good_jobs / good_jobs_readonly: GoodJob background job management tools
|
|
26
26
|
* - proctor: Proctor exam execution and result storage tools (write-only, no readonly variant since both tools trigger side effects)
|
|
27
27
|
* - discovered_urls / discovered_urls_readonly: Discovered URL management tools for processing URLs into MCP implementations
|
|
28
|
+
* - notifications: Notification email tools (send_impl_posted_notif). Separated from server_directory so notification capability can be granted independently.
|
|
28
29
|
*/
|
|
29
|
-
export type ToolGroup = 'newsletter' | 'newsletter_readonly' | 'server_directory' | 'server_directory_readonly' | 'official_queue' | 'official_queue_readonly' | 'unofficial_mirrors' | 'unofficial_mirrors_readonly' | 'official_mirrors' | 'official_mirrors_readonly' | 'tenants' | 'tenants_readonly' | 'mcp_jsons' | 'mcp_jsons_readonly' | 'mcp_servers' | 'mcp_servers_readonly' | 'redirects' | 'redirects_readonly' | 'good_jobs' | 'good_jobs_readonly' | 'proctor' | 'discovered_urls' | 'discovered_urls_readonly';
|
|
30
|
+
export type ToolGroup = 'newsletter' | 'newsletter_readonly' | 'server_directory' | 'server_directory_readonly' | 'official_queue' | 'official_queue_readonly' | 'unofficial_mirrors' | 'unofficial_mirrors_readonly' | 'official_mirrors' | 'official_mirrors_readonly' | 'tenants' | 'tenants_readonly' | 'mcp_jsons' | 'mcp_jsons_readonly' | 'mcp_servers' | 'mcp_servers_readonly' | 'redirects' | 'redirects_readonly' | 'good_jobs' | 'good_jobs_readonly' | 'proctor' | 'discovered_urls' | 'discovered_urls_readonly' | 'notifications';
|
|
30
31
|
/**
|
|
31
32
|
* Parse enabled tool groups from environment variable or parameter
|
|
32
33
|
* @param enabledGroupsParam - Comma-separated list of tool groups (e.g., "newsletter,server_directory_readonly")
|
|
@@ -70,6 +71,7 @@ export declare function parseEnabledToolGroups(enabledGroupsParam?: string): Too
|
|
|
70
71
|
* - proctor: Proctor exam execution and result storage tools (write-only, no readonly variant)
|
|
71
72
|
* - discovered_urls: Discovered URL management tools for processing URLs into MCP implementations (read + write)
|
|
72
73
|
* - discovered_urls_readonly: Discovered URL tools (read only - list and stats)
|
|
74
|
+
* - notifications: Notification email tools - send_impl_posted_notif (write-only, no readonly variant)
|
|
73
75
|
*
|
|
74
76
|
* @param clientFactory - Factory function that creates client instances
|
|
75
77
|
* @param enabledGroups - Optional comma-separated list of enabled tool groups (overrides env var)
|
package/shared/tools.js
CHANGED
|
@@ -83,12 +83,13 @@ const ALL_TOOLS = [
|
|
|
83
83
|
isWriteOperation: false,
|
|
84
84
|
},
|
|
85
85
|
{ factory: saveMCPImplementation, groups: ['server_directory'], isWriteOperation: true },
|
|
86
|
+
{ factory: findProviders, groups: ['server_directory'], isWriteOperation: false },
|
|
87
|
+
// Notification tools (separated from server_directory for isolation)
|
|
86
88
|
{
|
|
87
89
|
factory: sendMCPImplementationPostingNotification,
|
|
88
|
-
groups: ['
|
|
90
|
+
groups: ['notifications'],
|
|
89
91
|
isWriteOperation: true,
|
|
90
92
|
},
|
|
91
|
-
{ factory: findProviders, groups: ['server_directory'], isWriteOperation: false },
|
|
92
93
|
// Official mirror queue tools (also in server_directory)
|
|
93
94
|
{
|
|
94
95
|
factory: getOfficialMirrorQueueItems,
|
|
@@ -263,6 +264,7 @@ const VALID_TOOL_GROUPS = [
|
|
|
263
264
|
'proctor',
|
|
264
265
|
'discovered_urls',
|
|
265
266
|
'discovered_urls_readonly',
|
|
267
|
+
'notifications',
|
|
266
268
|
];
|
|
267
269
|
/**
|
|
268
270
|
* Base groups (without _readonly suffix) - used for default "all groups" behavior
|
|
@@ -280,6 +282,7 @@ const BASE_TOOL_GROUPS = [
|
|
|
280
282
|
'good_jobs',
|
|
281
283
|
'proctor',
|
|
282
284
|
'discovered_urls',
|
|
285
|
+
'notifications',
|
|
283
286
|
];
|
|
284
287
|
/**
|
|
285
288
|
* Parse enabled tool groups from environment variable or parameter
|
|
@@ -363,6 +366,7 @@ function shouldIncludeTool(toolDef, enabledGroups) {
|
|
|
363
366
|
* - proctor: Proctor exam execution and result storage tools (write-only, no readonly variant)
|
|
364
367
|
* - discovered_urls: Discovered URL management tools for processing URLs into MCP implementations (read + write)
|
|
365
368
|
* - discovered_urls_readonly: Discovered URL tools (read only - list and stats)
|
|
369
|
+
* - notifications: Notification email tools - send_impl_posted_notif (write-only, no readonly variant)
|
|
366
370
|
*
|
|
367
371
|
* @param clientFactory - Factory function that creates client instances
|
|
368
372
|
* @param enabledGroups - Optional comma-separated list of enabled tool groups (overrides env var)
|