Skip to content

feat(mcp): add Windows support for code search via PowerShell#310

Open
noctrex wants to merge 2 commits intoDeusData:mainfrom
noctrex:feat/windows-support
Open

feat(mcp): add Windows support for code search via PowerShell#310
noctrex wants to merge 2 commits intoDeusData:mainfrom
noctrex:feat/windows-support

Conversation

@noctrex
Copy link
Copy Markdown

@noctrex noctrex commented May 1, 2026

Replace grep with PowerShell Select-String on Windows for the search_code and search_graph tools, enabling cross-platform functionality.

  • Use tab-delimited output from Select-String to avoid conflicts with colons in Windows drive-letter paths (e.g. C:\dir\file).
  • Update collect_grep_matches to parse delimiter as tab on Windows and colon on POSIX.
  • Open scoped filelist in binary mode ("wb") and use forward slashes on Windows to prevent xargs from interpreting backslashes as escape sequences.
  • Use cbm_tmpdir() for pattern temp files instead of hardcoded /tmp/.
  • Define getpid as _getpid on Windows for consistent API.

Fixes #196

@DeusData DeusData added enhancement New feature or request windows Windows-specific issues labels May 4, 2026
@arkiaman
Copy link
Copy Markdown

arkiaman commented May 8, 2026

see #326 for additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request windows Windows-specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli search_code returns "search failed: temp file" on Windows 11 in Powershell

3 participants