MCPcopy Create free account

hub / github.com/wonderwhy-er/DesktopCommanderMCP / functions

Functions1,250 in github.com/wonderwhy-er/DesktopCommanderMCP

↓ 1 callersFunctiontestRangeWithSheetPrefix
* 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 callersFunctiontestReReadOutput
* Test 7: Re-reading output with absolute offset
test/test-process-pagination.js:215
↓ 1 callersFunctiontestReadCompletedProcessOutput
* 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 callersFunctiontestReadFilePreviewMetadata
* Test 9: read_file handler returns preview structured content for markdown/text
test/test-file-handlers.js:289
↓ 1 callersFunctiontestReadOptionsInterface
* Test 3: ReadOptions interface
test/test-file-handlers.js:151
↓ 1 callersFunctiontestRefreshDoesNotMisclassifyMarkdownContentAsDeletion
()
test/test-markdown-preview.js:481
↓ 1 callersFunctiontestRegexFailureLiteralSuccess
* 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 callersFunctiontestRegexVsLiteralDifference
* Test that regex search works differently than literal search
test/test-literal-search.js:213
↓ 1 callersFunctiontestRootInAllowedDirectories
* 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 callersFunctiontestRuntimeInfo
* Test 5: Runtime info for completed processes
test/test-process-pagination.js:146
↓ 1 callersFunctiontestSearchCode
()
test/test-search-code.js:490
↓ 1 callersFunctiontestSearchCodeEdgeCases
()
test/test-search-code-edge-cases.js:476
↓ 1 callersFunctiontestSearchTruncation
()
test/test_search_truncation.js:46
↓ 1 callersFunctiontestSetConfigValueCoercion
()
test/test-telemetry-handling.js:39
↓ 1 callersFunctiontestShellSwitching
* Test switching between different shells
test/test-default-shell.js:283
↓ 1 callersFunctiontestSlugGeneration
()
test/test-markdown-preview.js:15
↓ 1 callersFunctiontestSpecialCharacters
* Test special characters and Unicode
test/test-search-code-edge-cases.js:193
↓ 1 callersFunctiontestSpecialCharactersLiteralSearch
* Test literal search with various special characters
test/test-literal-search.js:245
↓ 1 callersFunctiontestSpecificAllowedDirectory
* Test with specific directory in allowedDirectories
test/test-allowed-directories.js:139
↓ 1 callersFunctiontestSpecificAllowedDirectoryWithSlash
* Test with specific directory with slash at the end in allowedDirectories
test/test-allowed-directories.js:275
↓ 1 callersFunctiontestSuccessfulSaveResetsUndoBaseline
()
test/test-markdown-preview.js:310
↓ 1 callersFunctiontestTailBehavior
* Test 3: Negative offset (tail behavior)
test/test-process-pagination.js:89
↓ 1 callersFunctiontestTelemetryHelpers
()
test/test-telemetry-handling.js:10
↓ 1 callersFunctiontestTextHandler
* Test 5: Text handler read/write
test/test-file-handlers.js:198
↓ 1 callersFunctiontestTildeExpansion
* Test simple tilde expansion
test/test-home-directory.js:88
↓ 1 callersFunctiontestTildeInAllowedDirectories
* Test tilde in allowedDirectories config
test/test-home-directory.js:145
↓ 1 callersFunctiontestTildeWithSubdirectory
* Test tilde with subdirectory expansion
test/test-home-directory.js:117
↓ 1 callersFunctiontestTimeout
* Test timeout functionality
test/test-search-code.js:365
↓ 1 callersFunctiontestTrackUiEventCall
()
test/test-ui-event-tracking.js:17
↓ 1 callersFunctiontestTrackUiEventPayloadCollisionProtection
()
test/test-ui-event-tracking.js:43
↓ 1 callersFunctiontestUnsupportedRawContentPreview
()
test/test-markdown-preview.js:525
↓ 1 callersFunctiontestUpdatingBlockedCommands
* Test updating blockedCommands list
test/test-blocked-commands.js:205
↓ 1 callersFunctiontestVeryShortTimeout
* Test search with very short timeout
test/test-search-code-edge-cases.js:282
↓ 1 callersFunctiontestWidgetStateUsesPerFrameKeys
()
test/test-widget-state-runtime.js:30
↓ 1 callersFunctiontestWikiRewriteAndRendering
()
test/test-markdown-preview.js:130
↓ 1 callersFunctiontestWriteModes
* Test 8: Write mode (rewrite vs append)
test/test-file-handlers.js:263
↓ 1 callersFunctiontestZeroMaxResults
* Test zero max results
test/test-search-code-edge-cases.js:325
↓ 1 callersFunctiontextOf
(result)
test/integration/read-file-unknown-params.js:35
↓ 1 callersFunctiontoDirectoryFileUrl
(directoryPath: string)
src/ui/file-preview/src/markdown/linking.ts:160
↓ 1 callersFunctiontoPosixRelativePath
(fromDirectory: string, targetPath: string)
src/ui/file-preview/src/path-utils.ts:56
↓ 1 callersFunctiontokenizeToolDefinition
(enc, tool)
scripts/count-tokens.js:87
↓ 1 callersFunctiontrackInstallation
* Send installation tracking to telemetry proxy
track-installation.js:271
↓ 1 callersMethodtrackSuccess
* Track a successful tool call
src/utils/usageTracker.ts:154
↓ 1 callersFunctiontrackToolCall
(toolName: string, args?: unknown)
src/utils/trackTools.ts:14
↓ 1 callersMethodtrimHistoryFile
* Trim history file to prevent it from growing indefinitely
src/utils/toolHistory.ts:159
↓ 1 callersFunctiontryCommand
* Execute a command and return true if it executed successfully, false if blocked
test/test-blocked-commands.js:74
↓ 1 callersFunctionunescapeHtmlEntitiesInProse
* 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 callersFunctionunescapeSafeChars
* 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 callersFunctionuninstall
()
uninstall-claude-server.js:658
↓ 1 callersMethodunsubscribe
()
src/remote-device/remote-channel.ts:559
↓ 1 callersFunctionupdateContextMenu
()
src/ui/file-preview/src/markdown/editor.ts:1108
↓ 1 callersFunctionupdateCurrentClient
* Unified way to update client information
src/server.ts:175
↓ 1 callersMethodupdateDevice
(deviceId: string, updates: any)
src/remote-device/remote-channel.ts:110
↓ 1 callersMethodupdateHeartbeat
(deviceId: string)
src/remote-device/remote-channel.ts:403
↓ 1 callersFunctionupdateVersionFiles
* Update version in package.json, server.json, and version.ts
scripts/publish-release.cjs:135
↓ 1 callersFunctionvalidateParentDirectories
* 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 callersFunctionvalidateServerJson
* Validate server.json using mcp-publisher
scripts/publish-release.cjs:378
↓ 1 callersFunctionvalidationOperation
()
src/tools/filesystem.ts:222
↓ 1 callersFunctionverifyRipgrep
()
src/npm-scripts/verify-ripgrep.ts:10
↓ 1 callersFunctionviewLogs
()
scripts/view-fuzzy-logs.js:32
↓ 1 callersFunctionwaitForOutput
()
src/tools/improved-process-tools.ts:270
↓ 1 callersFunctionwaitForResponse
()
src/tools/improved-process-tools.ts:486
↓ 1 callersMethodwithTimeout
* 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 callersMethodworksheetToArray
( workbook: ExcelJS.Workbook, sheetRef?: string | number, range?: string, offs
src/utils/files/excel.ts:313
FunctionanalyzeLineEndings
(content: string)
src/utils/lineEndingHandler.ts:47
Functionapply
()
src/ui/config-editor/src/app.ts:399
FunctionattachHandlers
(payload: RenderPayload)
src/ui/file-preview/src/markdown/controller.ts:1034
MethodbufferedMessageCount
* Get the current count of buffered messages
src/custom-stdio.ts:122
FunctionbuildBody
(payload: RenderPayload)
src/ui/file-preview/src/markdown/controller.ts:437
FunctioncallToolIfReady
(name: string, args: Record<string, unknown>)
src/ui/file-preview/src/app.ts:55
MethodcanHandle
(_path: string)
src/utils/files/text.ts:47
MethodcanHandle
(path: string)
src/utils/files/excel.ts:35
MethodcanHandle
* Check if this handler can handle the given file
src/utils/files/pdf.ts:20
MethodcanHandle
(filePath: string)
src/utils/files/binary.ts:23
MethodcanHandle
(path: string)
src/utils/files/image.ts:33
MethodcanHandle
(path: string)
src/utils/files/docx.ts:508
FunctioncaptureBase
(captureURL: string, event: string, properties?: any)
src/utils/capture.ts:82
Methodcleanup
* Cleanup method to restore original console methods if needed
src/custom-stdio.ts:397
Functionclear
()
src/ui/file-preview/src/markdown/controller.ts:345
FunctionclearCache
* Clear cached prompts data (for development/testing)
src/tools/prompts.ts:43
FunctionclearRipgrepCache
()
src/utils/ripgrep-resolver.ts:88
Functionclose
()
test/integration/edit-block-performance.js:785
MethodcloseWithTimeout
(operation: () => Promise<void>, name: string, timeoutMs: number = 3000)
src/remote-device/desktop-commander-integration.ts:168
Methodconstructor
(topic, client)
test/test-remote-channel-reconnect.js:40
Methodconstructor
()
src/config-manager.ts:56
Methodconstructor
()
src/custom-stdio.ts:36
Methodconstructor
()
src/utils/fuzzySearchLogger.ts:28
Methodconstructor
()
src/utils/toolHistory.ts:45
Methodconstructor
()
src/utils/feature-flags.ts:25
Methodconstructor
(options: MCPDeviceOptions = {})
src/remote-device/device.ts:25
Methodconstructor
(baseServerUrl: string)
src/remote-device/device-authenticator.ts:36
MethodcreateDevice
(deviceData: DeviceData)
src/remote-device/remote-channel.ts:127
Functiondestroy
()
test/test-markdown-editor-edit-diff.js:115
MethodeditRange
* 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
MethodeditRange
(path: string, range: string, content: any, options?: Record<string, any>)
src/utils/files/excel.ts:160
MethodeditRange
* Edit PDF by range/operations
src/utils/files/pdf.ts:98
MethodeditRange
* 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
FunctiongetABTestAssignments
()
src/utils/ab-test.ts:126
FunctiongetABTestVariant
(experimentName: string)
src/utils/ab-test.ts:102
MethodgetActiveSessionCount
* Get total number of active sessions (excluding completed ones)
src/search-manager.ts:676
← previousnext →1,001–1,100 of 1,250, ranked by callers