@wootsup/yt-builder-mcp 1.4.0 → 1.4.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/dist/proxy/bridge.d.ts +27 -2
- package/dist/proxy/bridge.d.ts.map +1 -1
- package/dist/proxy/bridge.js +83 -3
- package/dist/proxy/bridge.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/dist/proxy/bridge.d.ts
CHANGED
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
2
|
+
/**
|
|
3
|
+
* Normalise the WordPress↔Joomla `/mcp` envelope asymmetry for `tools/call`
|
|
4
|
+
* responses.
|
|
5
|
+
*
|
|
6
|
+
* The WP mcp-adapter (`ToolsHandler`) treats an Ability's return value as raw
|
|
7
|
+
* data and `wp_json_encode`s our already-final `CallToolResult` into a fresh
|
|
8
|
+
* text-content block. Over the wire that yields a DOUBLE-wrapped result —
|
|
9
|
+
* `result.content[0].text` is itself a serialised `CallToolResult`
|
|
10
|
+
* (`{"content":[{"type":"text","text":"<real-data-json>"}],"isError":…}`).
|
|
11
|
+
* Joomla's `/api/` handler single-wraps: `result.content[0].text` is already
|
|
12
|
+
* the real data JSON. The proxy bridge is a verbatim pipe, so a WP customer
|
|
13
|
+
* would receive doubly-nested tool output while a Joomla customer would not.
|
|
14
|
+
*
|
|
15
|
+
* Strip EXACTLY ONE level of that nesting, and ONLY when the inner payload is
|
|
16
|
+
* unmistakably a nested `CallToolResult`. Every shape check is defensive
|
|
17
|
+
* (try/catch around the parse, strict block typing) so a genuine Joomla data
|
|
18
|
+
* payload is never touched. Non-`tools/call` frames (initialize, tools/list,
|
|
19
|
+
* JSON-RPC errors, notifications) are returned by reference, unchanged.
|
|
20
|
+
*
|
|
21
|
+
* Exported for unit tests.
|
|
22
|
+
*/
|
|
23
|
+
export declare function normalizeProxyResponse(msg: unknown): unknown;
|
|
2
24
|
/**
|
|
3
25
|
* Wire two MCP transports into a transparent pipe: every message from one side
|
|
4
|
-
* is relayed
|
|
5
|
-
*
|
|
26
|
+
* is relayed to the other, and a close/error on either side tears down the
|
|
27
|
+
* other. The local→remote direction is verbatim; the remote→local direction
|
|
28
|
+
* normalises the WP double-wrap (see `normalizeProxyResponse`) so WP and Joomla
|
|
29
|
+
* customers receive identical, spec-clean tool results. The PHP server otherwise
|
|
30
|
+
* owns the protocol semantics.
|
|
6
31
|
* The caller is responsible for start()ing both transports.
|
|
7
32
|
*
|
|
8
33
|
* `StreamableHTTPClientTransport.send()` re-throws on any upstream failure
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/proxy/bridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/proxy/bridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAgE/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAoC5D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAuD1E;AAED;;mDAEmD;AACnD,UAAU,WAAW;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKpF;AAcD,iFAAiF;AACjF,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IACJ,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK;QACnC,KAAK,EAAE,SAAS,CAAC;QACjB,MAAM,EAAE,SAAS,CAAC;KACnB,CAAC;CACE,GACL,OAAO,CAAC,IAAI,CAAC,CAyBf;AAED,qFAAqF;AACrF,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAO,GAC1D,OAAO,CAAC,OAAO,CAAC,CAalB"}
|
package/dist/proxy/bridge.js
CHANGED
|
@@ -28,10 +28,87 @@ function requestId(msg) {
|
|
|
28
28
|
}
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
|
+
function isTextContentBlock(v) {
|
|
32
|
+
return (v !== null &&
|
|
33
|
+
typeof v === 'object' &&
|
|
34
|
+
typeof v.type === 'string' &&
|
|
35
|
+
typeof v.text === 'string');
|
|
36
|
+
}
|
|
37
|
+
function isNestedCallToolResult(v) {
|
|
38
|
+
if (v === null || typeof v !== 'object')
|
|
39
|
+
return false;
|
|
40
|
+
const content = v.content;
|
|
41
|
+
return Array.isArray(content) && content.length > 0 && isTextContentBlock(content[0]);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Normalise the WordPress↔Joomla `/mcp` envelope asymmetry for `tools/call`
|
|
45
|
+
* responses.
|
|
46
|
+
*
|
|
47
|
+
* The WP mcp-adapter (`ToolsHandler`) treats an Ability's return value as raw
|
|
48
|
+
* data and `wp_json_encode`s our already-final `CallToolResult` into a fresh
|
|
49
|
+
* text-content block. Over the wire that yields a DOUBLE-wrapped result —
|
|
50
|
+
* `result.content[0].text` is itself a serialised `CallToolResult`
|
|
51
|
+
* (`{"content":[{"type":"text","text":"<real-data-json>"}],"isError":…}`).
|
|
52
|
+
* Joomla's `/api/` handler single-wraps: `result.content[0].text` is already
|
|
53
|
+
* the real data JSON. The proxy bridge is a verbatim pipe, so a WP customer
|
|
54
|
+
* would receive doubly-nested tool output while a Joomla customer would not.
|
|
55
|
+
*
|
|
56
|
+
* Strip EXACTLY ONE level of that nesting, and ONLY when the inner payload is
|
|
57
|
+
* unmistakably a nested `CallToolResult`. Every shape check is defensive
|
|
58
|
+
* (try/catch around the parse, strict block typing) so a genuine Joomla data
|
|
59
|
+
* payload is never touched. Non-`tools/call` frames (initialize, tools/list,
|
|
60
|
+
* JSON-RPC errors, notifications) are returned by reference, unchanged.
|
|
61
|
+
*
|
|
62
|
+
* Exported for unit tests.
|
|
63
|
+
*/
|
|
64
|
+
export function normalizeProxyResponse(msg) {
|
|
65
|
+
if (msg === null || typeof msg !== 'object')
|
|
66
|
+
return msg;
|
|
67
|
+
const result = msg.result;
|
|
68
|
+
if (result === null || typeof result !== 'object')
|
|
69
|
+
return msg;
|
|
70
|
+
// Only tools/call responses carry a `result.content` array.
|
|
71
|
+
const content = result.content;
|
|
72
|
+
if (!Array.isArray(content))
|
|
73
|
+
return msg;
|
|
74
|
+
// A double-wrap is EXACTLY one text block whose text is a serialised result.
|
|
75
|
+
if (content.length !== 1)
|
|
76
|
+
return msg;
|
|
77
|
+
const block = content[0];
|
|
78
|
+
if (!isTextContentBlock(block) || block.type !== 'text')
|
|
79
|
+
return msg;
|
|
80
|
+
let inner;
|
|
81
|
+
try {
|
|
82
|
+
inner = JSON.parse(block.text);
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
// Joomla single-wrap (text is the real data JSON, not nested) or plain
|
|
86
|
+
// prose — leave the frame untouched.
|
|
87
|
+
return msg;
|
|
88
|
+
}
|
|
89
|
+
if (!isNestedCallToolResult(inner))
|
|
90
|
+
return msg;
|
|
91
|
+
// Unpack one level: keep the outer result's fields, swap in the inner
|
|
92
|
+
// content, and let the inner isError / structuredContent win when present
|
|
93
|
+
// (the inner is the REAL tool result; the outer is the adapter's wrapper).
|
|
94
|
+
const normalizedResult = {
|
|
95
|
+
...result,
|
|
96
|
+
content: inner.content,
|
|
97
|
+
};
|
|
98
|
+
if (inner.isError !== undefined)
|
|
99
|
+
normalizedResult.isError = inner.isError;
|
|
100
|
+
if (inner.structuredContent !== undefined) {
|
|
101
|
+
normalizedResult.structuredContent = inner.structuredContent;
|
|
102
|
+
}
|
|
103
|
+
return { ...msg, result: normalizedResult };
|
|
104
|
+
}
|
|
31
105
|
/**
|
|
32
106
|
* Wire two MCP transports into a transparent pipe: every message from one side
|
|
33
|
-
* is relayed
|
|
34
|
-
*
|
|
107
|
+
* is relayed to the other, and a close/error on either side tears down the
|
|
108
|
+
* other. The local→remote direction is verbatim; the remote→local direction
|
|
109
|
+
* normalises the WP double-wrap (see `normalizeProxyResponse`) so WP and Joomla
|
|
110
|
+
* customers receive identical, spec-clean tool results. The PHP server otherwise
|
|
111
|
+
* owns the protocol semantics.
|
|
35
112
|
* The caller is responsible for start()ing both transports.
|
|
36
113
|
*
|
|
37
114
|
* `StreamableHTTPClientTransport.send()` re-throws on any upstream failure
|
|
@@ -75,7 +152,10 @@ export function bridgeTransports(local, remote) {
|
|
|
75
152
|
});
|
|
76
153
|
};
|
|
77
154
|
remote.onmessage = (msg) => {
|
|
78
|
-
|
|
155
|
+
// Normalise the WP-only double-wrap so the client sees the same shape it
|
|
156
|
+
// would from Joomla. Non-tools/call frames pass through by reference.
|
|
157
|
+
const normalized = normalizeProxyResponse(msg);
|
|
158
|
+
local.send(normalized).catch((err) => {
|
|
79
159
|
console.error('[yt-builder-proxy] downstream send failed:', errorMessage(err));
|
|
80
160
|
});
|
|
81
161
|
};
|
package/dist/proxy/bridge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.js","sourceRoot":"","sources":["../../src/proxy/bridge.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,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DAA+D;IAC/D,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;IACpB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,MAAM,MAAM,CAAC;AACf,CAAC;AAED,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,GAAsB,EACtB,OAAyD,EAAE;IAE3D,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC;IAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC;IACtC,gFAAgF;IAChF,4EAA4E;IAC5E,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,GAAG,CAAC;QACR,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"dxt_version": "0.1",
|
|
3
3
|
"name": "@wootsup/yt-builder-mcp",
|
|
4
4
|
"display_name": "YT Builder MCP for YOOtheme Pro (unofficial)",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.1",
|
|
6
6
|
"description": "Drive your YOOtheme Pro Page Builder programmatically from Claude, Cursor, Codex, Gemini and 5 other MCP-capable AI assistants — read layouts, edit settings, add elements, bind dynamic sources. Works on WordPress and Joomla 5/6. Built for YOOtheme Pro 4.0+. Independent third-party project, not affiliated with YOOtheme GmbH.",
|
|
7
7
|
"long_description": "YT Builder MCP gives AI assistants a typed, scoped, and idempotent surface for your YOOtheme Pro Page Builder, on either WordPress or Joomla 5/6. Tools cover page discovery, layout inspection, element CRUD, source binding, and diagnostics. Bearer auth, optimistic locking via ETag, scope hierarchy (read < write < admin), and structured-error responses keep the agent safe and the workflow correct on first try. Independent third-party project — YOOtheme® is a registered trademark of YOOtheme GmbH (yootheme.com); YT Builder MCP is built by WootsUp (getimo productions) and is not affiliated with, endorsed by, or sponsored by YOOtheme.",
|
|
8
8
|
"icon": "icon.png",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wootsup/yt-builder-mcp",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "YT Builder MCP — drive your page builder from Claude, Cursor, Codex, Gemini and 5 other MCP-capable AI assistants. Built for YOOtheme Pro 4.0+. Independent third-party project, not affiliated with YOOtheme GmbH.",
|
|
6
6
|
"license": "MIT",
|