sbuilder-mcp 0.109.0 → 0.109.1

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/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ All notable changes to this project are documented in this file.
6
6
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [0.109.1] - 2026-11-19
10
+
11
+ ### Fixed
12
+ - `sb_site_use` is no longer marked read-only, so clients that auto-approve read-only tools now ask before it changes the site every later write lands on.
13
+
9
14
  ## [0.109.0] - 2026-11-19
10
15
 
11
16
  ### Added
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,11 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
6
6
  Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [0.109.1] - 2026-11-19
10
+
11
+ ### Fixed
12
+ - `sb_site_use` không còn được đánh dấu chỉ-đọc, nên các client tự động duyệt công cụ chỉ-đọc giờ sẽ hỏi trước khi nó đổi site mà mọi lệnh ghi sau đó rơi vào.
13
+
9
14
  ## [0.109.0] - 2026-11-19
10
15
 
11
16
  ### Added
@@ -167,6 +167,8 @@ export function registerLoginTools(server, ctx, version) {
167
167
  server.registerTool('sb_site_use', {
168
168
  description: 'Switch the site every tool defaults to (needs the sb_login account login).',
169
169
  inputSchema: { site_id: z.string() },
170
- annotations: { readOnlyHint: true },
170
+ // NOT read-only: it moves where every later write lands, so a client that
171
+ // auto-approves read-only tools must still ask before it.
172
+ annotations: { readOnlyHint: false, idempotentHint: true },
171
173
  }, async ({ site_id }) => text(await useSite(ctx, site_id)));
172
174
  }
@@ -7,7 +7,7 @@ import { spawn } from 'node:child_process';
7
7
  * that pre-fills it is a link a phisher can send.
8
8
  */
9
9
  /** What the approval page shows as the asking app — on the server's allowlist
10
- * (web_builder KnownDeviceClients) from v1.0.277; older servers say "unknown app". */
10
+ * (web_builder KnownDeviceClients) from v1.0.278; older servers say "unknown app". */
11
11
  export const DEVICE_CLIENT = 'sbuilder-mcp';
12
12
  const trim = (base) => base.replace(/\/+$/, '');
13
13
  async function post(base, path, body, fetchImpl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbuilder-mcp",
3
- "version": "0.109.0",
3
+ "version": "0.109.1",
4
4
  "description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
5
5
  "mcpName": "io.github.vuluu2k/sbuilder-mcp",
6
6
  "type": "module",