What You Can Do
Connect Cursor, Claude Code, Codex, or another MCP client to MindFort and work with your organization’s security program from your agent. The MindFort MCP server exposes an explicit, organization-scoped tool catalog for:- Browsing, creating, updating, and deleting authorized targets
- Managing write-only test credentials for web applications and APIs
- Reviewing secure-anchor coverage and managing user-defined anchors
- Starting, monitoring, and canceling assessments
- Browsing, triaging, commenting on, and retesting findings
- Reading security metrics, distributions, aging, remediation, and health scores
- Generating, polling, and downloading reports
MCP Use Cases
MCP vs. Platform Patching
Use Patching when you want MindFort to generate a pull request directly from the platform. Use MCP when you want your local AI agent to combine MindFort evidence with your repository checkout, build system, and engineering conventions.Install
Cursor
.cursor/mcp.json:
Claude Code
/mcp inside Claude Code to sign in.
Or add the server to .mcp.json:
Codex
~/.codex/config.toml:
Other MCP Clients
Use the Streamable HTTP endpoint:POST /mcp. The legacy HTTP+SSE transport and the old GET /mcp stream and DELETE /mcp session methods are not supported.
Sign In and Authorization
MindFort MCP uses browser-based OAuth with your existing MindFort account. You do not need an API key.- Add the MindFort MCP server.
- Complete the browser sign-in when your client prompts you.
- Select the intended MindFort organization.
- Ask the agent to call
get_current_contextand confirm the organization, role, and enabled capabilities.
Every active organization member receives the baseline registered MCP catalog. Feature-gated tools and credential variants appear only when their organization has the corresponding feature enabled. MindFort does not expose billing administration, API-key administration, organization membership, or role administration over MCP.
Start with Context
For reliable agent workflows, use this sequence:- Call
get_current_contextto confirm the selected organization and available capabilities. - Call
list_targets, thenget_targetbefore target-specific work. - Reuse target, credential, assessment, finding, anchor, and report IDs returned by MindFort.
- Review tool warnings before starting active testing or performing destructive actions.
- Poll asynchronous operations with their corresponding read tool.
mindfort://guides/start-here. MCP clients that support resources can discover and read it for the compact operating sequence. For detailed semantics, use this documentation and the agent-readable documentation index.
Capabilities and Feature Gating
The tool catalog is explicit and may differ by organization.Complete tool catalog
The baseline and feature-gated catalog contains the following tools. Callget_current_context first because feature-gated tools may be absent for the selected organization.
Feature-gated capabilities include:
network-targets: network target creation and assessment inputssms-credentials: SMS credential variants, provisioning metadata, and code checksfinding-severity-overrides: setting severity overrides; clearing an existing override remains available
Targets and Credentials
Web application and API targets require an HTTP(S)web_domain. Network targets require an ip_address and are available only when enabled for the organization. Targets created through REST or MCP start unverified; complete ownership or network verification in the MindFort dashboard before active testing.
Credential reads return metadata only. Passwords, API-key values, TOTP seeds, one-time codes, and pending inbox IDs are never returned.
For API targets, api_key credentials require nonblank target-level api_auth_instructions that explain:
- The validation route and HTTP method
- The required request shape
- Where the key is placed, such as a bearer token, header, query parameter, or JSON field
- The expected successful response
Assessments and Stage Progress
Starting an assessment begins active security testing and may consume plan capacity. Use only a target the user intends to test.get_assessment returns the canonical stage_progress roster. It merges the current expected plan with every stage recorded on that assessment:
NOT_STARTEDmeans no state has been recorded.RUNNINGorACTIVEmeans work is in progress.- Other values are terminal stage outcomes.
- Active testing stages may include customer-safe executor status, attempt, and timing fields.
created_at, updated_at, started_at, and completed_at describe the full run. Failed runs may include a bounded failure_reason. Cancellation accepts an optional cancel_reason for the audit trail.
Findings and Retests
Thelist_findings tool accepts the same filters as GET /v1/findings.
Use
total for the full matching count rather than the first page length. To match the dashboard Open tab, use status=ACTIVE and exclude_secured=true.
Retests are asynchronous and may be started for ACTIVE, RESOLVED, or ARCHIVED findings. Poll get_finding:
QUEUEDorRUNNING: execution is still active.FAILED:retest_failure_reasonexplains why execution could not complete.COMPLETED: validation finished and the result was applied. A fixed finding becomesRESOLVED; a still-vulnerable finding becomesACTIVE.
Pagination
MCP list tools use opaque cursors rather than REST offsets. When a result includesnext_cursor, pass it back unchanged with the same filters. Cursors are bound to the operation and filter set, so changing filters requires starting a new pagination sequence.
tools/list returns the complete authorized catalog and is not paginated.
Errors and Sensitive Actions
Tool failures include a stable error code, safe message, retry guidance when applicable, and a request ID for support correlation. Validation errors may also include field-level details. Common actionable codes include:target_not_verifiedapi_auth_instructions_requiredassessment_already_runningassessment_credits_insufficientassessment_queue_loadingretest_already_running
Troubleshooting
Agent can't connect
Agent can't connect
Confirm the URL is exactly
https://api.mindfort.app/mcp, your network allows HTTPS, and your client supports Streamable HTTP. Restart the client and try again.Sign-in doesn't complete
Sign-in doesn't complete
Clear the MCP connection and add it again. In Claude Code, run
/mcp, select MindFort, and re-authenticate. If the issue continues, contact support@mindfort.ai.Expected tools are missing
Expected tools are missing
Call
get_current_context to confirm the selected organization and its public feature flags. Then reconnect or start a new chat so the client refreshes tool discovery.Finding disappears after resolving
Finding disappears after resolving
This is expected when
list_findings uses the default status=ACTIVE. Pass status=RESOLVED or status=ARCHIVED to browse those lifecycle states.API or MCP count differs from the dashboard
API or MCP count differs from the dashboard
The dashboard Open tab hides informational secured probes by default. Pass
exclude_secured=true and status=ACTIVE to match it. Use assessment_id when comparing one assessment.A cursor is rejected
A cursor is rejected
Pass
next_cursor back unchanged with the same tool and filters. Start over without a cursor after changing filters.