@typeroll/mcp-server 0.45.38 → 0.45.40
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/block-types.js +5 -2
- package/dist/tools/helpers.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -38,7 +38,7 @@ export const blockTypeTools = [
|
|
|
38
38
|
inputSchema: {
|
|
39
39
|
ids: z.array(z.string()).optional().describe('Specific block-type ids to include. Omit to export every user-created block.'),
|
|
40
40
|
name: z.string().optional().describe('Package name (default: {site}-blocks).'),
|
|
41
|
-
version: z.string().optional().describe('Package version (default: 1.0.0).'),
|
|
41
|
+
version: z.string().optional().describe('Package version written into the manifest (default: 1.0.0). This is the package semver, not a Site version — use version_branch for that.'),
|
|
42
42
|
version_branch: versionParam,
|
|
43
43
|
},
|
|
44
44
|
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
@@ -49,8 +49,11 @@ export const blockTypeTools = [
|
|
|
49
49
|
query.name = args.name;
|
|
50
50
|
if (args.version)
|
|
51
51
|
query.version = args.version;
|
|
52
|
+
// Distinct parameters: `version` is the package semver, `version_branch`
|
|
53
|
+
// selects the site version. Sending both on `version` made the branch
|
|
54
|
+
// silently overwrite the package name.
|
|
52
55
|
if (args.version_branch)
|
|
53
|
-
query.
|
|
56
|
+
query.version_branch = args.version_branch;
|
|
54
57
|
const res = await client.get(siteId, 'blocks/export', query);
|
|
55
58
|
return ok(res);
|
|
56
59
|
}),
|
package/dist/tools/helpers.js
CHANGED
|
@@ -56,4 +56,4 @@ export function withErrorBoundary(handler) {
|
|
|
56
56
|
export const versionParam = z
|
|
57
57
|
.string()
|
|
58
58
|
.optional()
|
|
59
|
-
.describe('Branch id to target. Omit for main.');
|
|
59
|
+
.describe('Branch id to target. Omit for main. An id that does not name a version of this Site is refused with 404 — it is never answered about main instead.');
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeroll/mcp-server",
|
|
3
|
-
"version": "0.45.
|
|
4
|
-
"description": "Typeroll CMS MCP server
|
|
3
|
+
"version": "0.45.40",
|
|
4
|
+
"description": "Typeroll CMS MCP server – connect AI agents to the REST API to manage content and publish static websites.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|