@composer-app/mcp 0.0.4-beta.0 → 0.0.4-beta.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.
|
@@ -4543,15 +4543,8 @@ var COMPOSER_MCP_VERSION = pkg.version;
|
|
|
4543
4543
|
// src/roomState.ts
|
|
4544
4544
|
var HAD_UPGRADE_403 = /* @__PURE__ */ Symbol("composer.upgrade403");
|
|
4545
4545
|
var TerminalDetectingWS = class extends WebSocket {
|
|
4546
|
-
constructor(
|
|
4547
|
-
|
|
4548
|
-
super(address, protocols, {
|
|
4549
|
-
...options,
|
|
4550
|
-
headers: {
|
|
4551
|
-
...existingHeaders,
|
|
4552
|
-
"X-Composer-Client": COMPOSER_MCP_VERSION
|
|
4553
|
-
}
|
|
4554
|
-
});
|
|
4546
|
+
constructor(...args) {
|
|
4547
|
+
super(...args);
|
|
4555
4548
|
this.on("unexpected-response", (_req, res) => {
|
|
4556
4549
|
if (res.statusCode === 403) {
|
|
4557
4550
|
this[HAD_UPGRADE_403] = true;
|
|
@@ -4649,6 +4642,7 @@ var RoomState = class _RoomState {
|
|
|
4649
4642
|
this.provider = new YProvider(opts.serverHost, opts.roomId, this.doc, {
|
|
4650
4643
|
party: "composer-room",
|
|
4651
4644
|
connect: false,
|
|
4645
|
+
params: { client: `mcp-${COMPOSER_MCP_VERSION}` },
|
|
4652
4646
|
WebSocketPolyfill: TerminalDetectingWS
|
|
4653
4647
|
});
|
|
4654
4648
|
}
|
package/dist/cli.js
CHANGED
package/dist/mcp.js
CHANGED