66// FumaDB/Drizzle handle (the 2026-04-16 prod outage was a schema spread bug
77// here; see db/db.schema.test.ts)
88// - `createExecutionEngine` with an in-process code executor
9- // - `buildMcpServer ` for the MCP request surface
9+ // - `createExecutorMcpServer ` for the MCP request surface
1010// - Real `@modelcontextprotocol/sdk` Client → server round-trips
1111//
1212// This test replicates the DO's init path (minus the WorkerTransport and
@@ -22,7 +22,7 @@ import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
2222import { ElicitRequestSchema } from "@modelcontextprotocol/sdk/types.js" ;
2323import type { ClientCapabilities } from "@modelcontextprotocol/sdk/types.js" ;
2424
25- import { buildMcpServer } from "@executor-js/host-mcp/tool-server" ;
25+ import { createExecutorMcpServer } from "@executor-js/host-mcp/tool-server" ;
2626import { createExecutionEngine } from "@executor-js/execution" ;
2727import { makeQuickJsExecutor } from "@executor-js/runtime-quickjs" ;
2828import { collectTables } from "@executor-js/api/server" ;
@@ -138,12 +138,8 @@ const openSession = (
138138 Effect . gen ( function * ( ) {
139139 const executor = yield * buildScopedExecutor ( organizationId , `Org ${ organizationId } ` , options ) ;
140140 const engine = createExecutionEngine ( { executor, codeExecutor : makeQuickJsExecutor ( ) } ) ;
141- const mcpServer = yield * buildMcpServer ( {
141+ const mcpServer = yield * createExecutorMcpServer ( {
142142 engine,
143- appsEnabled : false ,
144- requestStateSigningKey : new Uint8Array ( 32 ) . fill ( 23 ) ,
145- requestStatePrincipal : `cloud-mcp-test:${ organizationId } ` ,
146- sessionful : true ,
147143 elicitationMode : options . elicitationMode ? { mode : options . elicitationMode } : undefined ,
148144 } ) ;
149145 const [ clientTransport , serverTransport ] = InMemoryTransport . createLinkedPair ( ) ;
0 commit comments