Skip to main content
Glama
push-based

Angular Toolkit MCP

by push-based
execute-process.mock.mjs1.13 kB
const interval = parseInt(process.argv[2] || 100); let runs = parseInt(process.argv[3] || 4); const throwError = process.argv[4] === '1'; /** * Custom runner implementation that simulates asynchronous situations. * It logs progress to the console with a configurable interval and defaults to 100ms. * The number of runs is also configurable and defaults to 4. * We can decide if the process should error or complete. By default, it completes. * * @arg interval: number - delay between updates in ms; defaults to 100 * @arg runs: number - number of updates; defaults to 4 * @arg throwError: '1' | '0' - if the process completes or throws; defaults to '0' **/ console.info( `process:start with interval: ${interval}, runs: ${runs}, throwError: ${throwError}`, ); await new Promise((resolve) => { const id = setInterval(() => { if (runs === 0) { clearInterval(id); if (throwError) { throw new Error('dummy-error'); } else { resolve('result'); } } else { runs--; console.info('process:update'); } }, interval); }); console.info('process:complete');

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/push-based/angular-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server