MCPcopy Create free account
hub / github.com/Noumena-Network/code / createComputerUseMcpServerForCli

Function createComputerUseMcpServerForCli

src/utils/computerUse/mcpServer.ts:60–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 * server exists only to answer ListTools.
59 */
60export async function createComputerUseMcpServerForCli(): Promise<
61 ReturnType<typeof createComputerUseMcpServer>
62> {
63 const adapter = getComputerUseHostAdapter()
64 const coordinateMode = getChicagoCoordinateMode()
65 const server = createComputerUseMcpServer(adapter, coordinateMode)
66
67 const installedAppNames = await tryGetInstalledAppNames()
68 const tools = buildComputerUseTools(
69 adapter.executor.capabilities,
70 coordinateMode,
71 installedAppNames,
72 )
73 server.setRequestHandler(ListToolsRequestSchema, async () =>
74 adapter.isDisabled() ? { tools: [] } : { tools },
75 )
76
77 return server
78}
79
80/**
81 * Subprocess entrypoint for `--computer-use-mcp`. Mirror of

Callers 2

runComputerUseMcpServerFunction · 0.85
client.tsFile · 0.85

Calls 3

getChicagoCoordinateModeFunction · 0.85
tryGetInstalledAppNamesFunction · 0.85

Tested by

no test coverage detected