Skip to main content
Glama
theburgerllc

AI Development Pipeline MCP

by theburgerllc

run_project_tests

Execute project test commands (e.g., npm test, yarn test) within the AI Development Pipeline MCP to validate code functionality and ensure integration readiness.

Instructions

Run project tests (npm test, yarn test, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'run_project_tests' tool. It executes 'npm test' in the current working directory using child_process.exec and returns the stdout or formatted error message.
    async () => { return new Promise((resolve) => { exec('npm test', { cwd: process.cwd() }, (error, stdout, stderr) => { if (error) { resolve({ content: [{ type: 'text', text: `Test error: ${stderr || error.message}` }] }); } else { resolve({ content: [{ type: 'text', text: stdout }] }); } }); }); } );
  • Registration of the 'run_project_tests' MCP tool using McpServer.tool(), including description, empty input schema, and inline handler.
    server.tool( 'run_project_tests', 'Run project tests (npm test, yarn test, etc.)', {}, async () => { return new Promise((resolve) => { exec('npm test', { cwd: process.cwd() }, (error, stdout, stderr) => { if (error) { resolve({ content: [{ type: 'text', text: `Test error: ${stderr || error.message}` }] }); } else { resolve({ content: [{ type: 'text', text: stdout }] }); } }); }); } );

Other Tools

Related Tools

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/theburgerllc/ai-development-pipeline-mcp'

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