UNPKG

mcp-extended-tools

Version:
16 lines (12 loc) 501 B
import { executor } from './index.js'; // Test long-running command console.log('Starting npm install...'); const result = executor.execute('npm install express'); console.log('Command started with ID:', result.processId); console.log('We can continue immediately while npm installs...'); // List running processes console.log('Active processes:', executor.list()); // Wait a bit then check again setTimeout(() => { console.log('After 5 seconds, active processes:', executor.list()); }, 5000);