Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wonderwhy-er/DesktopCommanderMCP
/ functions
Functions
1,250 in github.com/wonderwhy-er/DesktopCommanderMCP
⨍
Functions
1,250
◇
Types & classes
157
↓ 1 callers
Function
detectAvailableShells
(systemInfo: ReturnType<typeof getSystemInfo>)
src/tools/config.ts:25
↓ 1 callers
Function
detectContainerEnvironment
* Detect container environment and type
src/utils/system-info.ts:69
↓ 1 callers
Function
detectInstallationSource
* Detect installation source from environment and process context
track-installation.js:83
↓ 1 callers
Function
detectLineEnding
(content: string)
src/utils/lineEndingHandler.ts:10
↓ 1 callers
Function
detectNodeInfo
* Detect Node.js installation and version from current process
src/utils/system-info.ts:443
↓ 1 callers
Function
detectPythonInfo
* Detect Python installation and version and put on systeminfo.pythonInfo
src/utils/system-info.ts:467
↓ 1 callers
Function
detectShell
()
setup-claude-server.js:170
↓ 1 callers
Function
detectShell
()
uninstall-claude-server.js:127
↓ 1 callers
Function
detectUnsupportedParams
(args: unknown, schema: unknown)
src/utils/unsupportedParams.ts:50
↓ 1 callers
Function
dirListOp
()
src/tools/filesystem.ts:450
↓ 1 callers
Function
discoverContainerMounts
* Discover container mount points
src/utils/system-info.ts:187
↓ 1 callers
Method
displayUserInstructions
(deviceAuth: DeviceAuthResponse)
src/remote-device/device-authenticator.ts:95
↓ 1 callers
Function
disposeHandles
()
src/ui/file-preview/src/markdown/controller.ts:337
↓ 1 callers
Function
downloadAndExtractPlatform
(platform)
scripts/download-all-ripgrep.cjs:146
↓ 1 callers
Function
downloadFile
(url, dest)
scripts/download-all-ripgrep.cjs:47
↓ 1 callers
Method
enableNotifications
* Call this method after MCP initialization is complete to enable JSON-RPC notifications
src/custom-stdio.ts:63
↓ 1 callers
Function
enhancedGetTrackingProperties
(additionalProps = {})
setup-claude-server.js:265
↓ 1 callers
Function
ensureChromeAvailable
()
src/tools/pdf/markdown.ts:255
↓ 1 callers
Function
ensureCompletePayload
(payload: RenderPayload)
src/ui/file-preview/src/markdown/controller.ts:385
↓ 1 callers
Function
escapeAppleScriptString
(value: string)
src/tools/filesystem.ts:1054
↓ 1 callers
Function
escapeRegExp
* Escape special regex characters
src/utils/process-detection.ts:165
↓ 1 callers
Function
executablePathForBuild
(chromeDir, buildDirName)
test/test-pdf-chrome-cache.js:18
↓ 1 callers
Function
executeCommand
(command, timeout_ms = 2000, shell = null)
test/test-blocked-commands.js:17
↓ 1 callers
Function
executeNodeCode
* Execute Node.js code via temp file (fallback when Python unavailable) * Creates temp .mjs file in MCP directory for ES module import access
src/tools/improved-process-tools.ts:27
↓ 1 callers
Function
expandHome
* Expand home directory (~) in a file path
src/handlers/filesystem-handlers.ts:38
↓ 1 callers
Function
exportLogs
()
scripts/export-fuzzy-logs.js:47
↓ 1 callers
Function
extractActualTextFromFuzzyDiff
(resultText)
test/integration/edit-block-performance.js:215
↓ 1 callers
Function
extractHeaderFooterOutline
* Extract outline info for headers and footers from the DOCX zip.
src/utils/files/docx.ts:413
↓ 1 callers
Function
extractImagesFromPdf
( pdfBuffer: Uint8Array, pageNumbers?: number[], compressionOptions: ImageCompressionOptions = {}
src/tools/pdf/extract-images.ts:39
↓ 1 callers
Function
extractInlineText
(token: Record<string, unknown> | undefined)
src/ui/file-preview/src/markdown/utils.ts:1
↓ 1 callers
Function
extractMetadata
({ pdfDocument, metadata }: ParseResult)
src/tools/pdf/lib/pdf2md.ts:46
↓ 1 callers
Function
extractOutline
* Extract a text-bearing outline from document.xml. * * Walks direct children of <w:body> and for each: * - w:p (paragraph): extracts text from <w:
src/utils/files/docx.ts:125
↓ 1 callers
Function
extractParagraphStyle
Extract paragraph style id from w:pPr/w:pStyle
src/utils/files/docx.ts:264
↓ 1 callers
Function
extractPayload
(result: unknown)
src/ui/config-editor/src/app.ts:145
↓ 1 callers
Function
extractStructuredContentText
(value: unknown)
src/ui/file-preview/src/payload-utils.ts:58
↓ 1 callers
Function
extractTableRows
Extract table rows as arrays of cell text
src/utils/files/docx.ts:276
↓ 1 callers
Function
extractTableStyle
Extract table style from w:tblPr/w:tblStyle
src/utils/files/docx.ts:270
↓ 1 callers
Function
extractTarGz
(tarPath, outputDir, targetBinary)
scripts/download-all-ripgrep.cjs:115
↓ 1 callers
Function
extractToolsFromManifest
()
scripts/validate-tools-sync.js:28
↓ 1 callers
Function
extractToolsFromServer
()
scripts/validate-tools-sync.js:36
↓ 1 callers
Function
extractToolsFromServer
()
scripts/count-tokens.js:31
↓ 1 callers
Function
extractZip
(zipPath, outputDir, targetBinary)
scripts/download-all-ripgrep.cjs:83
↓ 1 callers
Method
fetchSupabaseConfig
()
src/remote-device/device.ts:242
↓ 1 callers
Method
findDevice
(deviceId: string)
src/remote-device/remote-channel.ts:93
↓ 1 callers
Method
findDocxFiles
* Find all DOCX files in a directory recursively
src/search-manager.ts:610
↓ 1 callers
Method
findExcelFiles
* Find all Excel files in a directory recursively
src/search-manager.ts:455
↓ 1 callers
Function
findHeading
(anchor: string)
src/ui/file-preview/src/markdown/controller.ts:532
↓ 1 callers
Function
findSystemChrome
* Find system-installed Chrome/Chromium browser * Returns the executable path if found, undefined otherwise
src/tools/pdf/markdown.ts:140
↓ 1 callers
Function
flushDeferredMessages
()
src/server.ts:88
↓ 1 callers
Function
formatCategoriesResponse
* Format categories list response
src/tools/prompts.ts:241
↓ 1 callers
Function
formatJsonIfPossible
(content: string, filePath: string)
src/ui/file-preview/src/components/code-viewer.ts:47
↓ 1 callers
Function
formatLocalTimestamp
(isoTimestamp: string)
src/utils/toolHistory.ts:19
↓ 1 callers
Function
formatPromptResponse
* Format individual prompt response with the actual prompt content
src/tools/prompts.ts:319
↓ 1 callers
Function
formatPromptsListResponse
* Format prompts list response using secondary tags for clean organization
src/tools/prompts.ts:262
↓ 1 callers
Function
formatValue
* Format a value for display, handling objects and arrays
src/handlers/filesystem-handlers.ts:397
↓ 1 callers
Function
fromFileUrl
(url: URL)
src/ui/file-preview/src/markdown/linking.ts:175
↓ 1 callers
Method
generatePKCE
()
src/remote-device/device-authenticator.ts:60
↓ 1 callers
Function
generatePageNumbers
( offset: number, length: number, totalPages: number )
src/tools/pdf/utils.ts:21
↓ 1 callers
Method
getAll
* Get all flags for debugging
src/utils/feature-flags.ts:88
↓ 1 callers
Function
getAlphaVersion
* Calculate alpha version from current version * - "0.2.28" → "0.2.29-alpha.0" * - "0.2.29-alpha.0" → "0.2.29-alpha.1" * - "0.2.29-alpha.5" → "0.2.
scripts/publish-release.cjs:117
↓ 1 callers
Function
getAncestorDirectories
(filePath: string)
src/ui/file-preview/src/path-utils.ts:39
↓ 1 callers
Function
getAvailableDisplayModes
()
src/ui/file-preview/src/app.ts:59
↓ 1 callers
Method
getBinaryInstructions
* Generate instructions for handling binary files
src/utils/files/binary.ts:70
↓ 1 callers
Function
getCachedChromeBuildDir
* Resolve the cached Chrome build directory that owns an executable path.
src/tools/pdf/markdown.ts:62
↓ 1 callers
Function
getCategoryDescription
* Get category description (can be expanded later)
src/tools/prompts.ts:220
↓ 1 callers
Function
getCharacterCodeData
* Extract character code data from diff * @param expected The string that was searched for * @param actual The string that was found * @returns Cha
src/tools/edit.ts:57
↓ 1 callers
Function
getChromeExecutablePath
* Find the platform-specific executable within a cached Chrome build directory.
src/tools/pdf/markdown.ts:37
↓ 1 callers
Function
getClientId
* Get the client ID from the Desktop Commander config file, or generate a new one
track-installation.js:46
↓ 1 callers
Function
getConfig
()
src/tools/config.ts:90
↓ 1 callers
Function
getConfigFieldMetadata
(key: string)
src/ui/config-editor/src/app.ts:135
↓ 1 callers
Function
getConfigSettings
()
uninstall-claude-server.js:21
↓ 1 callers
Function
getContainerEnvironment
* Get container environment information
src/utils/system-info.ts:342
↓ 1 callers
Method
getDefaultStats
* Get default usage stats
src/utils/usageTracker.ts:66
↓ 1 callers
Function
getDefaultTargetOrigin
()
src/ui/shared/tool-bridge.ts:36
↓ 1 callers
Function
getDevelopmentToolGuidance
(systemInfo: SystemInfo)
src/utils/system-info.ts:760
↓ 1 callers
Function
getDockerInfoMessage
()
src/utils/dockerPrompt.ts:25
↓ 1 callers
Function
getExecutionContext
()
setup-claude-server.js:243
↓ 1 callers
Function
getExecutionContext
()
uninstall-claude-server.js:162
↓ 1 callers
Function
getFallbackWidgetInstanceId
()
src/ui/shared/widget-state.ts:52
↓ 1 callers
Function
getFallbackWidgetStateKey
()
src/ui/shared/widget-state.ts:73
↓ 1 callers
Method
getFeedbackPromptMessage
* Get a random feedback prompt message with strong CTAs and clear actions * NEW 2025 Survey - 3 variants for fresh analytics tracking
src/utils/usageTracker.ts:279
↓ 1 callers
Function
getFileExtension
(filePath: string)
src/ui/file-preview/src/components/code-viewer.ts:37
↓ 1 callers
Method
getFileLineCount
* Get file line count (for files under size limit)
src/utils/files/text.ts:121
↓ 1 callers
Method
getInfo
* Get file metadata * @param path Validated file path * @returns File information including type-specific metadata
src/utils/files/base.ts:56
↓ 1 callers
Function
getLatestSchemaVersion
* Get the latest schema version from mcp-publisher
scripts/publish-release.cjs:322
↓ 1 callers
Function
getLineInfo
(selection: Selection)
src/ui/file-preview/src/host/selection-context.ts:73
↓ 1 callers
Function
getMimeType
(filePath: string)
src/tools/mime-types.ts:2
↓ 1 callers
Method
getMimeType
* Get MIME type for image based on file extension
src/utils/files/image.ts:84
↓ 1 callers
Function
getMimeTypeInfo
* Get MIME type information for a file * @param filePath Path to the file * @returns Object with mimeType and isImage properties
src/tools/filesystem.ts:34
↓ 1 callers
Function
getNpmVersion
()
setup-claude-server.js:125
↓ 1 callers
Function
getNpmVersion
()
uninstall-claude-server.js:83
↓ 1 callers
Function
getOSSpecificGuidance
(systemInfo: SystemInfo)
src/utils/system-info.ts:631
↓ 1 callers
Method
getOnboardingMessage
* Get onboarding message for new users - DIRECT 5-OPTION LIST (V2)
src/utils/usageTracker.ts:483
↓ 1 callers
Function
getPageLayout
(page: PDFPage)
src/tools/pdf/manipulations.ts:44
↓ 1 callers
Function
getPathGuidance
(systemInfo: SystemInfo)
src/utils/system-info.ts:813
↓ 1 callers
Function
getPrompt
* Get a specific prompt by ID and inject it into the chat
src/tools/prompts.ts:189
↓ 1 callers
Function
getPrompts
(params: any)
src/tools/prompts.ts:73
↓ 1 callers
Function
getPythonCommand
* Determines the correct python command to use * @returns {string} 'python3' or 'python'
test/test-enhanced-repl.js:9
↓ 1 callers
Method
getRecentCalls
* Get recent tool calls with filters
src/utils/toolHistory.ts:245
↓ 1 callers
Method
getRecentCallsFormatted
* Get recent calls formatted with local timezone
src/utils/toolHistory.ts:271
← previous
next →
501–600 of 1,250, ranked by callers