@typeroll/mcp-server 0.45.158 → 0.45.159

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.
@@ -50,9 +50,10 @@ export const deployTools = [
50
50
  {
51
51
  name: 'get_deploy_status',
52
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. From Core 0.3.55, job.pages_cache_retention records removed public URLs retained by Pages after exact static candidate verification: each entry includes origin, route, checked_at, actual_status 200, expected_status 404, uncached_status 404 and safe cache headers. A succeeded job with these observations is published with a cache warning, not proof of immediate public removal; report it to the user and do not rebuild to clear the cache. Current file bytes and exact candidate checks must still pass. 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
- 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.') },
53
+ inputSchema: { job_id: z.string(), diagnostics: z.boolean().optional().describe('Read bounded numeric build phase/media timings. For an older Cloudflare engine, reads the completed job\'s provider log once; returns no raw logs or credentials and starts no build. Missing measurements are not zero.'), 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
- const res = await client.get(siteId, `deploys/${encodeURIComponent(args.job_id)}`);
55
+ const route = `deploys/${encodeURIComponent(args.job_id)}`;
56
+ const res = args.diagnostics ? await client.get(siteId, route, { diagnostics: '1' }) : await client.get(siteId, route);
56
57
  if (args.include_provider)
57
58
  return ok({ ...res, provider_build: await client.get(siteId, 'publishing/build', { job_id: args.job_id }) });
58
59
  return ok(res);
package/dist/version.js CHANGED
@@ -8,4 +8,4 @@
8
8
  //
9
9
  // Keep it in lockstep with package.json: tests/version.test.ts asserts
10
10
  // VERSION === package.json.version, so a bump that forgets this line fails CI.
11
- export const VERSION = '0.45.158';
11
+ export const VERSION = '0.45.159';
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.158",
4
+ "version": "0.45.159",
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": {