@subseam/mcp 0.3.1 → 0.3.2
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/main.js +23 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -20238,7 +20238,8 @@ var ROOT_SCRIPTS = [
|
|
|
20238
20238
|
"test:extract-prod-compose",
|
|
20239
20239
|
"test:backend",
|
|
20240
20240
|
"test:control",
|
|
20241
|
-
"test:oracle"
|
|
20241
|
+
"test:oracle",
|
|
20242
|
+
"test:oracle-exhaustive"
|
|
20242
20243
|
];
|
|
20243
20244
|
|
|
20244
20245
|
// ../execution-contract/src/workload/scoping.ts
|
|
@@ -20565,7 +20566,8 @@ var VERIFY_ROOT_SCRIPTS = [
|
|
|
20565
20566
|
"test:extract-prod-compose",
|
|
20566
20567
|
"test:backend",
|
|
20567
20568
|
"test:control",
|
|
20568
|
-
"test:oracle"
|
|
20569
|
+
"test:oracle",
|
|
20570
|
+
"test:oracle-exhaustive"
|
|
20569
20571
|
];
|
|
20570
20572
|
|
|
20571
20573
|
// ../verify-contract/src/job/artifact.ts
|
|
@@ -43118,6 +43120,20 @@ var coerce = {
|
|
|
43118
43120
|
};
|
|
43119
43121
|
var NEVER2 = INVALID;
|
|
43120
43122
|
|
|
43123
|
+
// src/discovery-failure.ts
|
|
43124
|
+
init_esm_shims();
|
|
43125
|
+
var DISCOVERY_FAILURE_TOOL = "subseam_unavailable";
|
|
43126
|
+
function discoveryFailureText(url2, reason) {
|
|
43127
|
+
return `subseam is unavailable this session: capability discovery failed, so no subseam tools are mounted. Tried GET ${url2.replace(/\/$/, "")}/capabilities \u2014 ${reason}. Check SUBSEAM_URL is your subseam API URL and that it is reachable, then restart the MCP server.`;
|
|
43128
|
+
}
|
|
43129
|
+
function mountDiscoveryFailure(server, url2, reason) {
|
|
43130
|
+
const text = discoveryFailureText(url2, reason);
|
|
43131
|
+
server.registerTool(DISCOVERY_FAILURE_TOOL, { description: text, inputSchema: {} }, () => ({
|
|
43132
|
+
content: [{ type: "text", text }],
|
|
43133
|
+
isError: true
|
|
43134
|
+
}));
|
|
43135
|
+
}
|
|
43136
|
+
|
|
43121
43137
|
// src/gateway.ts
|
|
43122
43138
|
init_esm_shims();
|
|
43123
43139
|
var TENANT_HEADER2 = "x-tenant-id";
|
|
@@ -45687,7 +45703,7 @@ var workTools = createPullToolProviders({ capability: "work" });
|
|
|
45687
45703
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools];
|
|
45688
45704
|
|
|
45689
45705
|
// package.json
|
|
45690
|
-
var version2 = "0.3.
|
|
45706
|
+
var version2 = "0.3.2";
|
|
45691
45707
|
|
|
45692
45708
|
// src/server.ts
|
|
45693
45709
|
var SERVER_VERSION = version2;
|
|
@@ -45700,10 +45716,13 @@ async function createServer(config3, cwd, initialWorkspaceId) {
|
|
|
45700
45716
|
try {
|
|
45701
45717
|
enabled = await fetchEnabledCapabilities(config3);
|
|
45702
45718
|
} catch (err2) {
|
|
45719
|
+
const reason = err2 instanceof Error ? err2.message : String(err2);
|
|
45703
45720
|
process.stderr.write(
|
|
45704
|
-
`subseam-mcp: capability discovery failed; mounting no tools this session
|
|
45721
|
+
`subseam-mcp: capability discovery failed; mounting no product tools this session, only ${DISCOVERY_FAILURE_TOOL} reporting the failure. ${reason}
|
|
45705
45722
|
`
|
|
45706
45723
|
);
|
|
45724
|
+
mountDiscoveryFailure(server, config3.url, reason);
|
|
45725
|
+
return server;
|
|
45707
45726
|
}
|
|
45708
45727
|
const providers = bundledProviders.map((p, i) => assertToolProvider(p, `bundled provider [${i}]`));
|
|
45709
45728
|
const ctx = { cwd, tenantId: config3.tenantId, gateway: createGatewayClient(config3), enabledCapabilities: enabled, workspace: createWorkspaceBinding(initialWorkspaceId) };
|