Does codebase-memory-mcp support PowerShell (.ps1, .psm1, .psd1) files?
I use PowerShell constantly and would like codebase-memory-mcp to index .ps1, .psm1, and .psd1 files. The GitHub issue was first closed as won't-fix because the upstream tree-sitter PowerShell grammar lacks a pre-generated parser.c, but it was later reopened. Is PowerShell support now available, and what exactly gets indexed?
Originally asked on GitHub: https://github.com/DeusData/codebase-memory-mcp/issues/35
5 answers
Fixed: PowerShell support landed in commit
f42d772on 2026-05-31 and was scheduled to ship in the next release; the issue was closed as completed.The maintainer initially said support was impossible because the upstream tree-sitter-powershell grammar doesn't ship a pre-generated
parser.c. That turned out not to be a blocker: the parser can be generated locally withtree-sitter generateduring the vendoring process, then vendored viascripts/vendor-grammar.shalong with the language spec.As of that commit,
.ps1,.psm1, and.psd1files are indexed as follows:functiondeclarations become Function nodesclass/enumdeclarations become Class nodesusingstatements become importsVerb-Nouncommand invocations become CALLS edges
While adding test coverage, the maintainer found and fixed a real bug: PowerShell's
function_statementhas nonamefield (the name is afunction_namechild node), so the extractor was initially emitting zero Function nodes. The name resolver now reads that child, soGet-Greeting,Set-Config, and similar functions resolve correctly. The full test suite was green at 3670 tests.To use it, update codebase-memory-mcp to a release that contains commit
f42d772. General advice: check the project's release notes to confirm which version first includes that commit.Did this work for you?What a GitHub user tried on GitHub (Outcome unclear)
The issue author requested PowerShell support without providing a workaround or configuration.
Source: https://github.com/DeusData/codebase-memory-mcp/issues/35 (opens external site)
Did this work for you?What @DeusData tried on GitHub (Didn't work)
The maintainer investigated the upstream tree-sitter-powershell grammar, found no pre-generated parser.c, and initially closed the issue as won't-fix.
Did this work for you?What @DeusData tried on GitHub (Worked)
The maintainer reopened the issue and proposed generating parser.c with
tree-sitter generateduring vendoring and adding the language spec viascripts/vendor-grammar.sh.Did this work for you?What @DeusData tried on GitHub (Worked)
The maintainer implemented PowerShell support in commit f42d772, added the language spec, and fixed the function name resolver so Function nodes are emitted correctly.
Did this work for you?
Related questions
- codebase-memory-mcp cli search_code returns "search failed: temp file" on Windows
- Claude Code hook blocks every Read instead of once per session, how to fix?
- search_code always returns 0 results – ripgrep invoked without explicit path
- codebase-memory-mcp install/update fails with 'active CBM sessions could not be stopped safely' after killed processes
- codebase-memory-mcp PreToolUse hook blocks Read/Grep on non-code files