@typeroll/mcp-server 0.45.118 → 0.45.120
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/AGENTS.md +2 -2
- package/dist/bundled-content.js +4 -4
- package/dist/index.js +3 -4
- package/dist/server.js +16 -1
- package/dist/tools/settings.js +1 -1
- package/dist/tools/sites.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/tr-brand.md +8 -6
- package/skills/tr-new-site.md +3 -4
- package/skills/tr-seo.md +2 -2
package/dist/index.js
CHANGED
|
@@ -17,8 +17,7 @@ import { TyperollClient } from './client.js';
|
|
|
17
17
|
import { runInitCli } from './init.js';
|
|
18
18
|
import { runInstallSkillsCli } from './install-skills.js';
|
|
19
19
|
import { resolveSiteId } from './resolve-site-id.js';
|
|
20
|
-
import { buildServer } from './server.js';
|
|
21
|
-
import { VERSION } from './version.js';
|
|
20
|
+
import { buildServer, serverInfo } from './server.js';
|
|
22
21
|
import { runExtensionCli } from './extension-cli.js';
|
|
23
22
|
import { apiUrlProblem } from './api-url.js';
|
|
24
23
|
import { doctor, readWorkspace, workspaceClient, verifyWorkspaceBinding } from './workspace.js';
|
|
@@ -50,7 +49,7 @@ async function main() {
|
|
|
50
49
|
await verifyWorkspaceBinding(config, client);
|
|
51
50
|
// An unbound workspace permits discovery/site creation only. Save the Site
|
|
52
51
|
// binding and reconnect before content operations; never guess a target.
|
|
53
|
-
const server = buildServer({ client, ...(config.site_id ? { fixedSiteId: config.site_id } : { allowedSites: [] }), toolMode: config.tool_mode, info:
|
|
52
|
+
const server = buildServer({ client, ...(config.site_id ? { fixedSiteId: config.site_id } : { allowedSites: [] }), toolMode: config.tool_mode, info: serverInfo() });
|
|
54
53
|
await server.connect(new StdioServerTransport());
|
|
55
54
|
return;
|
|
56
55
|
}
|
|
@@ -106,7 +105,7 @@ async function main() {
|
|
|
106
105
|
client,
|
|
107
106
|
fixedSiteId: siteId,
|
|
108
107
|
toolMode: mode,
|
|
109
|
-
info:
|
|
108
|
+
info: serverInfo(),
|
|
110
109
|
});
|
|
111
110
|
const transport = new StdioServerTransport();
|
|
112
111
|
await server.connect(transport);
|
package/dist/server.js
CHANGED
|
@@ -164,7 +164,22 @@ export function effectFor(name) {
|
|
|
164
164
|
}
|
|
165
165
|
return 'write';
|
|
166
166
|
}
|
|
167
|
-
const DEFAULT_INFO = { name: 'typeroll', version: VERSION };
|
|
167
|
+
const DEFAULT_INFO = { name: 'typeroll', title: 'Typeroll CMS', version: VERSION, websiteUrl: 'https://typeroll.com/docs/' };
|
|
168
|
+
/**
|
|
169
|
+
* Server identity with icons served by a Typeroll portal. Clients such as
|
|
170
|
+
* Claude show them in their connector lists; the icons are opaque tiles with
|
|
171
|
+
* a margin around the symbol, so no client crops or fills them.
|
|
172
|
+
*/
|
|
173
|
+
export function serverInfo(portalOrigin) {
|
|
174
|
+
if (!portalOrigin)
|
|
175
|
+
return DEFAULT_INFO;
|
|
176
|
+
const origin = new URL(portalOrigin).origin;
|
|
177
|
+
return { ...DEFAULT_INFO, icons: [
|
|
178
|
+
{ src: `${origin}/icon.svg`, mimeType: 'image/svg+xml', sizes: ['any'] },
|
|
179
|
+
{ src: `${origin}/icon-512.png`, mimeType: 'image/png', sizes: ['512x512'] },
|
|
180
|
+
{ src: `${origin}/icon-192.png`, mimeType: 'image/png', sizes: ['192x192'] },
|
|
181
|
+
] };
|
|
182
|
+
}
|
|
168
183
|
/**
|
|
169
184
|
* Server-level instructions — returned in the MCP `initialize` response and
|
|
170
185
|
* available to clients (Claude Code stdio AND the hosted
|
package/dist/tools/settings.js
CHANGED
|
@@ -57,7 +57,7 @@ export const settingsTools = [
|
|
|
57
57
|
agent_instructions: z.string().max(12000).optional().describe('Site-specific agent guidance, read live for this version. No secrets or permission overrides.'),
|
|
58
58
|
logo: z.string().optional(),
|
|
59
59
|
favicon: z.string().optional(),
|
|
60
|
-
apple_touch_icon: z.string().optional().describe('
|
|
60
|
+
apple_touch_icon: z.string().optional().describe('Optional image for the iPhone/iPad home screen icon. Publication generates it from favicon when absent; set it only to use a different image.'),
|
|
61
61
|
icon_192: z.string().optional().describe('URL to a 192x192 PNG app icon. Emitted with sizes="192x192".'),
|
|
62
62
|
trailing_slash: z.enum(['always', 'never', 'ignore']).optional().describe('Canonical URL style. `always` is the default; `never` emits extensionless URLs without a final slash; `ignore` preserves authored paths.'),
|
|
63
63
|
iframe_allowed_hosts: z.array(z.string()).max(50).optional().describe('Additional exact HTTPS iframe hostnames allowed on this site, e.g. ["player.example.com"]. No wildcards, schemes, ports or paths.'),
|
package/dist/tools/sites.js
CHANGED
|
@@ -35,7 +35,7 @@ export const siteTools = [
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
name: 'create_site',
|
|
38
|
-
description: "Create + bootstrap a NEW site in your org. Seeds default settings, a
|
|
38
|
+
description: "Create + bootstrap a NEW site in your org. Seeds default settings, a published Home page, and a published header/footer that link only to it, so it renders and can be published immediately. Requires an ORG-scoped key (a site-scoped key is bound to one existing site and can't mint new ones; you'll get a 403). Accepts exactly `name`, optional `id`, `domain` and `language`; any other field is refused. Without `id` the site id is the kebab-case `name` (with a random suffix when taken); with `id` that exact id is used, or 409 site_id_taken. `language` is the site's BCP 47 content language (e.g. \"nl-BE\"; default \"en\"), saved at creation so <html lang> is right from the first build. Pass `domain` to kick off the \"point your DNS\" flow (never written as a live domain). Returns the new site's id, language + urls — use that id as `site_id`/`TYPEROLL_SITE_ID` for follow-up calls. After creating, run list_skills → read_skill tr-new-site to bootstrap the design.",
|
|
39
39
|
noSite: true,
|
|
40
40
|
inputSchema: {
|
|
41
41
|
name: z.string().min(1).describe('Display name. Slugified into the site id unless `id` is given.'),
|
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.120",
|
|
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": {
|
package/skills/tr-brand.md
CHANGED
|
@@ -187,12 +187,14 @@ partial just to keep it off live; that's no longer necessary.
|
|
|
187
187
|
|
|
188
188
|
### Site icons — always propose them, never leave them empty
|
|
189
189
|
|
|
190
|
-
Every site gets
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
190
|
+
Every site gets icons as part of brand setup. Publication generates every
|
|
191
|
+
size and format from one image: the ICO favicon, the 192 and 512 pixel app
|
|
192
|
+
icons and the 180 pixel home screen icon (opaque, on the site background).
|
|
193
|
+
|
|
194
|
+
1. **Brand assets exist** (symbol, favicon, app icon): upload one square
|
|
195
|
+
image via `upload_media_inline` (SVG, or a PNG of at least 512 pixels) and
|
|
196
|
+
set `update_site_settings { "favicon": "<url>" }`. Set `icon_192` or
|
|
197
|
+
`apple_touch_icon` only to use a different image for those surfaces.
|
|
196
198
|
2. **No icon assets:** derive a proposal instead of skipping — crop the
|
|
197
199
|
logo's symbol to a square and resize locally (`sips -z 180 180 in.png
|
|
198
200
|
--out icon-180.png` on macOS, or ImageMagick), or generate a simple
|
package/skills/tr-new-site.md
CHANGED
|
@@ -164,10 +164,9 @@ case-sensitive display names ("Plus Jakarta Sans", not "plus jakarta"). Fonts
|
|
|
164
164
|
are self-hosted on the site by default; a name Google does not serve falls
|
|
165
165
|
back silently, so verify fonts on the published address (`tr-brand` Step 7).
|
|
166
166
|
|
|
167
|
-
**Site icons are part of brand setup** — upload
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
`tr-brand`). Also set `settings.logo` to the uploaded brand mark — it feeds
|
|
167
|
+
**Site icons are part of brand setup** — upload one square image (SVG, or
|
|
168
|
+
a PNG of at least 512 pixels) and set `favicon`; publication generates every
|
|
169
|
+
other size and format. No icon assets? Derive a proposal (see `tr-brand`). Also set `settings.logo` to the uploaded brand mark — it feeds
|
|
171
170
|
OG/schema even if the header uses a different lockup.
|
|
172
171
|
|
|
173
172
|
#### Launch basics (ask early)
|
package/skills/tr-seo.md
CHANGED
|
@@ -129,8 +129,8 @@ optional; record a skipped item in `decisions.md`.
|
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
- **Site description and icons.** `default_meta_description` for pages without
|
|
132
|
-
their own description, and `favicon
|
|
133
|
-
|
|
132
|
+
their own description, and `favicon` (other icon sizes are generated; see
|
|
133
|
+
`tr-brand`).
|
|
134
134
|
- **AI crawlers.** `ai_crawler_policy` is `allow_all` (the default, which writes
|
|
135
135
|
nothing), `no_training` or `block_all`:
|
|
136
136
|
|