Server & Tools¶
MCP server entry point and tool implementations.
- class curate_ipsum.tools.CommandResult(exit_code: 'int', stdout: 'str', stderr: 'str', duration_ms: 'int', timed_out: 'bool' = False)[source]¶
Bases:
object
- async curate_ipsum.tools.run_command(command, working_directory, timeout=None)[source]¶
Run a shell command and capture stdout, stderr, exit code, and duration.
- Parameters:
- Return type:
- curate_ipsum.tools.append_run(run)[source]¶
Append a run result to storage.
Primary: JSONL file (runs.jsonl) Secondary: BRS CASStore (if enabled and py-brs installed)
- Parameters:
run (TestRunResult | MutationRunResult)
- Return type:
None
- curate_ipsum.tools.compute_region_metrics(project_id, commit_sha, region_id, history)[source]¶
- Parameters:
project_id (str)
commit_sha (str)
region_id (str)
history (list[TestRunResult | MutationRunResult])
- Return type:
- async curate_ipsum.tools.run_unit_tests(projectId, commitSha, command, workingDirectory, regionId=None, framework='generic')[source]¶
- async curate_ipsum.tools.run_integration_tests(projectId, commitSha, command, workingDirectory, regionId=None, framework='generic')[source]¶
- async curate_ipsum.tools.run_mutation_tests(projectId, commitSha, command, workingDirectory, regionId=None, tool=None, reportPath=None)[source]¶
Run mutation tests and parse results.
If tool is not specified, auto-detects based on project structure and available mutation output.