@rse/ase 0.9.15 → 0.9.16
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/dst/ase-mcp.js
CHANGED
|
@@ -56,13 +56,8 @@ export default class MCPCommand {
|
|
|
56
56
|
}
|
|
57
57
|
/* bridge stdio to a Streamable HTTP MCP endpoint on the local service */
|
|
58
58
|
async runBridge() {
|
|
59
|
-
/*
|
|
60
|
-
|
|
61
|
-
is funnelled into the same reconnect machinery used at runtime so
|
|
62
|
-
that a transient startup failure is recoverable instead of fatal */
|
|
63
|
-
const ctx0 = this.loadContext();
|
|
64
|
-
let projectId = ctx0.projectId;
|
|
65
|
-
let port = ctx0.port ?? 0;
|
|
59
|
+
/* ensure the service is running */
|
|
60
|
+
let { projectId, port } = await this.ensureService();
|
|
66
61
|
/* create MCP STDIO server (lives for the entire bridge lifetime) */
|
|
67
62
|
const server = new StdioServerTransport();
|
|
68
63
|
/* track active client and bridge-level closed state */
|
|
@@ -159,17 +154,10 @@ export default class MCPCommand {
|
|
|
159
154
|
/* start server and initial client */
|
|
160
155
|
await server.start();
|
|
161
156
|
try {
|
|
162
|
-
/* ensure the service is running, then connect; both the
|
|
163
|
-
service start/probe and the connect are covered here so that
|
|
164
|
-
an initial failure recovers via the reconnect machinery
|
|
165
|
-
(now in place) instead of crashing the bridge outright */
|
|
166
|
-
const ctx = await this.ensureService();
|
|
167
|
-
projectId = ctx.projectId;
|
|
168
|
-
port = ctx.port;
|
|
169
157
|
await connectClient();
|
|
170
158
|
}
|
|
171
159
|
catch (err) {
|
|
172
|
-
/*
|
|
160
|
+
/* service vanished between probe and connect — recover instead of crashing */
|
|
173
161
|
triggerReconnect(`initial connect failed: ${this.asError(err).message}`);
|
|
174
162
|
}
|
|
175
163
|
/* periodically probe the service; trigger reconnect if it is gone */
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"homepage": "http://github.com/rse/ase",
|
|
7
7
|
"repository": { "url": "git+https://github.com/rse/ase.git", "type": "git" },
|
|
8
8
|
"bugs": { "url": "http://github.com/rse/ase/issues" },
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.16",
|
|
10
10
|
"license": "GPL-3.0-only",
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "Dr. Ralf S. Engelschall",
|
package/plugin/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"homepage": "http://github.com/rse/ase",
|
|
7
7
|
"repository": { "url": "git+https://github.com/rse/ase.git", "type": "git" },
|
|
8
8
|
"bugs": { "url": "http://github.com/rse/ase/issues" },
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.16",
|
|
10
10
|
"license": "GPL-3.0-only",
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "Dr. Ralf S. Engelschall",
|