tainted-mcp

v0.1.3
tainted-mcp Checked 15 hours ago Published 2 months ago

Tainted MCP server — analyze/prove/fix as tools for a coding agent.

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

tainted_analyze

Statically analyze a repository for vulnerabilities (read-only). `exclude` is a comma-separated list of demo/fixture/specimen paths to leave unscanned — folders you know hold deliberately-vulnerable sample code, so Tainted does not report specimens as if the running app were vulnerable. Choose them yourself from the repo layout; a bare name (e.g. `fixtures`) excludes that folder anywhere, and a glob (e.g. `tests/*`, `**/demo.py`) is matched against each path.

ParameterTypeDescription
repo_path *string
excludestring
onlystring
skipstring

tainted_prove_start

Start a live exploit run against a RUNNING app you own. Pass the URL explicitly; it must be a human-named, verified-or-local target. `login_a`/`login_b` are two accounts as 'email:password' — the cross-account attacks need them. Do NOT invent credentials or read them out of the code: ask the developer for permission and for the logins first, and pass back exactly what they give you. Called without them, this returns a prompt to do that rather than an error. Returns a job_id to poll.

ParameterTypeDescription
repo_path *string
url *string
anon_keystring
login_astring
login_bstring
seedstring

tainted_prove_status

Poll a prove job's status by job_id.

ParameterTypeDescription
job_id *string

tainted_prove_result

Fetch the report of a finished prove job.

ParameterTypeDescription
job_id *string

tainted_fix

Generate the remediation for a candidate (patch-only; the client applies the edits). Name it with `finding_id` (a candidate's own `id`, straight out of tainted_analyze); `index` is a row number in that same report and goes stale the moment the code does. Tool-plane candidates are architecturally underdetermined: call tainted_fix_interview first and pass the answers back here as {question_key: choice}.

ParameterTypeDescription
repo_path *string
answers
finding_idstring
indexinteger

tainted_fix_interview

The decision-shaped questions a tool-plane fix needs answered before it can be written. Their leaves are the four remediations: scope split, mediation, sink confirmation, provenance tracking.

ParameterTypeDescription
repo_path *string
finding_idstring
indexinteger

tainted_tutorial

How to use Tainted's tools correctly: call order, the index contract, the async prove job, the ownership boundary, the fix interview, and how to report a result without overclaiming. Call with no topic to list topics; pass a topic to read it. Read this before the first tainted_prove_start or tainted_fix of a session.

ParameterTypeDescription
topicstring