brewpage-mcp 1.13.1 → 1.13.2
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/README.md +21 -16
- package/dist/index.js +33 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Choosing a host? See how BrewPage compares with GitHub Pages, Netlify Drop, Tiin
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npx -y brewpage-mcp@1.13.
|
|
20
|
+
npx -y brewpage-mcp@1.13.2
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Requires Node.js 20 or newer. This starts the stdio server for an MCP client.
|
|
@@ -33,7 +33,7 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
33
33
|
"mcpServers": {
|
|
34
34
|
"brewpage": {
|
|
35
35
|
"command": "npx",
|
|
36
|
-
"args": ["-y", "brewpage-mcp@1.13.
|
|
36
|
+
"args": ["-y", "brewpage-mcp@1.13.2"]
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
44
44
|
Register a project-scoped stdio server:
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
claude mcp add --transport stdio --scope project brewpage -- npx -y brewpage-mcp@1.13.
|
|
47
|
+
claude mcp add --transport stdio --scope project brewpage -- npx -y brewpage-mcp@1.13.2
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
This writes `.mcp.json` in the project root. Use `--scope user` for user-scoped registration. See the [official Claude Code MCP guide](https://code.claude.com/docs/en/mcp).
|
|
@@ -58,7 +58,7 @@ Open **Settings > MCP** and add:
|
|
|
58
58
|
"mcpServers": {
|
|
59
59
|
"brewpage": {
|
|
60
60
|
"command": "npx",
|
|
61
|
-
"args": ["-y", "brewpage-mcp@1.13.
|
|
61
|
+
"args": ["-y", "brewpage-mcp@1.13.2"]
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -72,7 +72,7 @@ Open the Cline MCP settings panel and add:
|
|
|
72
72
|
{
|
|
73
73
|
"brewpage": {
|
|
74
74
|
"command": "npx",
|
|
75
|
-
"args": ["-y", "brewpage-mcp@1.13.
|
|
75
|
+
"args": ["-y", "brewpage-mcp@1.13.2"]
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
```
|
|
@@ -80,7 +80,7 @@ Open the Cline MCP settings panel and add:
|
|
|
80
80
|
### Global Install
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
npm install -g brewpage-mcp@1.13.
|
|
83
|
+
npm install -g brewpage-mcp@1.13.2
|
|
84
84
|
brewpage-mcp
|
|
85
85
|
```
|
|
86
86
|
|
|
@@ -104,14 +104,14 @@ Twenty tools are available. Creation returns an owner token; keep it to modify o
|
|
|
104
104
|
| `get_kv` | Read a KV value |
|
|
105
105
|
| `update_hosting` | Change eligible delivery mode with owner token and hosting version |
|
|
106
106
|
| `delete_resource` | Delete an HTML page, site, JSON document, KV store or file |
|
|
107
|
-
| `set_visibility` | Hide or show a public publication in gallery
|
|
107
|
+
| `set_visibility` | Hide or show a public publication in the gallery and sitemap; link unchanged |
|
|
108
108
|
| `bind_token` | Add an owner token to your profile (admin token) |
|
|
109
109
|
| `mint_token` | Mint a profile token, shown once (admin token) |
|
|
110
110
|
| `search_gallery` | Browse public content or list owned resources |
|
|
111
111
|
| `get_stats` | Read platform-wide statistics |
|
|
112
112
|
| `get_limits` | Read the current upload limits (`GET /api/limits`) |
|
|
113
113
|
|
|
114
|
-
All five publish tools accept optional `deliveryMode: "path" | "subdomain"`, sent only as `X-Delivery-Mode`; authored JSON and multipart bodies keep their existing format. Visibility and password protection are separate choices. Omitted namespace
|
|
114
|
+
All five publish tools accept optional `deliveryMode: "path" | "subdomain"`, sent only as `X-Delivery-Mode`; authored JSON and multipart bodies keep their existing format. Visibility and password protection are separate choices. Omitted namespace is private (a generated `priv-<random>` namespace): unlisted and not indexed; anyone with the link can still open it. `public` lists HTML, sites and files in the gallery and sitemap, so Google, Bing and AI search can find and index them; public pages are served on the brewpage.app domain for the strongest reach (a site always gets its own subdomain). Never put secrets in a public publication. Password-protected publications, JSON and KV are never listed.
|
|
115
115
|
|
|
116
116
|
The MCP server wraps a subset of the backend-generated public [REST contract](../openapi/openapi.json). TTL inputs take days or a string such as `2w`/`36h` (default 15); the server rounds to whole days and clamps to 1–30 (owner-specific caps and eligible automatic extensions can differ). Use returned `expiresAt`. Every tolerated-input adjustment (TTL clamp, format alias, skipped site member, normalised namespace) comes back in the response `notices` array and is printed as `Notice (code): message`; `secret-detected` and `manage-link-disabled` print as `WARNING (code): message`: relay them to the user. A minted `manageUrl` prints as `MANAGE LINK (private): …`: give it to the user privately, never publish it. A listed public result prints `VISIBILITY: public, listed. Hide: set_visibility listed=false`. `get_page` reads stored rendered HTML or format-specific code/text from the API; it does not call the owner-only original-source endpoint or a browser viewer. `publish_file` uploads from a source URL and does not expose password or TTL inputs.
|
|
117
117
|
|
|
@@ -141,7 +141,7 @@ update_hosting(type="html", namespace="public", id="aBcDeFgHiJ", ownerToken="tok
|
|
|
141
141
|
|
|
142
142
|
Publish HTML or Markdown content to BrewPage. Returns a public URL and owner token. Markdown raw HTML is rendered through an allowlist: scripts, styles, event handlers, forms, frames/embeds and `meta`/`base`/`link` are removed; links allow `http`, `https`, `mailto`, `tel` and relative URLs, images also `data:`; a lone unknown tag such as `<author>` shows as text.
|
|
143
143
|
|
|
144
|
-
Parameters: `content` (string), `format` (default `HTML`; `HTML`, `MARKDOWN` or an alias the server maps, e.g. `md`), `namespace` (optional -- **omit for unlisted content**;
|
|
144
|
+
Parameters: `content` (string), `format` (default `HTML`; `HTML`, `MARKDOWN` or an alias the server maps, e.g. `md`), `namespace` (optional -- **omit for private, unlisted content**; `public` lists the page in the gallery and sitemap for Google, Bing and AI search, served on the brewpage.app domain; never put secrets there), `password` (optional), `ttlDays` (days or a string such as `2w`; default 15; the server clamps to 1--30), `filename` (optional, used as title fallback), `showTopBar` (optional boolean -- adds a toolbar with filename, Download button, and theme toggle), `deliveryMode` (optional).
|
|
145
145
|
|
|
146
146
|
The result includes `deliveryModeReason` and a `Delivery notice:` line when the server returns them (see above).
|
|
147
147
|
|
|
@@ -197,7 +197,7 @@ get_page(namespace="public", id="aBcDeFgHiJ")
|
|
|
197
197
|
|
|
198
198
|
Upload a file to BrewPage by fetching it from a URL. Returns a public URL and owner token. Supports images, PDFs, video, audio, code files, and archives.
|
|
199
199
|
|
|
200
|
-
Parameters: `url` (string, the source URL to fetch), `namespace` (optional -- omit to keep the file private
|
|
200
|
+
Parameters: `url` (string, the source URL to fetch), `namespace` (optional -- omit to keep the file private: unlisted and not indexed, anyone with the link can open it; `public` lists the file in the gallery and sitemap for Google, Bing and AI search), `filename` (optional custom filename), `deliveryMode` (optional). This tool does not expose base64, password, or TTL inputs.
|
|
201
201
|
|
|
202
202
|
Example prompt:
|
|
203
203
|
|
|
@@ -217,7 +217,7 @@ Publish a single-page or multi-file HTML site. Pass `entryContent` for a single
|
|
|
217
217
|
|
|
218
218
|
Limits (current values from `get_limits`): a request is at most 25 MB; a site at most 200 files, 5 MB per file and 20 MB in total; each path at most 380 characters. System files such as `.DS_Store` and `__MACOSX/` are skipped and never count; files with an unsupported extension or a too-long path are skipped and reported in notices. Entry: `entry`, else root `index.html`, else the shallowest HTML file. A site limit hit answers 400 with a message naming the limit; 413 means the request is over 25 MB, has too many files and form fields, or a file name/path is too long; 422 means no servable file is left.
|
|
219
219
|
|
|
220
|
-
Parameters: exactly one of `entryContent` (string) or non-empty `files` (array of `{path, content}`), `entry` (optional entry file path, default `index.html`), `namespace` (optional -- omit for unlisted content; `public`
|
|
220
|
+
Parameters: exactly one of `entryContent` (string) or non-empty `files` (array of `{path, content}`), `entry` (optional entry file path, default `index.html`), `namespace` (optional -- omit for private, unlisted content; `public` lists the site in the gallery and sitemap for Google, Bing and AI search; a site always gets its own subdomain), `password` (optional), `ttlDays` (days or a string such as `2w`; default 15; the server clamps to 1--30), `ownerToken` (optional, groups site under an existing owner), `deliveryMode` (optional; fresh sites require `subdomain`).
|
|
221
221
|
|
|
222
222
|
Example prompt:
|
|
223
223
|
|
|
@@ -247,7 +247,7 @@ republish_site(namespace="public", id="aBcDeFgHiJ", ownerToken="tok_...", files=
|
|
|
247
247
|
|
|
248
248
|
Publish a JSON document to BrewPage. Returns a public URL and owner token. The body may be passed as a JSON string or as a structured object.
|
|
249
249
|
|
|
250
|
-
Parameters: `json` (string, object, or array), `namespace` (optional -- omit for
|
|
250
|
+
Parameters: `json` (string, object, or array), `namespace` (optional -- omit for private content; `public` is the shared public namespace; JSON is never listed or indexed, anyone with the link can open it), `password` (optional), `ttlDays` (days or a string such as `2w`; default 15; the server clamps to 1--30), `tags` (optional `string[]`), `ownerToken` (optional existing owner), `deliveryMode` (optional).
|
|
251
251
|
|
|
252
252
|
Example prompt:
|
|
253
253
|
|
|
@@ -297,7 +297,7 @@ update_json(namespace="public", id="aBcDeFgHiJ", json={"mode": "dark", "version"
|
|
|
297
297
|
|
|
298
298
|
Create a new KV (key/value) entry. Returns a public URL and owner token. The KV entry is addressed by `(namespace, id, key)`; this tool creates the entry and emits the generated `id` along with the owner token.
|
|
299
299
|
|
|
300
|
-
Parameters: `key` (string), `value` (string), `namespace` (optional -- omit for
|
|
300
|
+
Parameters: `key` (string), `value` (string), `namespace` (optional -- omit for private content; `public` is the shared public namespace; KV is never listed or indexed, anyone with the link can open it), `password` (optional), `ttlDays` (days or a string such as `2w`; default 15; the server clamps to 1--30), `tags` (optional `string[]`), `ownerToken` (optional existing owner), `deliveryMode` (optional).
|
|
301
301
|
|
|
302
302
|
Example prompt:
|
|
303
303
|
|
|
@@ -379,7 +379,7 @@ delete_resource(type="html", namespace="public", id="aBcDeFgHiJ", ownerToken="to
|
|
|
379
379
|
|
|
380
380
|
### `set_visibility`
|
|
381
381
|
|
|
382
|
-
Hide or show a public publication in gallery
|
|
382
|
+
Hide or show a public publication in the gallery and sitemap; the link stays the same. Only public, password-free HTML, sites and files can be listed; others answer with a `visibility-not-listable` notice.
|
|
383
383
|
|
|
384
384
|
Parameters: `type` (`html` | `site` | `file` | `json` | `kv`), `namespace`, `id`, `listed` (boolean), `ownerToken` (optional).
|
|
385
385
|
|
|
@@ -443,7 +443,7 @@ get_limits()
|
|
|
443
443
|
|--------------------|------|-------|
|
|
444
444
|
| "Publish this HTML so I can share it" | `publish_html` | `format=HTML`; save `ownerToken` |
|
|
445
445
|
| "Share these meeting notes as a link" | `publish_html` | `format=MARKDOWN`; readable rendered output |
|
|
446
|
-
| "Host this AI-generated artifact" | `publish_html` | `namespace` optional; **private/unlisted by default**; `public`
|
|
446
|
+
| "Host this AI-generated artifact" | `publish_html` | `namespace` optional; **private/unlisted by default**; `public` lists it in the gallery and sitemap |
|
|
447
447
|
| "Upload this image / PDF / video" | `publish_file` | Fetches from URL; inline preview on short URL |
|
|
448
448
|
| "Deploy this static site" | `publish_site` | Pass `files` array or `entryContent` |
|
|
449
449
|
| "Replace the site I published" | `republish_site` | Owner token; complete bundle replaces all existing files |
|
|
@@ -491,9 +491,14 @@ Every publish response includes an **owner token** -- the only credential that a
|
|
|
491
491
|
|
|
492
492
|
## Changelog
|
|
493
493
|
|
|
494
|
+
## 1.13.2 -- 2026-10-25
|
|
495
|
+
|
|
496
|
+
- `namespace` guidance matches BrewPage 2.1.5: `public` lists HTML, sites and files in the gallery and sitemap for Google, Bing and AI search (pages on the brewpage.app domain, a site on its own subdomain); omitted stays private; JSON and KV are never listed. Private `publish_json`/`publish_kv` results no longer suggest `public` for listing.
|
|
497
|
+
- Old publications (made before 5 October 2026): the 409 hint mentions `republishUrl` only when the server sends it (HTML pages).
|
|
498
|
+
|
|
494
499
|
## 1.13.1 -- 2026-10-25
|
|
495
500
|
|
|
496
|
-
- Old publications (
|
|
501
|
+
- Old publications (made before 5 October 2026): update tools say they answer `409 OLD_PUBLICATION_READ_ONLY`; that failure adds a hint to publish the content anew and give the user the new URL and owner token.
|
|
497
502
|
|
|
498
503
|
## 1.13.0 -- 2026-10-25
|
|
499
504
|
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
const BASE_URL = process.env.BREWPAGE_URL || "https://brewpage.app";
|
|
6
|
-
const USER_AGENT = "brewpage-mcp/1.13.
|
|
6
|
+
const USER_AGENT = "brewpage-mcp/1.13.2";
|
|
7
7
|
const server = new McpServer({
|
|
8
8
|
name: "brewpage-mcp",
|
|
9
|
-
version: "1.13.
|
|
9
|
+
version: "1.13.2",
|
|
10
10
|
});
|
|
11
11
|
const OWNER_TOKEN_SHAPE = /^[A-Za-z0-9]{32}$/;
|
|
12
12
|
const OWNER_TOKEN_ENV = "BREWPAGE_OWNER_TOKEN";
|
|
@@ -26,7 +26,7 @@ const OWNER_TOKEN_DESCRIPTION = `Owner token from create. Default: ${OWNER_TOKEN
|
|
|
26
26
|
const SECRETS = "Secrets allowed; likely ones are flagged in notices. For a secret: private namespace + password.";
|
|
27
27
|
const MANAGE_URL_TEXT = "Returns manageUrl (private): give it to the user privately; never publish it.";
|
|
28
28
|
const OLD_READ_ONLY_CODE = "OLD_PUBLICATION_READ_ONLY";
|
|
29
|
-
const OLD_READ_ONLY_TEXT = ` Old publications (
|
|
29
|
+
const OLD_READ_ONLY_TEXT = ` Old publications (made before 5 October 2026) are read-only: 409 ${OLD_READ_ONLY_CODE}.`;
|
|
30
30
|
/** Notice codes the agent must relay to the user. */
|
|
31
31
|
const WARNING_CODES = new Set(["secret-detected", "manage-link-disabled"]);
|
|
32
32
|
/** MCP type name -> REST path segment. */
|
|
@@ -52,9 +52,10 @@ function ownerFailure(operation, status, data, fromEnv) {
|
|
|
52
52
|
lines.push(`Wrong owner token for this publication. Use ownerToken from create.${fromEnv ? ` Sent: ${OWNER_TOKEN_ENV}.` : ""}`);
|
|
53
53
|
}
|
|
54
54
|
if (status === 409 && code === OLD_READ_ONLY_CODE) {
|
|
55
|
+
const republishUrl = data.republishUrl;
|
|
55
56
|
lines.push("Read-only old publication: cannot be updated. Publish the content anew with the matching " +
|
|
56
57
|
"publish tool in the same namespace; give the user the NEW URL and owner token. The old URL keeps its old content " +
|
|
57
|
-
"until it expires. Ignore republishUrl (browser-only)." +
|
|
58
|
+
"until it expires." + (typeof republishUrl === "string" ? " Ignore republishUrl (browser-only)." : "") +
|
|
58
59
|
(operation === "set KV" ? " For KV, read all keys with get_kv and publish them together with publish_kv." : ""));
|
|
59
60
|
}
|
|
60
61
|
return textResult(lines.join("\n"), true);
|
|
@@ -66,12 +67,7 @@ function bpFetch(url, init = {}) {
|
|
|
66
67
|
return fetch(url, { ...init, headers });
|
|
67
68
|
}
|
|
68
69
|
const PUBLIC_NAMESPACE = "public";
|
|
69
|
-
/**
|
|
70
|
-
* Generate a short, unlisted private namespace slug used when the caller omits
|
|
71
|
-
* `namespace`. Sending an explicit non-public ns prevents the backend from
|
|
72
|
-
* applying its `public` default and making the content discovery-eligible.
|
|
73
|
-
* Format: `priv-<6 lowercase-alphanumeric chars>`.
|
|
74
|
-
*/
|
|
70
|
+
/** Private namespace slug `priv-<6 lowercase-alphanumeric chars>` sent when the caller omits `namespace`. */
|
|
75
71
|
function defaultPrivateNamespace() {
|
|
76
72
|
const alphabet = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
77
73
|
let slug = "";
|
|
@@ -80,20 +76,28 @@ function defaultPrivateNamespace() {
|
|
|
80
76
|
}
|
|
81
77
|
return `priv-${slug}`;
|
|
82
78
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Resolve the effective namespace actually sent to the API: the caller's value
|
|
85
|
-
* verbatim when provided (including `public`), otherwise a generated private slug.
|
|
86
|
-
*/
|
|
79
|
+
/** Namespace sent to the API: the caller's value verbatim (including `public`), else a generated private slug. */
|
|
87
80
|
function resolveNamespace(namespace) {
|
|
88
81
|
return namespace && namespace.length > 0 ? namespace : defaultPrivateNamespace();
|
|
89
82
|
}
|
|
90
|
-
const UNLISTED_NOTICE = "Private: not listed. Anyone with the link can open it.
|
|
83
|
+
const UNLISTED_NOTICE = "Private: not listed. Anyone with the link can open it.";
|
|
84
|
+
const LISTABLE_HINT = " Use namespace public to list it in the gallery and sitemap.";
|
|
91
85
|
const PROTECTED_UNLISTED_NOTICE = "Password: link + password. Not listed.";
|
|
92
|
-
const
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
|
|
86
|
+
const PUBLIC_NAMESPACE_LEAD = "namespace=public: listed in the public gallery and the sitemap, so Google, Bing and AI search can find and index it " +
|
|
87
|
+
"and people can discover it. Use it for anything meant to be found or shared: docs, guides, demos, portfolios, reports, landing pages. ";
|
|
88
|
+
const PUBLIC_NAMESPACE_TAIL = " Anyone can find and read a public page: never put secrets, tokens or personal data there. " +
|
|
89
|
+
"Omit (default): private. Unlisted and not indexed; anyone who has the link can still open it. ";
|
|
90
|
+
const NAMESPACE_FORMAT = "Lowercase only: 1-32 of a-z, 0-9, hyphen.";
|
|
91
|
+
/** `namespace` for publish_html and publish_file. */
|
|
92
|
+
const NAMESPACE_DESCRIPTION = PUBLIC_NAMESPACE_LEAD +
|
|
93
|
+
"Public pages are served right on the brewpage.app domain, which gives them the strongest reach in search; " +
|
|
94
|
+
"a page whose code needs its own origin (cookies, storage) gets its own subdomain automatically." +
|
|
95
|
+
PUBLIC_NAMESPACE_TAIL + NAMESPACE_FORMAT;
|
|
96
|
+
const SITE_NAMESPACE_DESCRIPTION = PUBLIC_NAMESPACE_LEAD + "A site always gets its own subdomain." +
|
|
97
|
+
PUBLIC_NAMESPACE_TAIL + NAMESPACE_FORMAT;
|
|
98
|
+
/** `namespace` for publish_json and publish_kv: data is never listed. */
|
|
99
|
+
const DATA_NAMESPACE_DESCRIPTION = "Omit (default): private. namespace=public: the shared public namespace. JSON and KV are never listed in the gallery " +
|
|
100
|
+
"or indexed, in any namespace; anyone who has the link can open it. " + NAMESPACE_FORMAT;
|
|
97
101
|
const TTL_SCHEMA = z.union([z.number().positive(), z.string().min(1).max(32)]).optional().describe("Requested TTL: days as a number, or a string such as '2w', '36h' or '1 month' (default 15 days). " +
|
|
98
102
|
"The server rounds to whole days and clamps to the allowed range (1-30 by default; owner caps differ), reporting each adjustment in notices; use returned expiresAt.");
|
|
99
103
|
const DELIVERY_MODE_SCHEMA = z.enum(["path", "subdomain"]).optional().describe("Optional delivery choice for a fresh publication, independent of password/namespace. " +
|
|
@@ -180,7 +184,7 @@ async function apiRequest(method, path, body, headers, responseType = "json") {
|
|
|
180
184
|
const data = responseType === "text" ? await res.text() : await res.json().catch(() => null);
|
|
181
185
|
return { ok: res.ok, status: res.status, data, headers: res.headers };
|
|
182
186
|
}
|
|
183
|
-
function formatPublishResponse(data, effectiveNamespace, sentOwnerToken) {
|
|
187
|
+
function formatPublishResponse(data, effectiveNamespace, sentOwnerToken, listable = true) {
|
|
184
188
|
const lines = [
|
|
185
189
|
`Published successfully!`,
|
|
186
190
|
``,
|
|
@@ -196,7 +200,7 @@ function formatPublishResponse(data, effectiveNamespace, sentOwnerToken) {
|
|
|
196
200
|
lines.push(...ownerLinkLines(data));
|
|
197
201
|
const ns = (data.namespace ?? effectiveNamespace) || "";
|
|
198
202
|
if (ns !== PUBLIC_NAMESPACE) {
|
|
199
|
-
lines.push(``, data.access === "protected" ? PROTECTED_UNLISTED_NOTICE : UNLISTED_NOTICE);
|
|
203
|
+
lines.push(``, data.access === "protected" ? PROTECTED_UNLISTED_NOTICE : UNLISTED_NOTICE + (listable ? LISTABLE_HINT : ""));
|
|
200
204
|
}
|
|
201
205
|
return lines.join("\n");
|
|
202
206
|
}
|
|
@@ -478,7 +482,7 @@ server.tool("publish_site", "Publish an HTML site to BrewPage. Single-page: pass
|
|
|
478
482
|
namespace: z
|
|
479
483
|
.string()
|
|
480
484
|
.optional()
|
|
481
|
-
.describe(
|
|
485
|
+
.describe(SITE_NAMESPACE_DESCRIPTION),
|
|
482
486
|
password: z
|
|
483
487
|
.string()
|
|
484
488
|
.optional()
|
|
@@ -565,7 +569,7 @@ server.tool("publish_site", "Publish an HTML site to BrewPage. Single-page: pass
|
|
|
565
569
|
lines.push(...ownerLinkLines(site));
|
|
566
570
|
const ns = (site.namespace || effectiveNamespace) || "";
|
|
567
571
|
if (ns !== PUBLIC_NAMESPACE) {
|
|
568
|
-
lines.push(``, site.access === "protected" ? PROTECTED_UNLISTED_NOTICE : UNLISTED_NOTICE);
|
|
572
|
+
lines.push(``, site.access === "protected" ? PROTECTED_UNLISTED_NOTICE : UNLISTED_NOTICE + LISTABLE_HINT);
|
|
569
573
|
}
|
|
570
574
|
return {
|
|
571
575
|
content: [{ type: "text", text: lines.join("\n") }],
|
|
@@ -704,7 +708,7 @@ server.tool("publish_json", "Publish a JSON document to BrewPage (repository def
|
|
|
704
708
|
namespace: z
|
|
705
709
|
.string()
|
|
706
710
|
.optional()
|
|
707
|
-
.describe(
|
|
711
|
+
.describe(DATA_NAMESPACE_DESCRIPTION),
|
|
708
712
|
password: z
|
|
709
713
|
.string()
|
|
710
714
|
.optional()
|
|
@@ -756,7 +760,7 @@ server.tool("publish_json", "Publish a JSON document to BrewPage (repository def
|
|
|
756
760
|
content: [
|
|
757
761
|
{
|
|
758
762
|
type: "text",
|
|
759
|
-
text: formatPublishResponse(data, effectiveNamespace, owner),
|
|
763
|
+
text: formatPublishResponse(data, effectiveNamespace, owner, false),
|
|
760
764
|
},
|
|
761
765
|
],
|
|
762
766
|
};
|
|
@@ -835,7 +839,7 @@ server.tool("publish_kv", "Publish a key/value entry to BrewPage. Creates a KV s
|
|
|
835
839
|
namespace: z
|
|
836
840
|
.string()
|
|
837
841
|
.optional()
|
|
838
|
-
.describe(
|
|
842
|
+
.describe(DATA_NAMESPACE_DESCRIPTION),
|
|
839
843
|
password: z
|
|
840
844
|
.string()
|
|
841
845
|
.optional()
|
|
@@ -882,7 +886,7 @@ server.tool("publish_kv", "Publish a key/value entry to BrewPage. Creates a KV s
|
|
|
882
886
|
content: [
|
|
883
887
|
{
|
|
884
888
|
type: "text",
|
|
885
|
-
text: formatPublishResponse(data, effectiveNamespace, owner),
|
|
889
|
+
text: formatPublishResponse(data, effectiveNamespace, owner, false),
|
|
886
890
|
},
|
|
887
891
|
],
|
|
888
892
|
};
|
|
@@ -1039,7 +1043,7 @@ server.tool("search_gallery", "Search the BrewPage public gallery. Optional filt
|
|
|
1039
1043
|
],
|
|
1040
1044
|
};
|
|
1041
1045
|
});
|
|
1042
|
-
server.tool("set_visibility", "Hide or show a public publication in gallery
|
|
1046
|
+
server.tool("set_visibility", "Hide or show a public publication in the gallery and sitemap. Link unchanged.", {
|
|
1043
1047
|
type: z.enum(["html", "site", "file", "json", "kv"]).describe("Publication type; only public html, site and file can be listed"),
|
|
1044
1048
|
namespace: z.string().describe("Publication namespace"),
|
|
1045
1049
|
id: z.string().describe("Publication ID"),
|
package/package.json
CHANGED