By the end of this quickstart you’ll have the Vanta Claude Code plugin installed and you’ll have used it to surface failing compliance tests, inspect the resources causing them to fail, and generate a pull request that fixes one.Documentation Index
Fetch the complete documentation index at: https://vanta.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Before you begin
Make sure you have:- A Vanta account with admin access.
- Claude Code installed.
- A repository that Claude Code can read — the plugin uses your local codebase to generate targeted fixes.
- At least one Vanta integration connected (AWS, GCP, GitHub, etc.) — most test endpoints return data only when integrations are active.
/vanta:fix-test and /vanta:list-tests slash commands on top of the hosted MCP server. If you want to connect a different client (Cursor, Perplexity, or Claude Code without the plugin), see Vanta MCP server instead. If you want to automate Vanta with code, see Manage Vanta via API.Install the Vanta plugin
/reload-plugins completes, run /mcp, select Vanta, choose your region (US, EU, or AUS), and complete the OAuth flow in your browser. Click Allow when Vanta asks for authorization.Don't see 'Vanta' in the /mcp list?
Don't see 'Vanta' in the /mcp list?
/reload-plugins again and wait a few seconds before running /mcp. If Vanta still doesn’t appear, confirm that the install command exited without errors — re-run it if needed.The OAuth page didn't open?
The OAuth page didn't open?
/mcp, select Vanta, and choose Reconnect to start a fresh flow.List failing tests for your repository
/vanta:list-tests slash command, which does the same thing):tests MCP tool with statusFilter: NEEDS_ATTENTION, reads your repository to match tests to the tech stack it finds, and returns a prioritized list. You should see output similar to:Claude returned 0 failing tests?
Claude returned 0 failing tests?
/mcp → Vanta → Reconnect.Claude listed tests unrelated to my codebase?
Claude listed tests unrelated to my codebase?
Inspect the failing resources for one test
list_test_entities with the testId from the previous step and returns the individual failing resources:I see resources I don't recognize?
I see resources I don't recognize?
Generate a fix and open a pull request
/vanta:fix-test slash command, or type the following prompt:- Read your Terraform (or CloudFormation / CDK) files to understand your existing module structure.
- Call
list_test_entitiesagain to confirm which resource IDs to target. - Generate minimal, targeted changes — for example, adding
server_side_encryption_configurationblocks to the affectedaws_s3_bucketresources. - Open a draft pull request against your current branch with a description that links back to the Vanta test ID.
Claude said it couldn't find Terraform files?
Claude said it couldn't find Terraform files?
.tf files in the repository root and common subdirectories (infra/, terraform/, ops/). If your IaC lives elsewhere, tell Claude: “The Terraform files are in platform/infra/aws/.” Claude will re-scope its search.The PR was opened against the wrong branch?
The PR was opened against the wrong branch?
/vanta:fix-test, then re-run the command.I use CloudFormation or CDK, not Terraform?
I use CloudFormation or CDK, not Terraform?
Verify it worked
- The changed files correspond to the resources listed in Step 3.
- The PR description references the Vanta test ID and links to the failing resources.
- The diff is minimal — only the resources identified as failing should be modified.
| Scenario | What you should see |
|---|---|
| Success | Draft PR exists with targeted diff; description includes the Vanta test ID and failing resource IDs |
| Auth failure | Claude reports a tool error — re-authenticate via /mcp → Vanta → Reconnect and re-run the prompt |
| No IaC found | Claude asks for the path to your infrastructure code — provide it and re-run |
| Test still failing after merge | Changes haven’t been applied yet, or the sync cycle hasn’t run — check your pipeline and wait for Vanta’s next sync |
Congratulations
You have the Vanta Claude Code plugin connected and you’ve used it to surface failing tests, inspect the failing resources, and open a PR to fix one. From here you can:- Fix more tests — run
/vanta:list-testsat any time to get an updated priority list and repeat the fix flow. - Explore other compliance data — ask Claude about controls, vendors, vulnerabilities, or frameworks in plain English.
- Connect additional clients — add the Vanta MCP server to Cursor or Perplexity using the Vanta MCP server reference.
More things to try
Once you’re connected, ask Claude any of the following in plain English:Review your SOC 2 control coverage
Review your SOC 2 control coverage
frameworks to get overall SOC 2 progress, then list_framework_controls to break it down by control, and finally list_control_tests on the weakest controls to surface the specific tests dragging them down.Triage a vulnerability by severity
Triage a vulnerability by severity
vulnerabilities with severity and integration filters, then sorts by deadline and checks the owner assignment on each result.Find tests failing across multiple frameworks
Find tests failing across multiple frameworks
tests filtered to NEEDS_ATTENTION, then cross-references the frameworkCodes field on each test to identify ones that appear in both framework mappings.Check who owns a control
Check who owns a control
controls to find the control by name, then list_control_tests to enumerate its associated tests and their current pass/fail status.