vanta-auditor-api-mcp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -1
- package/bin/mcp-server.js +665 -216
- package/bin/mcp-server.js.map +70 -69
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,6 +147,9 @@ The examples use the server name `vanta-auditor`. Tool names in your client then
|
|
|
147
147
|
start with that name, for example `mcp__vanta-auditor__audits-list-audits` in
|
|
148
148
|
Claude Code.
|
|
149
149
|
|
|
150
|
+
Most clients load MCP servers when a session starts. After you add or change
|
|
151
|
+
the server, start a new session.
|
|
152
|
+
|
|
150
153
|
### Claude Code
|
|
151
154
|
|
|
152
155
|
Add `.mcp.json` to your project. Claude Code expands `${VAR}` from the
|
|
@@ -511,6 +514,24 @@ Calling conventions:
|
|
|
511
514
|
`audits-list-information-requests` for that audit, then
|
|
512
515
|
`audits-list-information-request-evidence` for a request.
|
|
513
516
|
- **Some tools work only for classic audits.** Their descriptions say so.
|
|
517
|
+
- **Failed API calls return the HTTP status.** When Vanta answers with an error,
|
|
518
|
+
the tool result is
|
|
519
|
+
`{"status": <HTTP status>, "retryAfter": "<Retry-After header>", "error": <Vanta's response>}`.
|
|
520
|
+
`retryAfter` appears only when Vanta sends it, in seconds or as an HTTP date.
|
|
521
|
+
Input, token and connection errors return a plain message instead.
|
|
522
|
+
- **Rate limits and transient failures are retried for you.** Each tool's
|
|
523
|
+
description gives its rate limit; many allow 10 requests a minute. Read tools
|
|
524
|
+
retry 429, 502, 503 and 504 responses and connection errors. Write tools retry
|
|
525
|
+
only 429 responses, because Vanta didn't process those, and a retried 5xx
|
|
526
|
+
could repeat a write. Retries honor `Retry-After`, wait at most 10 seconds
|
|
527
|
+
between attempts, and don't start after 25 seconds, so a call usually returns
|
|
528
|
+
within about 40 seconds. If a call still returns status 429, wait as long as
|
|
529
|
+
`retryAfter` says before you call that tool again.
|
|
530
|
+
- **For bulk operations, use a script.** To create or update many records,
|
|
531
|
+
call the tools from code with an MCP client library, as in
|
|
532
|
+
[Check that it works](#check-that-it-works), or use the
|
|
533
|
+
[`vanta-auditor-api-sdk`](https://www.npmjs.com/package/vanta-auditor-api-sdk)
|
|
534
|
+
package directly, rather than one model turn per record.
|
|
514
535
|
|
|
515
536
|
Example requests that you can give an agent:
|
|
516
537
|
|
|
@@ -655,7 +676,8 @@ history on npm for what changed.
|
|
|
655
676
|
**No tools appear, or write tools are missing**
|
|
656
677
|
|
|
657
678
|
- Check the `--scope` options. `--scope read` lists only read tools.
|
|
658
|
-
-
|
|
679
|
+
- Start a new session after a configuration change. Most clients load MCP
|
|
680
|
+
servers only when a session starts.
|
|
659
681
|
|
|
660
682
|
**The first tool call fails**
|
|
661
683
|
|
|
@@ -683,6 +705,19 @@ The token lacks the scope that the tool needs, or your firm can't access that
|
|
|
683
705
|
audit or that data. Check the audit's assignment in Vanta, and whether the
|
|
684
706
|
customer restricts what auditors can see or hasn't shared the data yet.
|
|
685
707
|
|
|
708
|
+
**A call fails with status 429**
|
|
709
|
+
|
|
710
|
+
The tool's rate limit was still exceeded after about 25 seconds of retries.
|
|
711
|
+
Wait as long as `retryAfter` in the result says, and space out calls to that
|
|
712
|
+
tool. For
|
|
713
|
+
many calls, see the bulk-operations note in [Use the tools](#use-the-tools).
|
|
714
|
+
|
|
715
|
+
**`audits-duplicate` fails with status 404**
|
|
716
|
+
|
|
717
|
+
Check that the source audit exists and is an IRL audit. If it is, audit
|
|
718
|
+
duplication may not be enabled for your firm; contact your Vanta
|
|
719
|
+
representative.
|
|
720
|
+
|
|
686
721
|
## Get help
|
|
687
722
|
|
|
688
723
|
For access to the Auditor API, credentials, or problems you can't solve with
|