@typeroll/mcp-server 0.45.134 → 0.45.135
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/extensions.js +11 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/tools/extensions.js
CHANGED
|
@@ -127,6 +127,17 @@ export const extensionTools = [
|
|
|
127
127
|
return ok(await client.get(siteId, `extensions/${encodeURIComponent(args.installation_id)}/diagnostics`));
|
|
128
128
|
}),
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
name: 'list_extension_variants',
|
|
132
|
+
description: 'List the variants of an installed app contract component (render_mode contract_component) as { variants: [{ id, label }], source }. The app defines them and their settings; a block instance stores only the variant id in its `variant` field (default `standard`) and changing a variant in the app is live on every page that uses it. Without a declared variants call the list is [{ id: "standard" }]. Fails with 502 when the app does not answer. Read permission is enough.',
|
|
133
|
+
inputSchema: {
|
|
134
|
+
installation_id: z.string().min(1),
|
|
135
|
+
component_id: z.string().min(1).describe('Component id from the installation manifest (frontend.components[].id).'),
|
|
136
|
+
},
|
|
137
|
+
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
138
|
+
return ok(await client.get(siteId, `extensions/${encodeURIComponent(args.installation_id)}/variants`, { component_id: args.component_id }));
|
|
139
|
+
}),
|
|
140
|
+
},
|
|
130
141
|
{
|
|
131
142
|
name: 'launch_extension_admin_page',
|
|
132
143
|
description: 'Issue a single-use, short-lived launch grant for one of the Extension\'s admin pages (manifest admin.pages), as opening the page in the portal does. Returns { launch_url, method, form, expires_at }: a browser tool must POST the `form` fields to launch_url before expires_at. The provider sees the caller as api-key:{prefix}. Treat the code as a credential. For approved native pages prefer call_extension_admin. The page\'s minimum_permission applies.',
|
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.135",
|
|
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": {
|