sparkforensics-mcp

v0.1.0
io.github.shuffle-works/sparkforensics-mcp Checked 13 hours ago Published 2 months ago

MCP server for diagnosing Apache Spark event-log performance issues and comparing runs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

diagnose_run

Diagnose a Spark run: thresholded findings with remediation text, an impact-ranked fix recommendation rollup, and clean-check status.

ParameterTypeDescription
formatstring
impactBandarray
includearray
redactboolean
runIdstring
source
stageIdinteger
typearray

get_run_summary

App/stage/job/sql counts and duration for a run, no findings.

ParameterTypeDescription
redactboolean
runIdstring
source

compare_runs

Compare two runs: categorized findings delta and metric deltas.

ParameterTypeDescription
formatstring
redactboolean
runIdAstring
runIdBstring
sourceA
sourceB

evaluate_budgets

Evaluate a run (optionally against a second run for regression budgets) against pass/fail thresholds.

ParameterTypeDescription
failOnIntroducedstring
maxFailedTaskRatePctnumber
maxRegressionPctnumber
maxRuntimeMsnumber
maxSkewRationumber
maxSpillGbnumber
minEfficiencyPctnumber
regressionMetricstring
runIdstringSame as `source`, referencing an already-resolved run by id.
runIdBstringSame as `sourceB`, referencing an already-resolved run by id.
sourceThe run to evaluate. Also the regression baseline when sourceB/runIdB is given.
sourceBOptional candidate run, compared against source/runId as the regression baseline (maxRegressionPct/failOnIntroduced).

get_finding_evidence

Raw evidence bundle backing one finding, for drill-down after diagnose_run.

ParameterTypeDescription
findingId *string
runId *string
redactboolean