@typeroll/mcp-server 0.45.150 → 0.45.152
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/deploy.js +2 -2
- 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/deploy.js
CHANGED
|
@@ -6,7 +6,7 @@ function v(version) {
|
|
|
6
6
|
export const deployTools = [
|
|
7
7
|
{
|
|
8
8
|
name: 'get_publication_impact',
|
|
9
|
-
description: 'Read where a deploy lands and provisional net saved public-source changes against the selected version’s last verified publication. targets lists every public URL the publication serves (live domains first, then the temporary address); production: true means the site is cut over and a deploy publishes to live_domains. Reports additions, removals, shared inputs, metadata-only changes and unavailable baselines. changes_known: false (comparison baseline_unavailable) means nothing was compared: total 0 and an empty changes list then mean UNKNOWN, not no changes; baseline.reason says why (not_published, publication_not_verified, snapshot_without_source_baseline, baseline_snapshot_unreadable, baseline_identity_mismatch) and baseline.message what to do: the next publication still publishes every saved page; publish once to record a baseline, and use trigger_deploy dry_run: true meanwhile to validate the saved source (a dry run does not build). platform_changes lists what Typeroll itself changed since the baseline (id core_commit or extension_runtime, with before, after and affects_output), never counted in total or changes: it is not an edit to the site; extension_runtime affects output only on a site with Extension installations. build_engine compares the Node.js version the organization’s selected build engine runs (node_version) with the one this Typeroll builds with (required_node_version); blocks_publication: true means the publication is refused until an organization admin updates the engine (setup_organization_build_engine), while with auto_update on the publication updates the engine before it builds. Does not build or deploy. execution is automatic and reuse_verified is false before the build; inspect job.render_report afterwards for actual rendered/reused counts; source-level classification does not prove output reuse or cost savings.',
|
|
9
|
+
description: 'Read where a deploy lands and provisional net saved public-source changes against the selected version’s last verified publication. targets lists every public URL the publication serves (live domains first, then the temporary address); production: true means the site is cut over and a deploy publishes to live_domains. Reports additions, removals, shared inputs, metadata-only changes and unavailable baselines. changes_known: false (comparison baseline_unavailable) means nothing was compared: total 0 and an empty changes list then mean UNKNOWN, not no changes; baseline.reason says why (not_published, publication_not_verified, snapshot_without_source_baseline, baseline_snapshot_unreadable, baseline_identity_mismatch) and baseline.message what to do: the next publication still publishes every saved page; publish once to record a baseline, and use trigger_deploy dry_run: true meanwhile to validate the saved source (a dry run does not build). platform_changes lists what Typeroll itself changed since the baseline (id core_commit or extension_runtime, with before, after and affects_output), never counted in total or changes: it is not an edit to the site; extension_runtime affects output only on a site with Extension installations. build_engine compares the Node.js version the organization’s selected build engine runs (node_version) with the one this Typeroll builds with (required_node_version); blocks_publication: true means the publication is refused until an organization admin updates the engine (setup_organization_build_engine), while with auto_update on the publication updates the engine before it builds. Does not build or deploy. From Core 0.3.53, build_forecast reports mode full/automatic/unknown, fixed reasons and cache availability/size after scoped metadata checks; automatic means eligible, not guaranteed route reuse. A Core release label alone need not invalidate identical rendering code. execution is automatic and reuse_verified is false before the build; inspect job.render_report afterwards for actual rendered/reused counts; source-level classification does not prove output reuse or cost savings.',
|
|
10
10
|
inputSchema: { version: versionParam },
|
|
11
11
|
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.get(siteId, 'publishing/impact', v(args.version)))),
|
|
12
12
|
},
|
|
@@ -49,7 +49,7 @@ export const deployTools = [
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: 'get_deploy_status',
|
|
52
|
-
description: "Status of a single deploy job. Optional top-level build_progress reports the exact task status, attempt, step and completed/total files; not an overall percentage or ETA. Media preparation runs in windows of about 12 minutes that each save their position, so attempt rises in a healthy build: media_continuations counts those planned windows, retries counts failed runs started again, and deadline is when the build stops for good. Do not cancel while completed still rises. While a build or verification step waits for a runner, build_progress.status is queued, deadline is null (its working time starts when a runner claims it) and build_progress.queue says why: { state, message, queued_at, queued_for_seconds, provider, provider_status, ahead, ahead_kinds, running_kinds, expires_at }. state waiting_for_provider means nothing in this organization is ahead and the provider has not started a runner yet (provider_status is the provider's own status, e.g. queued or initializing; running_kinds lists this organization's other builds on the same account, such as media_preparation); waiting_for_other_builds means ahead other builds of this organization run first. job.phase carries the same message. A queued build is normal and can wait many minutes: keep polling (every 30–60 s is enough) and do not retrigger, cancel or start another publication. Only a step that no runner claims by expires_at (6 hours) fails, with job.failure.code build_queue_timeout. Returns { job, queued_for_seconds, queue_timeout_seconds }. job.targets and job.production, when present, record where the publication was admitted to publish and whether that included a live domain. job.status is one of queued | running | succeeded | failed. On a failed build, job.error names the failed step and the cause the step printed, job.failure.code is the reported code (e.g. media_build_process_exit_1) and job.failure.diagnostic holds { cause, lines } (the last 40 lines that step printed, credentials removed). On the Cloudflare build engine job.failure.provider_log also holds { step, build_id, summary, lines } from the provider's build log (last 60 lines). Read them before retrying; retrying does not fix a cause that is in the content or the build engine. job.warnings, when present, lists non-blocking findings of a deploy that still ran, for example a media file left out of the publication because it could not be published safely (an SVG that could not be sanitized) or because it was missing and the deploy accepted that (accept_missing_media); report them to the user. A failed job with job.failure.code media_missing lists the referenced files whose copy to media storage failed in job.failure.missing_media (at most 100; missing_media_total counts them all): retry the media migration or re-import them, or ask the owner whether to publish with accept_missing_media: true. Polling cadence: ~5s for queued/running. job.render_report, when present, reports actual HTML mode (full/partial), rendered, reused, total and removed route counts plus a fallback reason. From Core 0.2.17, custom blocks and consumed image metadata are tracked per route; older caches require one full build. It does not measure media or provider startup savings. job.coordinator, when present, reports the last completed CMS phase and duration_ms for that attempt; external build waiting is excluded. Keep observing the same job across checkpoints; do not trigger duplicate deploys. A job whose own status stays 'queued' (not a queued build step, which runs under job.status running) for longer than queue_timeout_seconds (default 300s) auto-flips to failed with phase='queue_timeout' — so a single poll past that timestamp returns the terminal state and you can stop polling.",
|
|
52
|
+
description: "Status of a single deploy job. Optional top-level build_progress reports the exact task status, attempt, step and completed/total files; not an overall percentage or ETA. Media preparation runs in windows of about 12 minutes that each save their position, so attempt rises in a healthy build: media_continuations counts those planned windows, retries counts failed runs started again, and deadline is when the build stops for good. Do not cancel while completed still rises. While a build or verification step waits for a runner, build_progress.status is queued, deadline is null (its working time starts when a runner claims it) and build_progress.queue says why: { state, message, queued_at, queued_for_seconds, provider, provider_status, ahead, ahead_kinds, running_kinds, expires_at }. state waiting_for_provider means nothing in this organization is ahead and the provider has not started a runner yet (provider_status is the provider's own status, e.g. queued or initializing; running_kinds lists this organization's other builds on the same account, such as media_preparation); waiting_for_other_builds means ahead other builds of this organization run first. job.phase carries the same message. A queued build is normal and can wait many minutes: keep polling (every 30–60 s is enough) and do not retrigger, cancel or start another publication. Only a step that no runner claims by expires_at (6 hours) fails, with job.failure.code build_queue_timeout. Returns { job, queued_for_seconds, queue_timeout_seconds }. job.targets and job.production, when present, record where the publication was admitted to publish and whether that included a live domain. job.status is one of queued | running | succeeded | failed. On a failed build, job.error names the failed step and the cause the step printed, job.failure.code is the reported code (e.g. media_build_process_exit_1) and job.failure.diagnostic holds { cause, lines } (the last 40 lines that step printed, credentials removed). On the Cloudflare build engine job.failure.provider_log also holds { step, build_id, summary, lines } from the provider's build log (last 60 lines). Read them before retrying; retrying does not fix a cause that is in the content or the build engine. job.warnings, when present, lists non-blocking findings of a deploy that still ran, for example a media file left out of the publication because it could not be published safely (an SVG that could not be sanitized) or because it was missing and the deploy accepted that (accept_missing_media); report them to the user. A failed job with job.failure.code media_missing lists the referenced files whose copy to media storage failed in job.failure.missing_media (at most 100; missing_media_total counts them all): retry the media migration or re-import them, or ask the owner whether to publish with accept_missing_media: true. Polling cadence: ~5s for queued/running. job.render_report, when present, reports actual HTML mode (full/partial), rendered, reused, total and removed route counts plus a fallback reason. From Core 0.3.53, optional render_report.cache separates read/save state, encoding, retained/omitted routes, bounded byte counts, renderer/global/runtime invalidations and transfer/storage failures. Transfer details require an updated organization engine; inspect them before retrying a full-render publication. From Core 0.2.17, custom blocks and consumed image metadata are tracked per route; older caches require one full build. It does not measure media or provider startup savings. job.coordinator, when present, reports the last completed CMS phase and duration_ms for that attempt; external build waiting is excluded. Keep observing the same job across checkpoints; do not trigger duplicate deploys. A job whose own status stays 'queued' (not a queued build step, which runs under job.status running) for longer than queue_timeout_seconds (default 300s) auto-flips to failed with phase='queue_timeout' — so a single poll past that timestamp returns the terminal state and you can stop polling.",
|
|
53
53
|
inputSchema: { job_id: z.string(), include_provider: z.boolean().optional().describe('Also read the exact Git commit and Cloudflare build stages for a customer Git publication. Does not return build secrets.') },
|
|
54
54
|
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
55
55
|
const res = await client.get(siteId, `deploys/${encodeURIComponent(args.job_id)}`);
|
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.152",
|
|
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": {
|