Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/domdomegg/computer-use-mcp
/ functions
Functions
16 in github.com/domdomegg/computer-use-mcp
⨍
Functions
16
◇
Types & classes
2
↓ 29 callers
Function
toKeys
(xdotoolString: string)
src/xdotoolStringToKeys.ts:215
↓ 10 callers
Function
jsonResult
(data: T)
src/utils/response.ts:3
↓ 3 callers
Function
createServer
()
src/index.ts:5
↓ 3 callers
Function
getApiToLogicalScale
* Get the scale factor from API image coordinates to logical screen coordinates. * This is the inverse of the downsampling we apply to fit API limits
src/tools/computer.ts:118
↓ 2 callers
Function
getSizeToApiScale
* Calculate the scale factor to downsample an image to fit API limits. * Returns a value <= 1 representing how much to shrink the image.
src/tools/computer.ts:104
↓ 2 callers
Function
setupSignalHandlers
(cleanup: () => Promise<void>)
src/main.ts:22
↓ 1 callers
Function
createClient
()
src/e2e.test.ts:104
↓ 1 callers
Function
createProcessBasedClient
* Creates an MCP client that communicates with a spawned process via stdin/stdout
src/e2e.test.ts:25
↓ 1 callers
Function
grabScreen
* Grab the screen, falling back to the macOS `screencapture` CLI if nut-js fails * (e.g. on macOS 26+ where CGDisplayCreateImageForRect was removed).
src/tools/computer.ts:25
↓ 1 callers
Function
hasXdotool
()
src/tools/computer.ts:55
↓ 1 callers
Function
registerAll
(server: McpServer)
src/tools/index.ts:4
↓ 1 callers
Function
registerComputer
(server: McpServer)
src/tools/computer.ts:175
↓ 1 callers
Function
xdotoolType
* Type text using xdotool, which correctly respects the X11 keyboard layout. * * nut-js's keyboard.type() uses libnut's typeString which maps charac
src/tools/computer.ts:77
Function
close
()
src/e2e.test.ts:82
Method
constructor
(key: string)
src/xdotoolStringToKeys.ts:209
Function
sendRequest
(message: JSONRPCRequest)
src/e2e.test.ts:55