Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
MCP restart test: config.json holds the Vault pointer, and the launched process gets the value
milind-sonif7e022f7370f
diff --git a/server/mcp-restart.e2e.test.ts b/server/mcp-restart.e2e.test.tsindex b65625c6b9..60d2ff5cd7 100644--- a/server/mcp-restart.e2e.test.ts+++ b/server/mcp-restart.e2e.test.ts@@ -88,7 +88,9 @@ it("restart keeps the key and replaces the warm process, and so does turning theawait cycled.done();expect(cycled.started.pid, "off and on in one turn starts a new process too").not.toBe(fresh.started.pid);expect(mailKey(cycled.started)).toBe("kept-key-value");- expect(JSON.parse(readFileSync(join(fixture.info.dataDir, "config.json"), "utf8")).mcpServers.mail.env).toEqual({ MAIL_KEY: "kept-key-value" });+ const onDisk = readFileSync(join(fixture.info.dataDir, "config.json"), "utf8");+ expect(JSON.parse(onDisk).mcpServers.mail.env).toEqual({ MAIL_KEY: expect.stringMatching(/^vault:[0-9a-f-]{36}$/u) });+ expect(onDisk).not.toContain("kept-key-value");} finally {writeFileSync(gate, "");await fixture.close();