This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
This report presents the forensic synthetic code analysis of wonderwhy-er/DesktopCommanderMCP, a TypeScript project with 9,427 GitHub stars. SynthScan v2.0 examined 72,222 lines of code across 272 source files, recording 202 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 3.9 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 202 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup-claude-server.js | 265 | async function enhancedGetTrackingProperties(additionalProps = {}) { | CODE |
| LOW | uninstall-claude-server.js | 548 | async function removeDesktopCommanderConfig() { | CODE |
| LOW | test/test_search_truncation.js | 7 | async function searchAndWaitForCompletion(searchArgs, timeout = 30000) { | CODE |
| LOW | test/test-markdown-preview.js | 130 | async function testWikiRewriteAndRendering() { | CODE |
| LOW | test/test-markdown-preview.js | 166 | async function testFailedSaveResyncsEditBaseline() { | CODE |
| LOW | test/test-markdown-preview.js | 310 | async function testSuccessfulSaveResetsUndoBaseline() { | CODE |
| LOW | test/test-markdown-preview.js | 375 | async function testFullscreenWorkspaceHelpers() { | CODE |
| LOW | test/test-markdown-preview.js | 401 | async function testCopyFormatsAndEditorShell() { | CODE |
| LOW | test/test-markdown-preview.js | 432 | async function testPartialDocumentBecomesNewEditBaseline() { | CODE |
| LOW | test/test-markdown-preview.js | 481 | async function testRefreshDoesNotMisclassifyMarkdownContentAsDeletion() { | CODE |
| LOW | test/test-markdown-preview.js | 525 | async function testUnsupportedRawContentPreview() { | CODE |
| LOW | test/test-literal-search.js | 29 | async function searchAndWaitForCompletion(searchArgs, timeout = 10000) { | CODE |
| LOW | test/test-literal-search.js | 187 | async function testLiteralSearchExactMatches() { | CODE |
| LOW | test/test-literal-search.js | 213 | async function testRegexVsLiteralDifference() { | CODE |
| LOW | test/test-literal-search.js | 245 | async function testSpecialCharactersLiteralSearch() { | CODE |
| LOW | test/test-literal-search.js | 333 | async function testRegexFailureLiteralSuccess() { | CODE |
| LOW | test/test-allowed-directories.js | 110 | async function testEmptyAllowedDirectories() { | CODE |
| LOW | test/test-allowed-directories.js | 139 | async function testSpecificAllowedDirectory() { | CODE |
| LOW | test/test-allowed-directories.js | 176 | async function testRootInAllowedDirectories() { | CODE |
| LOW | test/test-allowed-directories.js | 275 | async function testSpecificAllowedDirectoryWithSlash() { | CODE |
| LOW | test/test-default-shell.js | 334 | async function testConfigurationPersistence() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 53 | async function testPipeTableSurvivesRoundTrip() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 77 | async function testAdjacentHeadingsKeepOriginalSpacing() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 89 | async function testWikilinkSurvivesRoundTrip() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 101 | async function testTrailingNewlineSurvives() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 113 | async function testCombinedBugReportFile() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 126 | async function testYamlFrontmatterSurvives() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 138 | async function testSquareBracketsNotEscaped() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 150 | async function testUnderscoresNotEscaped() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 205 | async function testReadmeStyleFileNotCollapsed() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 264 | async function testTableInsideRealisticDoc() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 321 | async function testEmojiPrefixedSoftBreaksRestored() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 340 | async function testLinkInTableCellSurvivesRoundTrip() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 359 | async function testStarBulletMarkerPreserved() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 377 | async function testRelativePathLinksSurvive() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 401 | async function testLessThanInProseNotEscaped() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 427 | async function testTrailingHardBreakWhitespacePreserved() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 447 | async function testBoldAroundInlineCodePreserved() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 472 | async function testEscapedPipeInTableCellPreserved() { | CODE |
| LOW | test/test-markdown-editor-roundtrip.js | 495 | async function testListItemWithContinuationLine() { | CODE |
| LOW | test/test-edit-block-line-endings.js | 247 | async function testContextAwareReplacement() { | CODE |
| LOW | test/test-edit-block-line-endings.js | 402 | async function runEditBlockLineEndingTests() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 129 | async function testAbortControllerBehavior() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 178 | async function testCurrentPatternBlackHole() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 209 | async function testAbortControllerOnlyBlackHole() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 245 | async function testCurrentPatternSlowResponse() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 281 | async function testNewUserOnboardingPath() { | CODE |
| LOW | test/test-feature-flags-timeout.js | 327 | async function testBrokenAbortControllerSimulation() { | CODE |
| LOW | test/test-search-code.js | 33 | async function searchAndWaitForCompletion(searchArgs, timeout = 10000) { | CODE |
| LOW | test/test-search-code.js | 244 | async function testCaseInsensitiveSearch() { | CODE |
| LOW | test/test-read-completed-process.js | 11 | async function testReadCompletedProcessOutput() { | CODE |
| LOW | test/test-edit-block-occurrences.js | 83 | async function testMoreOccurrencesThanExpected() { | CODE |
| LOW | test/test-edit-block-occurrences.js | 115 | async function testFewerOccurrencesThanExpected() { | CODE |
| LOW | test/test-edit-block-occurrences.js | 144 | async function testExactNumberOfOccurrences() { | CODE |
| LOW | test/test-edit-block-occurrences.js | 186 | async function testContextSpecificReplacements() { | CODE |
| LOW | test/test-edit-block-occurrences.js | 311 | async function runEditBlockOccurrencesTests() { | CODE |
| LOW | test/test-file-preview-directory-runtime.js | 6 | async function testDirectoryBodyRendering() { | CODE |
| LOW | test/test-file-handlers.js | 297 | async function testReadFilePreviewMetadata() { | CODE |
| LOW | test/test-file-handlers.js | 377 | async function testMarkdownExactMatchSave() { | CODE |
| LOW | test/test-search-code-edge-cases.js | 29 | async function searchAndWaitForCompletion(searchArgs, timeout = 10000) { | CODE |
| 86 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/utils/files/docx.ts | 23 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 25 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 63 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 65 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 97 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 99 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 236 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 238 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 436 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 438 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 487 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 489 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 501 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/utils/files/docx.ts | 503 | // ════════════════════════════════════════════════════════════════ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test-listener-bug.js | 97 | // Step 1: Start Node.js REPL | COMMENT |
| LOW⚡ | test-listener-bug.js | 107 | // Step 2: Send first command | COMMENT |
| LOW⚡ | test-listener-bug.js | 117 | // Step 3: First read_process_output (this might break listeners with removeAllListeners) | COMMENT |
| LOW⚡ | test-listener-bug.js | 126 | // Step 4: Send second command WITHOUT waiting (so output stays in buffer) | COMMENT |
| LOW | test-listener-bug.js | 139 | // Step 5: Second read_process_output (THIS WILL FAIL if listeners were removed) | COMMENT |
| LOW | scripts/validate-tools-sync.js | 70 | // Step 1: Send initialize request | COMMENT |
| LOW | scripts/validate-tools-sync.js | 89 | // Step 2: Send tools/list request | COMMENT |
| LOW | src/tools/filesystem.ts | 148 | * and we need to check if any of the parent directories exist | COMMENT |
| LOW⚡ | src/utils/dockerPrompt.ts | 13 | // Step 1: Check if client is Docker MCP Gateway | COMMENT |
| LOW⚡ | src/utils/dockerPrompt.ts | 17 | // Step 2: Check if this is their first or second command (0 or 1 total calls) | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 46 | // Step 1: Request device code | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 49 | // Step 2: Display user instructions and open browser | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 52 | // Step 3: Poll for authorization | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test-listener-bug.js | 97 | // Step 1: Start Node.js REPL | COMMENT |
| LOW⚡ | test-listener-bug.js | 107 | // Step 2: Send first command | COMMENT |
| LOW⚡ | test-listener-bug.js | 117 | // Step 3: First read_process_output (this might break listeners with removeAllListeners) | COMMENT |
| LOW⚡ | test-listener-bug.js | 126 | // Step 4: Send second command WITHOUT waiting (so output stays in buffer) | COMMENT |
| LOW | test-listener-bug.js | 139 | // Step 5: Second read_process_output (THIS WILL FAIL if listeners were removed) | COMMENT |
| LOW | scripts/validate-tools-sync.js | 70 | // Step 1: Send initialize request | COMMENT |
| LOW | scripts/validate-tools-sync.js | 89 | // Step 2: Send tools/list request | COMMENT |
| LOW⚡ | src/utils/dockerPrompt.ts | 13 | // Step 1: Check if client is Docker MCP Gateway | COMMENT |
| LOW⚡ | src/utils/dockerPrompt.ts | 17 | // Step 2: Check if this is their first or second command (0 or 1 total calls) | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 46 | // Step 1: Request device code | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 49 | // Step 2: Display user instructions and open browser | COMMENT |
| LOW⚡ | src/remote-device/device-authenticator.ts | 52 | // Step 3: Poll for authorization | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/enhanced-repl-example.js | 59 | print(greet(f"Guest {i+1}")) | CODE |
| HIGH | test/repl-via-terminal-example.js | 60 | print(greet(f"Guest {i+1}")) | CODE |
| HIGH | test/test-enhanced-repl.js | 103 | print(greet(f"Guest {i+1}"))`; | CODE |
| HIGH | test/test-search-code.js | 133 | print("This is a python function") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/repro/test-read-abort-frees-thread.js | 1 | // Demonstration: runWithAbortableTimeout actually CANCELS the underlying read | COMMENT |
| LOW | src/ui/file-preview/src/markdown/editor.ts | 61 | * restoration converts back to the literal `\|` in the output. */ | COMMENT |
| LOW | src/ui/file-preview/src/markdown/editor.ts | 221 | // restore — same shape, different schema-level reason for needing it. | COMMENT |
| LOW | src/ui/file-preview/src/markdown/editor.ts | 241 | // Tiptap's HTML output path HTML-escapes bare `<` characters in | COMMENT |
| LOW | src/ui/file-preview/src/markdown/editor.ts | 261 | // bullet is emitted as `- `. If the source used `*` (or a mix), we'd | COMMENT |
| LOW | src/ui/file-preview/src/markdown/editor.ts | 501 | // Quick check: if no candidate escapes are even present in this | COMMENT |
| LOW | src/remote-device/remote-channel.ts | 761 | console.debug('[DEBUG] Destroying old channel'); | COMMENT |
| LOW | src/remote-device/remote-channel.ts | 961 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/tools/pdf/extract-images.ts | 97 | // Ignore conversion errors as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 16 | # Check if Node.js is installed | COMMENT |
| LOW | install-docker.sh | 79 | # Check if Docker is available | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/utils/capture.ts | 177 | // Is MCP running in a container - use robust detection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/command-manager.ts | 156 | // Don't forget to add the last command | COMMENT |