@typeroll/mcp-server 0.45.145 → 0.45.147
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/tools/deploy.js +1 -1
- package/dist/tools/media.js +8 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/tools/deploy.js
CHANGED
|
@@ -35,7 +35,7 @@ export const deployTools = [
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
name: 'retry_deploy_verification',
|
|
38
|
-
description: 'Retry only public verification of an already-served customer publication that failed with publication_observation_timeout or publication_cache_refresh_required/external/failed. Reuses the exact job, Git commit and build artifact; never
|
|
38
|
+
description: 'Retry only public verification of an already-served customer publication that failed with publication_observation_timeout or publication_cache_refresh_required/external/failed. Reuses the exact job, Git commit and build artifact; never rebuilds pages, uploads or changes DNS. Also recovers verification runner start/queue failures after a completed artifact build when the exact deployment is still served. Missing candidate verification may run on the build engine; pages are never rebuilt. Requires unchanged hosting and no newer deployment for this version. job.serving records observed public identity separately from check status. Does not publish later CMS edits. Each failed check may get a bounded refresh of only that path on the site\'s own address; zone-wide refreshes are never made. A removed content-addressed file that Cloudflare still serves with exactly the bytes its name hashes, while a fresh cache key returns 404, is accepted and reported in warnings/retained_immutable. A publication_cache_refresh_failed names the stale layer in cache_recovery.layer (upstream_cache, origin or unknown).',
|
|
39
39
|
inputSchema: { job_id: z.string(), approve_cache_zone_id: z.string().min(1).optional().describe('Retired. Zone-wide cache refreshes are no longer offered and are refused with publication_cache_zone_refresh_retired; retry without it.'), version: versionParam },
|
|
40
40
|
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.post(siteId, 'deploy', { retry_verification_job_id: args.job_id, ...(args.approve_cache_zone_id !== undefined ? { approve_cache_zone_id: args.approve_cache_zone_id } : {}) }, v(args.version)))),
|
|
41
41
|
},
|
package/dist/tools/media.js
CHANGED
|
@@ -12,6 +12,12 @@ async function uploadFromUrl(args, deps) {
|
|
|
12
12
|
return deps.client.post(deps.siteId, 'media/import', args);
|
|
13
13
|
}
|
|
14
14
|
export const mediaTools = [
|
|
15
|
+
{
|
|
16
|
+
name: 'publish_media_file',
|
|
17
|
+
description: 'Make a finalized PDF publicly accessible on the organization media domain, independently of website builds and image preparation. Requires write permission and connected organization storage/media domain. Upload and finalize first; uploading alone stays private. This explicitly publishes the file: obtain the owner’s authorization before sharing private material. Returns public_url only after anonymous delivery and SHA-256 verification. Retry the same media id after a transient copy or verification failure. Repeated publication preserves the link, including after display-name edits. The link remains until the file is deleted; website releases do not remove it. Do not share the authenticated cdn_url for private uploads.',
|
|
18
|
+
inputSchema: { media_id: z.string().min(1) },
|
|
19
|
+
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.post(siteId, `media/${encodeURIComponent(args.media_id)}/publish`))),
|
|
20
|
+
},
|
|
15
21
|
{
|
|
16
22
|
name: 'replace_media',
|
|
17
23
|
description: 'Use another uploaded library file wherever a media item is referenced, without saving each Page. Site administrator only; site-wide across all versions. Defaults to dry_run:true. Preview and the next normal publication resolve the replacement; existing live files and Page-specific alt text stay unchanged. Does not publish, copy bytes, or delete either file. Pass replacement_media_id:null to undo. Replacement chains are checked for cycles and missing/unready files.',
|
|
@@ -71,7 +77,7 @@ export const mediaTools = [
|
|
|
71
77
|
},
|
|
72
78
|
{
|
|
73
79
|
name: 'create_upload_url',
|
|
74
|
-
description: 'Mint a 5-min signed PUT URL for direct-to-R2 upload.
|
|
80
|
+
description: 'Mint a 5-min signed PUT URL for direct-to-R2 upload. The returned cdn_url is an authenticated editor reference, not a public sharing link. REQUIRED follow-up: call `finalize_media` after the PUT succeeds to verify and freeze the private original. Publish a PDF explicitly with `publish_media_file`; images become public with a website publication. The response carries `finalize_url` as a reminder. This signed-PUT path is the INTEGRITY-SAFE way to upload bytes from disk or a generated asset — a direct `curl --data-binary @file` sends the bytes straight to R2 without transcribing them through the model, so it can\'t be corrupted the way a large `upload_media_inline` base64 blob can (ESPECIALLY use this, not inline, for SVG/logos). For a public source URL, `upload_media_from_url` is the one-call equivalent; reserve `upload_media_inline` for tiny payloads only.',
|
|
75
81
|
inputSchema: {
|
|
76
82
|
filename: z.string().min(1).describe('Should end in an extension of content_type (e.g. logo.png with image/png). When the extension is missing or belongs to another type, the type\'s extension is appended (logo → logo.png, photo.html → photo.html.png); the response returns the stored filename. Unsupported types answer 415.'),
|
|
77
83
|
content_type: z.string().min(1).describe('e.g. "image/png", "image/jpeg", "application/pdf". SVGs are sanitized at finalize; an SVG that cannot be sanitized is refused.'),
|
|
@@ -214,7 +220,7 @@ export const mediaTools = [
|
|
|
214
220
|
},
|
|
215
221
|
{
|
|
216
222
|
name: 'finalize_media',
|
|
217
|
-
description: '
|
|
223
|
+
description: 'Finish an upload: verify its integrity, sanitize SVG when needed, and freeze the private original. In connected organization storage, images queue background preparation; PDFs need no variants. This does not publish the file. Use publish_media_file for a public PDF sharing link, or publish the website for referenced media. Repeating finalize is safe. Pass expected_sha256 to verify the original bytes.',
|
|
218
224
|
inputSchema: {
|
|
219
225
|
media_id: z.string(),
|
|
220
226
|
expected_sha256: z.string().regex(/^[0-9a-fA-F]{64}$/).optional()
|
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.147",
|
|
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": {
|