Reload your MCP-enabled client (VS Code / other) Ask the AI to run one of your scripts, e.g. "Run the test tool". That's it—your npm scripts are now callable as tools! Depending on your IDE settings, ...
Add this server to your MCP host configuration. It uses stdio and dynamically exposes each script from the closest package.json (walking up from process.cwd()). The tool names match your script names.