sbuilder-mcp 0.82.4 → 0.82.5
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 +5 -0
- package/CHANGELOG.vi.md +5 -0
- package/dist/tools/api.js +7 -3
- package/package.json +1 -1
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.82.5] - 2026-10-10
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- `sb_api_call` accepts `site_id` like every other tool and uses it to fill `{siteId}`, so calls no longer demand `path_params` when `SB_SITE` is unset.
|
|
13
|
+
|
|
9
14
|
## [0.82.4] - 2026-10-10
|
|
10
15
|
|
|
11
16
|
### Fixed
|
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.82.5] - 2026-10-10
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- `sb_api_call` nhận `site_id` như mọi tool khác và dùng nó để điền `{siteId}`, nên lệnh gọi không còn đòi `path_params` khi chưa đặt `SB_SITE`.
|
|
13
|
+
|
|
9
14
|
## [0.82.4] - 2026-10-10
|
|
10
15
|
|
|
11
16
|
### Fixed
|
package/dist/tools/api.js
CHANGED
|
@@ -527,9 +527,12 @@ export async function callOperation(ctx, args) {
|
|
|
527
527
|
// the environment already holds — made the model carry a 32-character
|
|
528
528
|
// string through every raw call it made. An explicit argument still wins,
|
|
529
529
|
// so a session spanning two sites works by naming each.
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
// `site_id` too, as every other tool takes it: without it in the schema the SDK
|
|
531
|
+
// dropped the argument SILENTLY and the call asked for path_params instead
|
|
532
|
+
// (measured on a live platform with SB_SITE unset).
|
|
533
|
+
const site = args.site_id || ctx.siteId;
|
|
534
|
+
if (value === undefined && SITE_PARAMS.has(name.toLowerCase()) && site)
|
|
535
|
+
value = site;
|
|
533
536
|
if (value === undefined) {
|
|
534
537
|
// NAME THE ARGUMENT, not just the parameter. The call sheet lists these
|
|
535
538
|
// under `params` while the call takes them in `path_params`, and a caller
|
|
@@ -820,6 +823,7 @@ export function registerApiTools(server, ctx) {
|
|
|
820
823
|
.string()
|
|
821
824
|
.optional()
|
|
822
825
|
.describe('Bare platform path, e.g. "/api/sites/{siteId}/published"; {siteId} defaults to SB_SITE'),
|
|
826
|
+
site_id: z.string().optional(),
|
|
823
827
|
path_params: z.record(z.string()).optional(),
|
|
824
828
|
query: z.record(z.string()).optional(),
|
|
825
829
|
body: z.unknown().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.5",
|
|
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",
|