@typeroll/mcp-server 0.45.170 → 0.45.172
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
CHANGED
|
@@ -18,7 +18,7 @@ export const deployTools = [
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
name: 'trigger_deploy',
|
|
21
|
-
description: "Enqueue a deploy (static-page build → hosting) of the currently active version. Returns a job_id immediately; poll get_deploy_status until the status leaves queued/running. NOT for previewing iterative design/content edits — that's what get_preview_link is for (it renders live from the DB with no build). Reserve trigger_deploy for publishing, a stakeholder link to the compiled site, or pre-merge validation. Publishing to the temporary address ends at cutover: once a site serves its live custom domain, the same publication serves both, so every deploy of main is a production release. Then get the owner's approval and pass confirm_live_domains: true; without it a real deploy is refused with live_domain_confirmation_required, naming the live URLs and targets. Review changes on a cut-over site with get_preview_link (include_working_copy) or dry_run:true, which need no confirmation. The result reports production, live_domains and targets (live domains first, then the temporary address). Deploys build SAVED content only — unsaved drafts (working copies) are excluded, so commit_working_copy (or save:true on your writes) before deploying, or your changes won't ship. Customer publishing freezes a consistent saved source, then resumes source/Git/build-dispatch checkpoints without recapturing later edits. GitHub or Cloudflare performs rendering and media work. With dry_run:true, publishing validates frozen source without a Git push or external build; it does not prove an Astro build succeeds. It also checks what the real publication would be refused for now (build setup, the build engine and its Node.js version against the one this Typeroll requires) and records it on the job as build_outlook { would_fail, blockers, notes, build_engine }; would_fail: true starts the phase with \"publication would fail:\" and the reasons, while notes (engine updated first, images still being prepared) only make it slower. Check the reported phase. A build waits in the build provider's queue while the provider (Cloudflare Workers Builds or GitHub Actions in the organization's account) has no free build capacity, for example during a long background media preparation; get_deploy_status reports this in build_progress.queue. That is normal: keep polling the same job and do not trigger it again. All sites in an organization share one build engine: publish one site at a time, starting the next only when the previous job has finished and read_organization_build_engine shows no active_jobs. A domain switch waiting for DNS approval (awaiting_approval) does not block other sites.",
|
|
21
|
+
description: "Enqueue a deploy (static-page build → hosting) of the currently active version. A deploy publishes every saved change of the version, not one page: there is no publication of a single page or record. To publish one page or event while a larger change (a migration, a redesign) is under way, keep the larger change on a branch (create_branch) and deploy main; on main, new pages and records with status draft are not published, but saved edits to published pages are. Before publishing for one item, read get_publication_impact and ask the owner when it lists more than that item. Returns a job_id immediately; poll get_deploy_status until the status leaves queued/running. NOT for previewing iterative design/content edits — that's what get_preview_link is for (it renders live from the DB with no build). Reserve trigger_deploy for publishing, a stakeholder link to the compiled site, or pre-merge validation. Publishing to the temporary address ends at cutover: once a site serves its live custom domain, the same publication serves both, so every deploy of main is a production release. Then get the owner's approval and pass confirm_live_domains: true; without it a real deploy is refused with live_domain_confirmation_required, naming the live URLs and targets. Review changes on a cut-over site with get_preview_link (include_working_copy) or dry_run:true, which need no confirmation. The result reports production, live_domains and targets (live domains first, then the temporary address). Deploys build SAVED content only — unsaved drafts (working copies) are excluded, so commit_working_copy (or save:true on your writes) before deploying, or your changes won't ship. Customer publishing freezes a consistent saved source, then resumes source/Git/build-dispatch checkpoints without recapturing later edits. GitHub or Cloudflare performs rendering and media work. With dry_run:true, publishing validates frozen source without a Git push or external build; it does not prove an Astro build succeeds. It also checks what the real publication would be refused for now (build setup, the build engine and its Node.js version against the one this Typeroll requires) and records it on the job as build_outlook { would_fail, blockers, notes, build_engine }; would_fail: true starts the phase with \"publication would fail:\" and the reasons, while notes (engine updated first, images still being prepared) only make it slower. Check the reported phase. A build waits in the build provider's queue while the provider (Cloudflare Workers Builds or GitHub Actions in the organization's account) has no free build capacity, for example during a long background media preparation; get_deploy_status reports this in build_progress.queue. That is normal: keep polling the same job and do not trigger it again. All sites in an organization share one build engine: publish one site at a time, starting the next only when the previous job has finished and read_organization_build_engine shows no active_jobs. A domain switch waiting for DNS approval (awaiting_approval) does not block other sites.",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
environment: z.enum(['production', 'staging']).optional(),
|
|
24
24
|
confirm_live_domains: z.boolean().optional().describe('Required (true) for a real deploy of a cut-over site: acknowledges that the deploy publishes to the live domains named by get_publication_impact or the live_domain_confirmation_required error. Only after the site owner approved this production release. Not needed for dry_run or sites that are not cut over.'),
|
package/dist/tools/media.js
CHANGED
|
@@ -77,7 +77,7 @@ export const mediaTools = [
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
name: 'create_upload_url',
|
|
80
|
-
description: 'Mint a temporary signed PUT URL for direct-to-R2 upload; use the returned expiry. 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.',
|
|
80
|
+
description: 'Mint a temporary signed PUT URL for direct-to-R2 upload; use the returned expiry. 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. When the PUT to the storage host is refused by your environment\'s network (often 403 from *.r2.cloudflarestorage.com), use `create_upload_link` instead: its address is on the Typeroll portal.',
|
|
81
81
|
inputSchema: {
|
|
82
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.'),
|
|
83
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.'),
|
|
@@ -141,9 +141,25 @@ export const mediaTools = [
|
|
|
141
141
|
});
|
|
142
142
|
}),
|
|
143
143
|
},
|
|
144
|
+
{
|
|
145
|
+
name: 'create_upload_link',
|
|
146
|
+
description: 'Make a single-use upload link on the Typeroll portal for one file into this site\'s media library. Make it when the file is about to come, not in advance: (1) the person has a file to add (for example a picture they attached in the chat, which has no public address and whose bytes you cannot send): give them upload_url to open; they drop or pick the file there; or (2) you have the file on disk but the storage host of create_upload_url is blocked in your environment: PUT the file to upload_url yourself, for example `curl -T photo.jpg -H "Content-Type: image/jpeg" -H "X-Content-SHA256: <sha256 hex>" <upload_url>`. Typeroll checks the sha256, stores the file and finalizes it; the PUT answers with media_id. Then read get_upload_link with link_id until status is "uploaded" and use its media_id. The link takes one file (images, PDF, MP4/WebM up to 25 MB) and expires after `minutes` (default 60). upload_url is a secret: give it only to the person who adds the file.',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
filename: z.string().optional().describe('Name to store the file under; the name of the sent file when omitted. The type\'s extension is appended when missing.'),
|
|
149
|
+
alt_text: z.string().optional().describe('Alt text for the image.'),
|
|
150
|
+
minutes: z.number().int().min(1).max(1440).optional().describe('How long the link works (default 60, at most 1440).'),
|
|
151
|
+
},
|
|
152
|
+
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.post(siteId, 'media/upload-links', args))),
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'get_upload_link',
|
|
156
|
+
description: 'Whether the file has come through an upload link (create_upload_link): status "waiting", "uploaded" or "expired". Once uploaded it carries media_id, cdn_url, stored_filename, content_type, size_bytes and sha256; reference the file by media_id.',
|
|
157
|
+
inputSchema: { link_id: z.string().min(1) },
|
|
158
|
+
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.get(siteId, `media/upload-links/${encodeURIComponent(args.link_id)}`))),
|
|
159
|
+
},
|
|
144
160
|
{
|
|
145
161
|
name: 'upload_media_inline',
|
|
146
|
-
description: 'Upload an image (or PDF) from base64-encoded bytes. ⚠️ Use ONLY for tiny payloads (a few KB). The base64 string crosses the model/tool boundary as text, where a larger blob can be SILENTLY CORRUPTED in transit — a few mutated chars yield a broken-but-valid-looking file that uploads with no error and the right size, and only fails when rendered (this has bitten a ~12KB logo SVG: half the wordmark vanished). For anything non-trivial, and ALWAYS for SVG/logos or assets you generated, prefer create_upload_url + a direct curl --data-binary PUT of the file bytes (bytes never transcribed → verified byte-identical), or upload_media_from_url (bytes fetched from a URL). After uploading any generated asset, VERIFY it (render it, or byte-diff against the source) before referencing it. Returns { media_id, cdn_url, filename }.',
|
|
162
|
+
description: 'Upload an image (or PDF) from base64-encoded bytes. ⚠️ Use ONLY for tiny payloads (a few KB). The base64 string crosses the model/tool boundary as text, where a larger blob can be SILENTLY CORRUPTED in transit — a few mutated chars yield a broken-but-valid-looking file that uploads with no error and the right size, and only fails when rendered (this has bitten a ~12KB logo SVG: half the wordmark vanished). For anything non-trivial, and ALWAYS for SVG/logos or assets you generated, prefer create_upload_url + a direct curl --data-binary PUT of the file bytes (bytes never transcribed → verified byte-identical), or upload_media_from_url (bytes fetched from a URL). A file the person attached in the chat has no public address and its bytes are not available to you as text: use create_upload_link and let them drop the file on its page. After uploading any generated asset, VERIFY it (render it, or byte-diff against the source) before referencing it. Returns { media_id, cdn_url, filename }.',
|
|
147
163
|
inputSchema: {
|
|
148
164
|
filename: z.string().min(1).describe('When its extension does not match content_type, the type\'s extension is appended; the response returns the stored filename.'),
|
|
149
165
|
content_type: z.string().min(1).describe('e.g. "image/png", "image/jpeg", "application/pdf"'),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.45.
|
|
1
|
+
export declare const VERSION = "0.45.172";
|
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.172",
|
|
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": {
|