-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify-setup.ts
More file actions
26 lines (20 loc) · 1.01 KB
/
verify-setup.ts
File metadata and controls
26 lines (20 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import * as setup from "./src/internal/setup-hyperstack.js";
async function verify() {
console.log("--- Hyperstack Setup Verification ---");
const platform = setup.detectEnvironment();
console.log(`Detected Platform: ${platform}`);
const configPath = setup.findConfigFile(platform);
console.log(`Config Path Found: ${configPath || "None (expected if running in clean environment)"}`);
if (configPath || platform !== "unknown") {
const finalPath = configPath || "/tmp/mcp.json";
console.log("\nProposed Patch (Method: DOCKER - Default):");
const dockerPatch = setup.generateMcpPatch(finalPath, process.cwd(), "docker");
console.log(JSON.stringify(dockerPatch, null, 2));
console.log("\nProposed Patch (Method: LOCAL):");
const localPatch = setup.generateMcpPatch(finalPath, process.cwd(), "local");
console.log(JSON.stringify(localPatch, null, 2));
} else {
console.log("Environment unknown - research fallback would trigger here.");
}
}
verify().catch(console.error);