@typeroll/mcp-server 0.45.150 → 0.45.151
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/dist/server.js +3 -0
- package/dist/tools/email.js +32 -6
- package/dist/tools/pages.js +6 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -169,6 +169,9 @@ export function effectFor(name) {
|
|
|
169
169
|
|| name === 'prepare_organization_media_storage'
|
|
170
170
|
|| name === 'save_organization_media_access'
|
|
171
171
|
|| name === 'set_email_settings'
|
|
172
|
+
|| name === 'set_organization_email_settings'
|
|
173
|
+
|| name === 'remove_organization_email_settings'
|
|
174
|
+
|| name === 'send_organization_test_email'
|
|
172
175
|
|| name === 'set_form_spam_protection'
|
|
173
176
|
|| name === 'delete_form_spam_protection'
|
|
174
177
|
|| name === 'delete_email_settings'
|
package/dist/tools/email.js
CHANGED
|
@@ -7,25 +7,51 @@ import { ok, withErrorBoundary } from './helpers.js';
|
|
|
7
7
|
export const emailTools = [
|
|
8
8
|
{
|
|
9
9
|
name: 'get_email_settings',
|
|
10
|
-
description: "Read the site's outgoing
|
|
10
|
+
description: "Read the site's selected outgoing account, campaign sending limits, available organization account and provider fields. Secrets are masked; shared organization credentials are never returned. Campaign limits are per site across its apps and exclude transactional mail. Admin permission required.",
|
|
11
11
|
handler: withErrorBoundary(async (_args, { client, siteId }) => ok(await client.get(siteId, 'integrations/email'))),
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
name: 'set_email_settings',
|
|
15
15
|
description: "Connect or change the site's outgoing email provider, like Settings → Email & notifications in the portal. Read get_email_settings first for the provider field schema. Examples: postmark config { server_token, message_stream? }; smtp config { host, port?, secure?, user?, password? }. Secrets are encrypted server-side and never returned; omit a secret (or send the masked value) to keep the stored one. Then call send_test_email. Admin permission required.",
|
|
16
16
|
inputSchema: {
|
|
17
|
-
type: z.string().min(1).describe('Provider type
|
|
18
|
-
from: z.string().min(1).describe('Sender
|
|
17
|
+
type: z.string().min(1).optional().describe('Provider type when configuring this site’s own account.'),
|
|
18
|
+
from: z.string().min(1).optional().describe('Sender when configuring this site’s own account.'),
|
|
19
|
+
source: z.enum(['site', 'organization', 'none']).optional().describe('Organization requires a current grant from its owner. Selecting it references the shared account without copying credentials.'),
|
|
20
|
+
bulk_email: z.object({ daily_limit: z.number().int().min(0).max(10000).optional(), minimum_interval_minutes: z.number().int().min(1).max(1440).optional() }).optional().describe('Site campaign allowance and pacing. UTC day; 0 disables campaigns. Transactional mail does not consume this allowance.'),
|
|
19
21
|
reply_to: z.string().optional().describe('Optional default Reply-To address.'),
|
|
20
22
|
config: z.record(z.string(), z.unknown()).optional().describe('Provider fields keyed by the field schema.'),
|
|
21
23
|
},
|
|
22
24
|
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.put(siteId, 'integrations/email', {
|
|
23
|
-
type: args.type,
|
|
24
|
-
from: args.from,
|
|
25
|
+
...(args.type !== undefined ? { type: args.type, config: args.config ?? {} } : {}),
|
|
26
|
+
...(args.from !== undefined ? { from: args.from } : {}),
|
|
27
|
+
...(args.source !== undefined ? { source: args.source } : {}),
|
|
28
|
+
...(args.bulk_email !== undefined ? { bulk_email: args.bulk_email } : {}),
|
|
25
29
|
...(args.reply_to !== undefined ? { reply_to: args.reply_to } : {}),
|
|
26
|
-
config: args.config ?? {},
|
|
27
30
|
}))),
|
|
28
31
|
},
|
|
32
|
+
{
|
|
33
|
+
name: 'get_organization_email_settings', noSite: true,
|
|
34
|
+
description: 'Read the selected Organization’s shared email account with secrets masked, its exact revision and the owned Sites allowed to use it. Only a current Organization owner, through a personal connection or an owner-issued organization API key, can manage this account. Site keys are refused.',
|
|
35
|
+
inputSchema: {}, handler: withErrorBoundary(async (_args, { client }) => ok(await client.rootGet('organization/email'))),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'set_organization_email_settings', noSite: true,
|
|
39
|
+
description: 'Configure the Organization’s shared email account or its explicit Site grants. Read get_organization_email_settings first and pass its expected_revision. Prefer entering secrets in the portal; never repeat a secret. Omitted fields preserve the account or grants; a new account allows no Sites by default. Sites must still select the organization account themselves and retain their own campaign budgets. Owner authority is required.',
|
|
40
|
+
inputSchema: { expected_revision: z.string().regex(/^[a-f0-9]{64}$/), type: z.string().optional(), from: z.string().optional(), reply_to: z.string().optional(), config: z.record(z.string(), z.unknown()).optional(), allowed_site_ids: z.array(z.string()).max(1000).optional() },
|
|
41
|
+
handler: withErrorBoundary(async (args, { client }) => ok(await client.rootPut('organization/email', args))),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'remove_organization_email_settings', noSite: true,
|
|
45
|
+
description: 'Disconnect the Organization’s shared mail account and withdraw all Site grants. Sites using it stop sending through that account; they do not silently fall back to another account. Requires the current expected_revision, Organization owner authority and the user’s approval for this disconnection.',
|
|
46
|
+
inputSchema: { expected_revision: z.string().regex(/^[a-f0-9]{64}$/) },
|
|
47
|
+
handler: withErrorBoundary(async (args, { client }) => ok(await client.rootDelete('organization/email', args))),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'send_organization_test_email', noSite: true,
|
|
51
|
+
description: 'Send one test through the stored Organization mail account, only when the user requested this test and recipient. Requires Organization owner authority. It does not start a campaign or grant Site access.',
|
|
52
|
+
inputSchema: { to: z.string().min(3) },
|
|
53
|
+
handler: withErrorBoundary(async (args, { client }) => ok(await client.rootPost('organization/email', args))),
|
|
54
|
+
},
|
|
29
55
|
{
|
|
30
56
|
name: 'delete_email_settings',
|
|
31
57
|
description: "Disconnect the site's outgoing email provider and delete its stored credentials. Form email notifications stop being sent until a provider is connected again; submissions are still stored. Admin permission required.",
|
package/dist/tools/pages.js
CHANGED
|
@@ -80,6 +80,12 @@ export const pageTools = [
|
|
|
80
80
|
return ok(res);
|
|
81
81
|
}),
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
name: 'read_published_page',
|
|
85
|
+
description: 'Read the page from the last verified publication of this version: public title, fields, address, source revision and publication ID. Never includes a working copy, private fields or pending proposals. Returns 404 when no verified public source exists. Use this for facts intended for external messages, rather than read_page.',
|
|
86
|
+
inputSchema: { page_id: z.string(), version: versionParam },
|
|
87
|
+
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.get(siteId, `pages/${encodeURIComponent(args.page_id)}/published`, v(args.version)))),
|
|
88
|
+
},
|
|
83
89
|
{
|
|
84
90
|
name: 'batch_read_pages',
|
|
85
91
|
description: 'Read up to 200 pages in a single call. Returns pages_by_id — a map keyed by page_id for easy lookup — plus a not_found list. Use to bulk-load context before a redesign sweep.',
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeroll/mcp-server",
|
|
3
3
|
"mcpName": "io.github.Typeroll/typeroll",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.151",
|
|
5
5
|
"description": "Typeroll CMS MCP server \u2013 connect AI agents to the REST API to manage content and publish static websites.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|