Skip to main content
Glama

Test Runner MCP

by privsim

run_tests

Execute tests using multiple frameworks like Bats, Pytest, or Flutter, capture outputs, and store results in a specified directory. Configure environment variables, working directories, and security options for command execution.

Instructions

Run tests and capture output

Input Schema

NameRequiredDescriptionDefault
commandYesTest command to execute (e.g., "bats tests/*.bats")
envNoEnvironment variables for test execution
frameworkYesTesting framework being used
outputDirNoDirectory to store test results
securityOptionsNoSecurity options for command execution
timeoutNoTest execution timeout in milliseconds (default: 300000)
workingDirYesWorking directory for test execution

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "Test command to execute (e.g., \"bats tests/*.bats\")", "type": "string" }, "env": { "additionalProperties": { "type": "string" }, "description": "Environment variables for test execution", "type": "object" }, "framework": { "description": "Testing framework being used", "enum": [ "bats", "pytest", "flutter", "jest", "go", "rust", "generic" ], "type": "string" }, "outputDir": { "description": "Directory to store test results", "type": "string" }, "securityOptions": { "description": "Security options for command execution", "properties": { "allowPipeToFile": { "description": "Allow pipe to file operations (default: false)", "type": "boolean" }, "allowShellExpansion": { "description": "Allow shell expansion like $() or backticks (default: true)", "type": "boolean" }, "allowSu": { "description": "Allow su commands (default: false)", "type": "boolean" }, "allowSudo": { "description": "Allow sudo commands (default: false)", "type": "boolean" } }, "type": "object" }, "timeout": { "description": "Test execution timeout in milliseconds (default: 300000)", "type": "number" }, "workingDir": { "description": "Working directory for test execution", "type": "string" } }, "required": [ "command", "workingDir", "framework" ], "type": "object" }
Install Server

Other Tools from Test Runner MCP

Related Tools

    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/privsim/mcp-test-runner'

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