Skip to content

Windows: install.ps1 reports success but leaves MCP server unregistered (MotW + swallowed config errors + malformed taskkill) #697

Closed

Description

@seltzdesign

Version

codebase-memory-mcp 0.8.1

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

ui

What happened, and what did you expect?

After running the documented Windows install, the binary is present at %LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe, but the MCP server is not registered with any agent — ~/.claude.json / ~/.claude/.mcp.json have no entry, and claude mcp list doesn't show it. No error was surfaced; the installer reported success.

Three issues found:

install.ps1 needs Unblock-File. Downloaded via Invoke-WebRequest, the script carries Mark-of-the-Web and PowerShell refuses to execute it until unblocked. The README's Windows section doesn't mention this. Suggest documenting Unblock-File .\install.ps1 (and/or -ExecutionPolicy Bypass), or shipping a signed script.

Config failures are swallowed as non-fatal. install.ps1 runs & $Dest install -y but catches/ignores failures, so it prints "Install complete" even when no agent config was written. This turns a recoverable error into a silent one. Suggest: detect that zero agents were configured and exit non-zero with a visible warning.

install subcommand runs a malformed taskkill on Windows. Every invocation prints:

ERROR: Invalid argument/option - 'eq'.
Type "TASKKILL /?" for usage.

Looks like a taskkill /FI "IMAGENAME eq ..." filter where the quoting breaks and eq is passed as a bare arg. Cosmetic in some runs, but may be what aborts auto-config in others.

Workaround that fixed it: run the binary's installer directly, bypassing install.ps1:

"%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe" install -y

Reproduction

  1. Download codebase-memory-mcp-ui-windows-amd64.zip from releases
  2. Unpack and try to run install.ps1

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Activity

  1. added
    windowsWindows-specific issues
    editor/integrationEditor compatibility and CLI integration
    ux/behaviorDisplay bugs, docs, adoption UX
    on Jun 29, 2026
  2. DeusData commented on Jun 29, 2026

    @DeusData
    Owner

    Thanks for the detailed Windows installer report. I’ve triaged this under Windows, editor integration, and UX. The actionable pieces are clear: document or avoid the Mark-of-the-Web trap, fail visibly when zero agent configs are written, and fix the taskkill /FI quoting so installer cleanup does not emit a misleading error. The direct codebase-memory-mcp.exe install -y workaround is useful while this is open.

  3. added 3 commits that reference this issue on Jun 29, 2026
    074e59e
    32af727
    471bb4d
  4. ShauryaaSharma commented on Jun 29, 2026

    @ShauryaaSharma
    Contributor

    I've put up a fix for all three issues on my PR: #702

    • MotW : README now includes an explicit Unblock-File .\install.ps1 step (plus an -ExecutionPolicy Bypass fallback note) for both the quick-install and manual-install paths.
    • Swallowed config errors : replaced the try/catch in install.ps1 with a $LASTEXITCODE check after install -y; exits 1 with a visible red error if no agents were configured.
    • taskkill quoting : replaced _spawnvp in cbm_exec_no_shell (Windows path) with CreateProcess backed by a proper command-line quoting helper, so IMAGENAME eq codebase-memory-mcp.exe is passed as a single token instead of three bare words.
  5. added a commit that references this issue on Jun 29, 2026
    be0c1c8
  6. added
    priority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.
    on Jun 30, 2026
  7. added 10 commits that reference this issue on Jul 2, 2026
    dea06f9
    2ad6b24
    aa9a328
    8a72685
    7d9b292
    ec80e7d
    577c769
    a563c4a
    d86085f
    55db905
  8. added a commit that references this issue on Jul 4, 2026
    cf32e6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UXwindowsWindows-specific issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions