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
testRangeWithSheetPrefix
* Test 10: read_file range parity with edit_block (BUG_REPORT.md) * Regression for issue where read_file rejected "SheetName!A1:B2" while edit_block
test/test-excel-files.js:302
↓ 1 callers
Function
testReReadOutput
* Test 7: Re-reading output with absolute offset
test/test-process-pagination.js:215
↓ 1 callers
Function
testReadCompletedProcessOutput
* Proper test for read_process_output on completed processes * * This test should: * - FAIL when the bug exists (current behavior) * - PASS whe
test/test-read-completed-process.js:11
↓ 1 callers
Function
testReadFilePreviewMetadata
* Test 9: read_file handler returns preview structured content for markdown/text
test/test-file-handlers.js:289
↓ 1 callers
Function
testReadOptionsInterface
* Test 3: ReadOptions interface
test/test-file-handlers.js:151
↓ 1 callers
Function
testRefreshDoesNotMisclassifyMarkdownContentAsDeletion
()
test/test-markdown-preview.js:481
↓ 1 callers
Function
testRegexFailureLiteralSuccess
* Test that demonstrates regex mode fails while literal mode succeeds * This is the key test that shows the problem we solved
test/test-literal-search.js:333
↓ 1 callers
Function
testRegexVsLiteralDifference
* Test that regex search works differently than literal search
test/test-literal-search.js:213
↓ 1 callers
Function
testRootInAllowedDirectories
* Test with root directory in allowedDirectories * * NOTE: This test was modified to accommodate the current behavior on Windows systems. * On Win
test/test-allowed-directories.js:176
↓ 1 callers
Function
testRuntimeInfo
* Test 5: Runtime info for completed processes
test/test-process-pagination.js:146
↓ 1 callers
Function
testSearchCode
()
test/test-search-code.js:490
↓ 1 callers
Function
testSearchCodeEdgeCases
()
test/test-search-code-edge-cases.js:476
↓ 1 callers
Function
testSearchTruncation
()
test/test_search_truncation.js:46
↓ 1 callers
Function
testSetConfigValueCoercion
()
test/test-telemetry-handling.js:39
↓ 1 callers
Function
testShellSwitching
* Test switching between different shells
test/test-default-shell.js:283
↓ 1 callers
Function
testSlugGeneration
()
test/test-markdown-preview.js:15
↓ 1 callers
Function
testSpecialCharacters
* Test special characters and Unicode
test/test-search-code-edge-cases.js:193
↓ 1 callers
Function
testSpecialCharactersLiteralSearch
* Test literal search with various special characters
test/test-literal-search.js:245
↓ 1 callers
Function
testSpecificAllowedDirectory
* Test with specific directory in allowedDirectories
test/test-allowed-directories.js:139
↓ 1 callers
Function
testSpecificAllowedDirectoryWithSlash
* Test with specific directory with slash at the end in allowedDirectories
test/test-allowed-directories.js:275
↓ 1 callers
Function
testSuccessfulSaveResetsUndoBaseline
()
test/test-markdown-preview.js:310
↓ 1 callers
Function
testTailBehavior
* Test 3: Negative offset (tail behavior)
test/test-process-pagination.js:89
↓ 1 callers
Function
testTelemetryHelpers
()
test/test-telemetry-handling.js:10
↓ 1 callers
Function
testTextHandler
* Test 5: Text handler read/write
test/test-file-handlers.js:198
↓ 1 callers
Function
testTildeExpansion
* Test simple tilde expansion
test/test-home-directory.js:88
↓ 1 callers
Function
testTildeInAllowedDirectories
* Test tilde in allowedDirectories config
test/test-home-directory.js:145
↓ 1 callers
Function
testTildeWithSubdirectory
* Test tilde with subdirectory expansion
test/test-home-directory.js:117
↓ 1 callers
Function
testTimeout
* Test timeout functionality
test/test-search-code.js:365
↓ 1 callers
Function
testTrackUiEventCall
()
test/test-ui-event-tracking.js:17
↓ 1 callers
Function
testTrackUiEventPayloadCollisionProtection
()
test/test-ui-event-tracking.js:43
↓ 1 callers
Function
testUnsupportedRawContentPreview
()
test/test-markdown-preview.js:525
↓ 1 callers
Function
testUpdatingBlockedCommands
* Test updating blockedCommands list
test/test-blocked-commands.js:205
↓ 1 callers
Function
testVeryShortTimeout
* Test search with very short timeout
test/test-search-code-edge-cases.js:282
↓ 1 callers
Function
testWidgetStateUsesPerFrameKeys
()
test/test-widget-state-runtime.js:30
↓ 1 callers
Function
testWikiRewriteAndRendering
()
test/test-markdown-preview.js:130
↓ 1 callers
Function
testWriteModes
* Test 8: Write mode (rewrite vs append)
test/test-file-handlers.js:263
↓ 1 callers
Function
testZeroMaxResults
* Test zero max results
test/test-search-code-edge-cases.js:325
↓ 1 callers
Function
textOf
(result)
test/integration/read-file-unknown-params.js:35
↓ 1 callers
Function
toDirectoryFileUrl
(directoryPath: string)
src/ui/file-preview/src/markdown/linking.ts:160
↓ 1 callers
Function
toPosixRelativePath
(fromDirectory: string, targetPath: string)
src/ui/file-preview/src/path-utils.ts:56
↓ 1 callers
Function
tokenizeToolDefinition
(enc, tool)
scripts/count-tokens.js:87
↓ 1 callers
Function
trackInstallation
* Send installation tracking to telemetry proxy
track-installation.js:271
↓ 1 callers
Method
trackSuccess
* Track a successful tool call
src/utils/usageTracker.ts:154
↓ 1 callers
Function
trackToolCall
(toolName: string, args?: unknown)
src/utils/trackTools.ts:14
↓ 1 callers
Method
trimHistoryFile
* Trim history file to prevent it from growing indefinitely
src/utils/toolHistory.ts:159
↓ 1 callers
Function
tryCommand
* Execute a command and return true if it executed successfully, false if blocked
test/test-blocked-commands.js:74
↓ 1 callers
Function
unescapeHtmlEntitiesInProse
* Replace `<` / `>` / `&` HTML entities with their literal * characters in positions where they cannot be HTML or markdown syntax. * * Ti
src/ui/file-preview/src/markdown/editor.ts:566
↓ 1 callers
Function
unescapeSafeChars
* Unescape characters that tiptap-markdown's serializer over-escapes. * We only undo escapes for characters that are NEVER syntactically active * in
src/ui/file-preview/src/markdown/editor.ts:481
↓ 1 callers
Function
uninstall
()
uninstall-claude-server.js:658
↓ 1 callers
Method
unsubscribe
()
src/remote-device/remote-channel.ts:559
↓ 1 callers
Function
updateContextMenu
()
src/ui/file-preview/src/markdown/editor.ts:1108
↓ 1 callers
Function
updateCurrentClient
* Unified way to update client information
src/server.ts:175
↓ 1 callers
Method
updateDevice
(deviceId: string, updates: any)
src/remote-device/remote-channel.ts:110
↓ 1 callers
Method
updateHeartbeat
(deviceId: string)
src/remote-device/remote-channel.ts:403
↓ 1 callers
Function
updateVersionFiles
* Update version in package.json, server.json, and version.ts
scripts/publish-release.cjs:135
↓ 1 callers
Function
validateParentDirectories
* Recursively validates parent directories until it finds a valid one * This function handles the case where we need to create nested directories *
src/tools/filesystem.ts:145
↓ 1 callers
Function
validateServerJson
* Validate server.json using mcp-publisher
scripts/publish-release.cjs:378
↓ 1 callers
Function
validationOperation
()
src/tools/filesystem.ts:222
↓ 1 callers
Function
verifyRipgrep
()
src/npm-scripts/verify-ripgrep.ts:10
↓ 1 callers
Function
viewLogs
()
scripts/view-fuzzy-logs.js:32
↓ 1 callers
Function
waitForOutput
()
src/tools/improved-process-tools.ts:270
↓ 1 callers
Function
waitForResponse
()
src/tools/improved-process-tools.ts:486
↓ 1 callers
Method
withTimeout
* Run an async op but reject if it doesn't settle within `ms`, so a hung await * can't leave isRecreatingChannel stuck true and disable the watch
src/remote-device/remote-channel.ts:298
↓ 1 callers
Method
worksheetToArray
( workbook: ExcelJS.Workbook, sheetRef?: string | number, range?: string, offs
src/utils/files/excel.ts:313
Function
analyzeLineEndings
(content: string)
src/utils/lineEndingHandler.ts:47
Function
apply
()
src/ui/config-editor/src/app.ts:399
Function
attachHandlers
(payload: RenderPayload)
src/ui/file-preview/src/markdown/controller.ts:1034
Method
bufferedMessageCount
* Get the current count of buffered messages
src/custom-stdio.ts:122
Function
buildBody
(payload: RenderPayload)
src/ui/file-preview/src/markdown/controller.ts:437
Function
callToolIfReady
(name: string, args: Record<string, unknown>)
src/ui/file-preview/src/app.ts:55
Method
canHandle
(_path: string)
src/utils/files/text.ts:47
Method
canHandle
(path: string)
src/utils/files/excel.ts:35
Method
canHandle
* Check if this handler can handle the given file
src/utils/files/pdf.ts:20
Method
canHandle
(filePath: string)
src/utils/files/binary.ts:23
Method
canHandle
(path: string)
src/utils/files/image.ts:33
Method
canHandle
(path: string)
src/utils/files/docx.ts:508
Function
captureBase
(captureURL: string, event: string, properties?: any)
src/utils/capture.ts:82
Method
cleanup
* Cleanup method to restore original console methods if needed
src/custom-stdio.ts:397
Function
clear
()
src/ui/file-preview/src/markdown/controller.ts:345
Function
clearCache
* Clear cached prompts data (for development/testing)
src/tools/prompts.ts:43
Function
clearRipgrepCache
()
src/utils/ripgrep-resolver.ts:88
Function
close
()
test/integration/edit-block-performance.js:785
Method
closeWithTimeout
(operation: () => Promise<void>, name: string, timeoutMs: number = 3000)
src/remote-device/desktop-commander-integration.ts:168
Method
constructor
(topic, client)
test/test-remote-channel-reconnect.js:40
Method
constructor
()
src/config-manager.ts:56
Method
constructor
()
src/custom-stdio.ts:36
Method
constructor
()
src/utils/fuzzySearchLogger.ts:28
Method
constructor
()
src/utils/toolHistory.ts:45
Method
constructor
()
src/utils/feature-flags.ts:25
Method
constructor
(options: MCPDeviceOptions = {})
src/remote-device/device.ts:25
Method
constructor
(baseServerUrl: string)
src/remote-device/device-authenticator.ts:36
Method
createDevice
(deviceData: DeviceData)
src/remote-device/remote-channel.ts:127
Function
destroy
()
test/test-markdown-editor-edit-diff.js:115
Method
editRange
* Edit a specific range (bulk rewrite) * PRIMARY METHOD for structured file editing (Excel, etc.) * Simpler and more powerful than location-
src/utils/files/base.ts:49
Method
editRange
(path: string, range: string, content: any, options?: Record<string, any>)
src/utils/files/excel.ts:160
Method
editRange
* Edit PDF by range/operations
src/utils/files/pdf.ts:98
Method
editRange
* Edit DOCX via find/replace on pretty-printed XML. * * Works on the same representation that read() returns when using offset/length,
src/utils/files/docx.ts:618
Function
getABTestAssignments
()
src/utils/ab-test.ts:126
Function
getABTestVariant
(experimentName: string)
src/utils/ab-test.ts:102
Method
getActiveSessionCount
* Get total number of active sessions (excluding completed ones)
src/search-manager.ts:676
← previous
next →
1,001–1,100 of 1,250, ranked by callers