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
runTests
()
test/test-markdown-preview.js:559
↓ 1 callers
Function
runTests
()
test/test-blocked-commands.js:274
↓ 1 callers
Function
runTests
()
test/test.js:75
↓ 1 callers
Function
runTests
()
test/test-ui-event-tracking.js:57
↓ 1 callers
Function
runTests
()
test/test-file-preview-directory-runtime.js:28
↓ 1 callers
Function
runTests
()
test/test-excel-files.js:393
↓ 1 callers
Function
runTests
()
test/test-blocklist-bypass.js:9
↓ 1 callers
Function
runTests
()
test/test-allowed-directories.js:389
↓ 1 callers
Function
runTests
()
test/test-default-shell.js:396
↓ 1 callers
Function
runTests
()
test/test-read-completed-process.js:76
↓ 1 callers
Function
runUninstall
()
src/npm-scripts/uninstall.ts:26
↓ 1 callers
Function
sanitizeSlugPart
(text: string)
src/ui/file-preview/src/markdown/slugify.ts:3
↓ 1 callers
Function
sanitizeTelemetryErrorMessage
(message: string)
src/ui/config-editor/src/app.ts:62
↓ 1 callers
Method
savePersistedConfig
()
src/remote-device/device.ts:216
↓ 1 callers
Function
saveState
(state)
scripts/publish-release.cjs:68
↓ 1 callers
Method
saveToCache
* Save flags to local cache
src/utils/feature-flags.ts:224
↓ 1 callers
Function
scheduleAutosave
()
src/ui/file-preview/src/markdown/controller.ts:320
↓ 1 callers
Function
search
(currentPath: string)
src/tools/filesystem.ts:851
↓ 1 callers
Function
searchAndWaitForCompletion
* Helper function to wait for search completion and get all results
test/test_search_truncation.js:7
↓ 1 callers
Function
searchAndWaitForCompletion
* Helper function to wait for search completion and get all results
test/test_improved_search_truncation.js:7
↓ 1 callers
Method
searchDocxFiles
* Search DOCX files for content matches * Extracts <w:t> text from document.xml and searches it
src/search-manager.ts:523
↓ 1 callers
Method
searchExcelFiles
* Search Excel files for content matches * Called during content search to include Excel files alongside text files * Searches ALL sheets in eac
src/search-manager.ts:341
↓ 1 callers
Function
searchFilesNodeJS
(rootPath: string, pattern: string)
src/tools/filesystem.ts:848
↓ 1 callers
Function
searchLinkTargets
(filePath: string, query: string)
src/ui/file-preview/src/markdown/controller.ts:484
↓ 1 callers
Function
sendToTelemetryProxy
(event: string, eventProperties: any)
src/utils/capture.ts:408
↓ 1 callers
Function
setButtonState
(button: HTMLElement, label: string, fallbackLabel: string, revertMs?: number)
src/ui/file-preview/src/panel-actions.ts:38
↓ 1 callers
Function
setCurrentCallIsRemote
* Set whether the current tool call is from a remote device. * Called once per tool call by the CallTool handler.
src/server.ts:153
↓ 1 callers
Function
setIconButtonState
(button: HTMLElement, label: string, fallbackLabel: string, revertMs?: number)
src/ui/file-preview/src/panel-actions.ts:51
↓ 1 callers
Method
setOffline
(deviceId: string | undefined)
src/remote-device/remote-channel.ts:474
↓ 1 callers
Function
setPayload
(payload: ConfigEditorPayload | null)
src/ui/config-editor/src/app.ts:373
↓ 1 callers
Function
setup
()
setup-claude-server.js:651
↓ 1 callers
Function
setup
* Setup function
test/test-file-handlers.js:53
↓ 1 callers
Function
setup
()
test/test-line-count.js:16
↓ 1 callers
Function
setup
* Setup function to prepare for tests
test/test-repl-interaction.js:29
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-edit-block-line-endings.js:57
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-directory-creation.js:47
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-edit-block-occurrences.js:32
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-home-directory.js:59
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-blocked-commands.js:112
↓ 1 callers
Function
setup
()
test/test.js:13
↓ 1 callers
Function
setup
* Setup function to prepare literal search test environment
test/test-literal-search.js:71
↓ 1 callers
Function
setup
* Setup function to prepare test environment
test/test-negative-offset-readfile.js:28
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-excel-files.js:47
↓ 1 callers
Function
setup
* Setup function to prepare test environment
test/test-search-code.js:75
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-allowed-directories.js:74
↓ 1 callers
Function
setup
* Setup function to prepare the test environment
test/test-default-shell.js:132
↓ 1 callers
Function
setup
* Setup test environment
test/test-symlink-security.js:40
↓ 1 callers
Function
setup
(client)
test/integration/edit-block-performance.js:794
↓ 1 callers
Function
setup
(client)
test/integration/read-file-unknown-params.js:56
↓ 1 callers
Method
setupConsoleRedirection
()
src/custom-stdio.ts:126
↓ 1 callers
Function
setupEdgeCases
* Setup function for edge case tests
test/test-search-code-edge-cases.js:71
↓ 1 callers
Method
setupProcessHandlers
(session: SearchSession)
src/search-manager.ts:813
↓ 1 callers
Method
setupShutdownHandlers
()
src/remote-device/device.ts:40
↓ 1 callers
Method
setupStdoutFiltering
()
src/custom-stdio.ts:189
↓ 1 callers
Method
shouldIncludeDocxSearch
* Determine if DOCX search should be included based on context
src/search-manager.ts:497
↓ 1 callers
Method
shouldIncludeExcelSearch
* Determine if Excel search should be included based on context * Only searches Excel files when: * - filePattern explicitly targets Excel files
src/search-manager.ts:707
↓ 1 callers
Function
shouldIncludeTool
* Check if a tool should be included based on current client
src/server.ts:248
↓ 1 callers
Function
shouldPromptForDockerInfo
()
src/utils/dockerPrompt.ts:12
↓ 1 callers
Method
shouldPromptForFeedback
* Check if user should be prompted for feedback based on usage patterns
src/utils/usageTracker.ts:218
↓ 1 callers
Function
shouldShowMcpUiPreviews
()
src/utils/mcp-ui-ab-test.ts:68
↓ 1 callers
Method
shouldShowOnboarding
* Check if user should see onboarding invitation - SIMPLE VERSION
src/utils/usageTracker.ts:419
↓ 1 callers
Function
showError
(message: string)
src/ui/config-editor/src/array-modal.ts:68
↓ 1 callers
Function
showHelp
()
scripts/publish-release.cjs:245
↓ 1 callers
Function
showHint
(selection: Selection)
src/ui/file-preview/src/host/selection-context.ts:48
↓ 1 callers
Function
showLinkPopover
(anchor: HTMLAnchorElement)
src/ui/file-preview/src/markdown/editor.ts:1405
↓ 1 callers
Function
simplePythonTest
()
test/simple-python-test.js:8
↓ 1 callers
Function
sleep
(ms)
test/integration/terminal-output-buffer-leak.js:52
↓ 1 callers
Function
splitHref
(rawHref: string)
src/ui/file-preview/src/markdown/linking.ts:148
↓ 1 callers
Method
splitLinesPreservingEndings
* Split text into lines while preserving line endings * Made static and public for use by other modules (e.g., readFileInternal in filesystem.ts)
src/utils/files/text.ts:173
↓ 1 callers
Function
splitListingLines
(text: string)
src/ui/file-preview/src/markdown/controller.ts:65
↓ 1 callers
Function
splitOversizedEditBlocks
(blocks: EditBlock[])
src/ui/file-preview/src/markdown/controller.ts:245
↓ 1 callers
Function
splitTopLevelElements
* Split XML into top-level elements respecting nesting depth. * E.g. for body content, returns each direct child element as a string.
src/utils/files/docx.ts:353
↓ 1 callers
Function
startCleanupIfNeeded
* Start cleanup interval - now runs on fixed schedule
src/search-manager.ts:1011
↓ 1 callers
Method
startHeartbeat
(deviceId: string)
src/remote-device/remote-channel.ts:422
↓ 1 callers
Method
startWriteProcessor
* Async write processor - batches writes to avoid blocking
src/utils/toolHistory.ts:175
↓ 1 callers
Method
stopHeartbeat
()
src/remote-device/remote-channel.ts:435
↓ 1 callers
Method
subscribe
(cb)
test/test-remote-channel-reconnect.js:47
↓ 1 callers
Function
syncChromeState
()
src/ui/file-preview/src/app.ts:398
↓ 1 callers
Function
syncExpandButton
(toggleButton: HTMLButtonElement | null, expanded: boolean)
src/ui/shared/tool-shell.ts:32
↓ 1 callers
Function
syncModelContext
(reason: string, change?: { key: string; value: unknown })
src/ui/config-editor/src/app.ts:861
↓ 1 callers
Function
syncShellClasses
(shell: HTMLElement | null, expanded: boolean)
src/ui/shared/tool-shell.ts:42
↓ 1 callers
Function
teardown
* Teardown function * Always runs cleanup, restores config only if provided
test/test-file-handlers.js:70
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-repl-interaction.js:48
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-edit-block-line-endings.js:93
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-directory-creation.js:68
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-edit-block-occurrences.js:71
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-home-directory.js:76
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-blocked-commands.js:132
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test.js:23
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-literal-search.js:155
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-negative-offset-readfile.js:53
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-excel-files.js:68
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-search-code.js:151
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-allowed-directories.js:98
↓ 1 callers
Function
teardown
* Teardown function to clean up after tests
test/test-default-shell.js:146
↓ 1 callers
Function
teardown
(client, originalConfig)
test/integration/edit-block-performance.js:828
↓ 1 callers
Function
teardown
(client, originalConfig)
test/integration/read-file-unknown-params.js:76
↓ 1 callers
Function
teardownEdgeCases
* Teardown function for edge case tests
test/test-search-code-edge-cases.js:113
↓ 1 callers
Function
testAbsoluteOffset
* Test 2: Positive offset (absolute position)
test/test-process-pagination.js:61
↓ 1 callers
Function
testAllowedDirectories
* Main test function
test/test-allowed-directories.js:364
← previous
next →
801–900 of 1,250, ranked by callers