MCPcopy Create free account

hub / github.com/AliyahZombie/OctSSH / functions

Functions202 in github.com/AliyahZombie/OctSSH

↓ 56 callersFunctiongetOctsshDir
()
src/state/paths.ts:8
↓ 56 callersFunctionrespond
(result: ToolResult)
src/mcp/server.ts:31
↓ 40 callersFunctionrespond
(result: ToolResult)
src/mcp/localServer.ts:23
↓ 25 callersMethodget
(key: K)
src/ssh/connectionPool.ts:39
↓ 24 callersFunctionrunCommand
( client: Client, command: string, options: ExecOptions = {} )
src/ssh/runCommand.ts:20
↓ 21 callersFunctionwrapSh
(command: string)
src/ssh/shell.ts:8
↓ 16 callersFunctioncall
(client, name, args)
scripts/transfer-remote-smoke.cjs:30
↓ 16 callersMethodclose
(key: K)
src/ssh/connectionPool.ts:67
↓ 15 callersFunctiontoolName
(name: string)
src/mcp/server.ts:166
↓ 12 callersFunctionsaveSession
(record: SessionRecord, baseDir?: string)
src/state/sessions.ts:105
↓ 11 callersFunctionloadSession
(sessionId: string, baseDir?: string)
src/state/sessions.ts:98
↓ 11 callersFunctiontoolName
(name: string)
src/mcp/localServer.ts:95
↓ 10 callersFunctionquoteForSh
(value: string)
src/ssh/shell.ts:1
↓ 9 callersFunctiontoHomeAbs
(remotePath: string)
src/mcp/server.ts:62
↓ 8 callersFunctionappendLog
(sessionId: string, line: string, baseDir = getOctsshDir())
src/transfer/manager.ts:28
↓ 7 callersFunctionisoNow
()
src/mcp/server.ts:47
↓ 7 callersFunctionloadConfig
(baseDir?: string)
src/state/config.ts:61
↓ 6 callersFunctionnowIso
()
src/transfer/manager.ts:16
↓ 6 callersFunctionsetTransferSession
(update: Partial<SessionRecord> & { session_id: string }, baseDir = getOctsshDir())
src/transfer/manager.ts:36
↓ 5 callersFunctionfirstLine
(s: string)
src/init/extended.ts:14
↓ 4 callersFunctionatomicWriteFileSync
(filePath: string, contents: string)
src/state/fs.ts:8
↓ 4 callersFunctioncreatePending
(record: PendingRecord, baseDir?: string)
src/state/pending.ts:48
↓ 4 callersFunctiondeletePending
(code: string, baseDir?: string)
src/state/pending.ts:62
↓ 4 callersFunctionguardExecCommand
(params: { client: Client; machine: string; command: string; allowSudo: boolean; confirm_code?: stri
src/security/policy.ts:202
↓ 4 callersFunctionguardLocalCommand
(params: { machine: string; command: string; allowSudo: boolean; confirm_code?: string; security: Se
src/security/localPolicy.ts:190
↓ 4 callersFunctionloadPending
(code: string, baseDir?: string)
src/state/pending.ts:55
↓ 4 callersFunctionmapLimit
(items, limit, fn)
src/init/initCli.ts:19
↓ 4 callersFunctionreadJsonIfExistsSync
(filePath: string)
src/state/fs.ts:17
↓ 4 callersFunctionrunStreamableHttpServer
(params: { config: ServeConfig; server?: McpServer; createServer?: () => McpServer; })
src/mcp/httpServe.ts:158
↓ 4 callersFunctionsplitShellWords
(input: string)
src/security/shellwords.ts:1
↓ 4 callersFunctionwithSftp
(client: Client, fn: (sftp: SftpClient) => Promise<T>)
src/ssh/sftp.ts:14
↓ 3 callersFunctionask
(rl: readline.Interface, q: string)
src/init/initCli.ts:11
↓ 3 callersFunctionbadRequest
(res: http.ServerResponse, message = "Bad Request")
src/mcp/httpServe.ts:80
↓ 3 callersFunctioncanSpawn
(exe: string, args: string[])
src/local/shell.ts:21
↓ 3 callersFunctioncommonEnvVars
()
src/envManager/protocol.ts:29
↓ 3 callersFunctionconnectSsh2
(params: SshClientParams)
src/ssh/connect.ts:42
↓ 3 callersFunctiondeleteSessionFile
(sessionId: string, baseDir: string)
src/state/cleanup.ts:38
↓ 3 callersFunctiongetDefaultSshConfigPath
()
src/ssh/config/paths.ts:4
↓ 3 callersFunctiongetPendingPath
(code: string, baseDir?: string)
src/state/pending.ts:44
↓ 3 callersFunctionisoNow
()
src/init/initCli.ts:15
↓ 3 callersFunctionisoNow
()
src/mcp/localServer.ts:30
↓ 3 callersFunctionisoNow
()
src/local/asyncWrapper.ts:16
↓ 3 callersFunctionparse
(res)
test/http-serve.test.js:130
↓ 3 callersFunctionsaveInventory
(inv: Inventory, baseDir?: string)
src/state/inventory.ts:41
↓ 3 callersFunctionsftpStat
(sftp: SftpClient, p: string)
src/ssh/sftp.ts:28
↓ 3 callersMethodsize
()
src/ssh/connectionPool.ts:35
↓ 3 callersFunctionspawnShell
(params: { shell: LocalShellSpec; command: string; shellArgs?: string[]; options?: SpawnOptions; })
src/local/shell.ts:100
↓ 3 callersFunctiontoSingleHeaderValue
(v: string | string[] | undefined)
src/mcp/httpServe.ts:118
↓ 3 callersFunctionwriteMeta
(metaPath: string, meta: any)
src/local/asyncWrapper.ts:20
↓ 2 callersFunctioncleanup
()
src/ssh/connect.ts:47
↓ 2 callersFunctioncollectExtendedInfo
(client: Client)
src/init/extended.ts:18
↓ 2 callersFunctionconnectAndClose
()
test/http-serve.test.js:82
↓ 2 callersFunctionconnectDirect
(params: Omit<SshClientParams, "sock">)
src/ssh/connect.ts:82
↓ 2 callersFunctionconnectWithProxyJump
(params: { jump: Omit<SshClientParams, "sock"> & { host: string; port?: number }; target: Omit<SshClientPa
src/ssh/connect.ts:90
↓ 2 callersFunctiondefaultUsername
()
src/ssh/machine.ts:45
↓ 2 callersFunctiondiscoverHostAliases
(options: HostDiscoveryOptions = {})
src/ssh/config/hosts.ts:39
↓ 2 callersFunctionensureLocalDir
(dir: string)
src/transfer/download.ts:9
↓ 2 callersFunctionfindDownloadConflicts
(plan: DownloadPlan)
src/transfer/download.ts:84
↓ 2 callersFunctionfindExpiredSessions
(params: { baseDir: string; retentionDays: number; now?: Date; })
src/state/cleanup.ts:18
↓ 2 callersFunctionfindUploadConflicts
(client: Client, plan: UploadPlan)
src/transfer/upload.ts:67
↓ 2 callersFunctiongetConfigPath
(baseDir?: string)
src/state/config.ts:56
↓ 2 callersFunctiongetDefaultOctsshDir
()
src/state/paths.ts:4
↓ 2 callersFunctiongetInventoryPath
(baseDir?: string)
src/state/inventory.ts:29
↓ 2 callersFunctiongetSessionPath
(sessionId: string, baseDir?: string)
src/state/sessions.ts:94
↓ 2 callersFunctiongetSshConfigPath
()
src/ssh/config/paths.ts:9
↓ 2 callersFunctiongetStructured
(toolResult)
test/mcp-client.test.js:10
↓ 2 callersFunctionglobToRegExp
(glob: string)
src/ssh/config/resolve.ts:25
↓ 2 callersFunctiongrep
(file: string)
src/mcp/server.ts:879
↓ 2 callersFunctiongrepFile
(filePath: string)
src/mcp/localServer.ts:500
↓ 2 callersFunctionhasPwsh
()
src/local/shell.ts:30
↓ 2 callersFunctionhasSh
()
src/local/shell.ts:26
↓ 2 callersFunctionhasWindowsPowerShell
()
src/local/shell.ts:34
↓ 2 callersFunctionisDir
(attrs: any)
src/transfer/remoteWalk.ts:12
↓ 2 callersFunctionloadFirstPrivateKey
(identityFiles: string[])
src/ssh/connect.ts:33
↓ 2 callersFunctionloadInventory
(baseDir?: string)
src/state/inventory.ts:34
↓ 2 callersFunctionlogServeError
(message: string, err: unknown, meta: Record<string, unknown>)
src/mcp/httpServe.ts:136
↓ 2 callersFunctionmatchesAnyRegex
(command: string, patterns: string[])
src/security/policy.ts:75
↓ 2 callersFunctionmatchesAnyRegex
(command: string, patterns: string[])
src/security/localPolicy.ts:65
↓ 2 callersFunctionmethodNotAllowed
(res: http.ServerResponse, message = "Method Not Allowed")
src/mcp/httpServe.ts:86
↓ 2 callersFunctionperformDownload
(client: Client, plan: DownloadPlan)
src/transfer/download.ts:92
↓ 2 callersFunctionperformUpload
(client: Client, plan: UploadPlan)
src/transfer/upload.ts:79
↓ 2 callersFunctionplanDownload
(client: Client, remotePath: string, localPath: string)
src/transfer/download.ts:36
↓ 2 callersFunctionplanMachineConnection
(machine: string)
src/ssh/machine.ts:59
↓ 2 callersFunctionplanUpload
(client: Client, localPath: string, remotePath: string)
src/transfer/upload.ts:24
↓ 2 callersFunctionpollTransfer
(client, session_id)
scripts/transfer-remote-smoke.cjs:37
↓ 2 callersFunctionpush
()
src/security/shellwords.ts:7
↓ 2 callersFunctionq
(s: string)
src/security/policy.ts:155
↓ 2 callersFunctionresolveHostConfig
(alias: string, options: ResolveOptions = {})
src/ssh/config/resolve.ts:225
↓ 2 callersFunctionresolveRemotePath
(client: Client, p: string)
src/transfer/remotePath.ts:23
↓ 2 callersFunctionresolveStatically
(alias: string, configPath: string)
src/ssh/config/resolve.ts:91
↓ 2 callersFunctionrunLauncher
(pty: boolean)
src/ssh/asyncScreen.ts:106
↓ 2 callersFunctionrunLocalCommand
(params: { command: string; sudo?: boolean; // Extra argv passed to the shell command after `-lc <comman
src/local/runLocalCommand.ts:23
↓ 2 callersFunctionrunProtocol
(args, octsshHome, extraEnv = {})
test/env-manager-protocol.test.js:8
↓ 2 callersFunctionselectLocalShell
()
src/local/shell.ts:38
↓ 2 callersFunctionstartAsyncInScreen
( client: Client, params: StartAsyncParams )
src/ssh/asyncScreen.ts:60
↓ 2 callersFunctionstartLocalAsync
(params: StartLocalAsyncParams)
src/local/asyncProcess.ts:42
↓ 2 callersMethodsweep
(now = Date.now())
src/ssh/connectionPool.ts:74
↓ 2 callersFunctiontailLocalFile
(filePath: string, lines: number)
src/mcp/localServer.ts:34
↓ 1 callersFunctionbuildEffectiveSecurityConfig
(user: SecurityConfig)
src/security/policy.ts:59
↓ 1 callersFunctionbuildEffectiveSecurityConfig
(user: SecurityConfig)
src/security/localPolicy.ts:49
next →1–100 of 202, ranked by callers