Every MCP tool call runs as you, scoped to the team you selected at sign-in. Recording a disposition or editing the architecture writes to your live Keldyn workspace — review the agent’s proposed dispositions (especially justifications) before it saves them.
What you’ll use
Before you start
1
Connect the MCP server
Follow Keldyn MCP server to connect Claude Code, Cursor, or another MCP client, and sign in to the team that owns the use case.
2
Have an architecture saved
Risk resolution needs a Threagile model to analyze. If the use case doesn’t have one yet, run through Generate an architecture from your codebase first.
3
Open your repository
Run the agent from the repository behind the use case so it can search for real implementation evidence (auth middleware, encryption config, rate limiting, etc.) before dispositioning anything.
The three outcomes for a risk
Every Threagile risk should land in exactly one of these buckets before you’re done:1. Pull the open risks
Runanalyze-use-case-architecture scoped to security so RCM compliance findings don’t crowd out the Threagile risks:
The result’s
summary.truncated and summary.remainingIssues tell you if more risks remain; call the tool again with offset set to the previous offset plus the number of risks returned to get the next page.
2. Investigate before you disposition
For each risk, have the agent check the codebase for concrete evidence before deciding fixed / accepted / out of scope — don’t let it guess.3. Disposition each risk
Fix it (→ mitigated)
If the risk is genuinely open, use the risk’s proposedEdit to make a real change — either in application code, or as an architecture-model edit (e.g. adding an authentication method, an encrypted communication link, or a trust boundary) — then save the model if it changed and re-run the analysis to confirm the risk cleared.
Accept it (→ accepted)
Mark it out of scope (→ false-positive)
update-risk-tracking accepts:
4. Verify nothing is left unmarked
Re-runanalyze-use-case-architecture with source=security until it reports zero remaining risks, or until every risk returned already carries a non-unchecked status (Threagile reflects tracked risks in the status field of each returned risk, e.g. Accepted / Mitigated).
A risk that’s fully fixed in the architecture model (e.g. you added the missing authentication) simply stops appearing in the analysis — Threagile no longer finds it. A risk that’s
accepted or false-positive still appears (the underlying condition is still true), but its status reflects the disposition, and the web app’s CWE views hide it from the “open issues” list once it’s tracked.Putting it together
A single prompt can drive the whole loop end to end; the agent will pause for your approval before writing anything back to Keldyn:Next steps
Generate an architecture from your codebase
Infer and save the Threagile model this workflow analyzes.
From controls to code
Run the equivalent close-the-gap loop for RCM compliance controls.
Keldyn MCP server
Connect your AI tool and see the full catalog of tools and built-in prompts.
Working with a use case
See tracked risks and mitigation coverage in the Architecture Workspace.