Contribute
Use Windows x64, 64-bit Python 3.10 or newer, and Node.js 22.12 or newer. See CONTRIBUTING.md for the full contributor instructions.
Python setup and checks
Section titled “Python setup and checks”git clone https://github.com/Boti-Ormandi/memscope-mcp.gitSet-Location memscope-mcppython -m pip install -e ".[dev]"ruff checkruff format --checkpytest tests/ -vUse a separate runtime data root:
$env:MEMSCOPE_HOME = Join-Path $env:TEMP ("memscope-mcp-dev-" + [guid]::NewGuid())New-Item -ItemType Directory -Force $env:MEMSCOPE_HOME | Out-Nullmemscope-mcp pathsLogs, saved scripts, activated plugin files, and recordings persist under that root. Activated plugin files execute as Python when a server starts with the same root.
Site setup and checks
Section titled “Site setup and checks”Set-Location sitenpm cinpx playwright install chromiumnpm run checkThe site check builds and installs the current Python wheel, compares its exact 11-tool contract with site/tools.json, checks generated Markdown, typechecks/builds Astro, and runs static plus browser/accessibility tests.
After changing the MCP tool interface, regenerate the installed-wheel snapshot and tool reference:
npm run tools:snapshot:updatenpm run checkDocumentation files
Section titled “Documentation files”- Write end-user procedures and reference content in
site/src/content/docs/**. - Update
site/tools.jsonthroughnpm run tools:snapshot:update; it generates the MCP tool page. - Keep
README.mdas a short introduction for repository visitors. - Keep root
docs/**for implementation notes and the documentation URL map. - Keep vulnerability-reporting instructions in
SECURITY.md. - Record version-specific history in GitHub Releases.
When a documentation URL changes, update the URL map, navigation, site checks, and route/link tests together.
Source areas
Section titled “Source areas”memscope_mcp/server.py— MCP registration and stdio entry.memscope_mcp/scanning/— strict scan contracts and execution.memscope_mcp/extensions/— core Lua composition.memscope_mcp/_contrib/plugins/— bundled plugin sources.tests/— Python behavioral coverage.site/— documentation source, build, and tests.