build: separate runtime artifacts and supervise command ownership
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
import { silentLogger } from "../../dist/logger.js";
|
||||
import { Client, InMemoryTransport } from "@modelcontextprotocol/client";
|
||||
|
||||
import { BROWSER_TOOL_CONTRACTS } from "../../dist/contracts/browserToolContracts.js";
|
||||
@@ -22,7 +23,7 @@ if (process.argv[2] === "reversed") {
|
||||
const { createServer } = await import("../../dist/server/createServer.js");
|
||||
const config = parseConfig({});
|
||||
if (!config.ok) throw config.error;
|
||||
const session = createBinarySession(config.value);
|
||||
const session = createBinarySession(config.value, silentLogger, {});
|
||||
const server = createServer(session, session);
|
||||
const client = new Client({ name: "contract-presentation", version: "1" });
|
||||
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
|
||||
|
||||
Reference in New Issue
Block a user