vanta-auditor-api-mcp 0.1.0 → 0.1.1
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 +41 -19
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +5 -5
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ people and assets. If you allow it, they can also comment, update information
|
|
|
9
9
|
requests, review evidence and assess controls.
|
|
10
10
|
|
|
11
11
|
Vanta checks your firm's permissions and audit access on every call. The server
|
|
12
|
-
gets and renews its own access token, and
|
|
13
|
-
|
|
12
|
+
gets and renews its own access token, and keeps your client secret and that
|
|
13
|
+
token out of its own error messages.
|
|
14
14
|
|
|
15
15
|
> **⚠️ Important disclaimer:** This server is experimental. You may encounter
|
|
16
16
|
> bugs, errors or unexpected results. Always verify the accuracy and
|
|
@@ -192,10 +192,10 @@ of `command`, `args` and `env_vars`. Run `codex mcp list` to check the
|
|
|
192
192
|
configuration. In `codex exec`, set `default_tools_approval_mode = "approve"`
|
|
193
193
|
on the server if the agent must call tools without asking.
|
|
194
194
|
|
|
195
|
-
###
|
|
195
|
+
### Cursor
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
Add the server to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json`
|
|
198
|
+
for every project. Cursor expands `${env:NAME}`:
|
|
199
199
|
|
|
200
200
|
```json
|
|
201
201
|
{
|
|
@@ -204,16 +204,26 @@ the client after you change the file.
|
|
|
204
204
|
"command": "npx",
|
|
205
205
|
"args": ["-y", "vanta-auditor-api-mcp@<version>", "start", "--scope", "read"],
|
|
206
206
|
"env": {
|
|
207
|
-
"VANTA_CLIENT_ID": "${VANTA_CLIENT_ID}",
|
|
208
|
-
"VANTA_CLIENT_SECRET": "${VANTA_CLIENT_SECRET}"
|
|
207
|
+
"VANTA_CLIENT_ID": "${env:VANTA_CLIENT_ID}",
|
|
208
|
+
"VANTA_CLIENT_SECRET": "${env:VANTA_CLIENT_SECRET}"
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
### Claude Desktop and other clients
|
|
216
|
+
|
|
217
|
+
Clients that use an `mcpServers` JSON file accept the same configuration with
|
|
218
|
+
`command`, `args` and `env`. Restart the client after you change the file.
|
|
219
|
+
|
|
220
|
+
Check your client's documentation for how it expands environment variables. If
|
|
221
|
+
it can't, don't write the secret into the file. Start the client from a
|
|
222
|
+
launcher that injects the variables from your secret manager. A client that
|
|
223
|
+
runs on your network can instead use a
|
|
224
|
+
[private service](#run-as-a-private-service-streamable-http) URL. Claude
|
|
225
|
+
Desktop's remote connectors connect from Anthropic's cloud, so they can't reach
|
|
226
|
+
a private network.
|
|
217
227
|
|
|
218
228
|
To install the package once instead of with `npx` at every start, run
|
|
219
229
|
`npm install -g vanta-auditor-api-mcp@<version>`, then use
|
|
@@ -221,8 +231,10 @@ To install the package once instead of with `npx` at every start, run
|
|
|
221
231
|
|
|
222
232
|
### Claude Agent SDK (Python)
|
|
223
233
|
|
|
224
|
-
Install the SDK with `pip install claude-agent-sdk`. It needs
|
|
225
|
-
Anthropic credentials
|
|
234
|
+
Install the SDK with `pip install claude-agent-sdk`. It needs Python 3.10 or
|
|
235
|
+
later and Anthropic credentials. Packages built for your platform include the
|
|
236
|
+
Claude Code CLI; if pip builds the SDK from source, install Claude Code too.
|
|
237
|
+
See the
|
|
226
238
|
[Agent SDK documentation](https://code.claude.com/docs/en/agent-sdk).
|
|
227
239
|
|
|
228
240
|
```python
|
|
@@ -292,9 +304,14 @@ private service, import `MCPServerStreamableHttp` from `agents.mcp` and use
|
|
|
292
304
|
A connection alone doesn't prove that the credentials work, because the server
|
|
293
305
|
requests a token only on the first tool call. After setup:
|
|
294
306
|
|
|
295
|
-
1. **List the tools.** `audits-list-audits` is present.
|
|
296
|
-
every tool has the annotation
|
|
297
|
-
|
|
307
|
+
1. **List the tools.** `audits-list-audits` is present. Without `--mode dynamic`
|
|
308
|
+
and with `--scope read`, every tool has the annotation
|
|
309
|
+
`readOnlyHint: true`. With `--mode dynamic`,
|
|
310
|
+
call `list_tools` instead, and check that the result includes
|
|
311
|
+
`audits-list-audits`.
|
|
312
|
+
2. **Call `audits-list-audits`** with `{}` (with `--mode dynamic`, call
|
|
313
|
+
`execute_tool` with `{"name": "audits-list-audits", "arguments": {}}`). The
|
|
314
|
+
call succeeds, and the JSON
|
|
298
315
|
text of the result has `results.data` with audits assigned to your firm.
|
|
299
316
|
The list has pages; see [Use the tools](#use-the-tools).
|
|
300
317
|
|
|
@@ -302,7 +319,8 @@ If the call succeeds but returns no audits, check that your firm has an active
|
|
|
302
319
|
audit in Vanta. If it fails, see [Troubleshooting](#troubleshooting).
|
|
303
320
|
|
|
304
321
|
To check from code before you give the tools to a model, call the server
|
|
305
|
-
directly. With the OpenAI Agents SDK
|
|
322
|
+
directly. With the OpenAI Agents SDK and without `--mode dynamic`, inside the
|
|
323
|
+
`async with` block:
|
|
306
324
|
|
|
307
325
|
```python
|
|
308
326
|
import json
|
|
@@ -588,7 +606,7 @@ for the full list.
|
|
|
588
606
|
| `--tool <name>` | Lists only the named tools. Repeat it for more than one. |
|
|
589
607
|
| `--port <port>` | `serve`: the HTTP port. Default: `2718`. |
|
|
590
608
|
| `--disable-static-auth` | `serve`: each caller must send its own token in a `bearer-auth` header, and the server never uses its own credentials. The caller must replace that token before it expires. |
|
|
591
|
-
| `--log-level <level>` | `debug`, `info` (default), `warning` or `error`.
|
|
609
|
+
| `--log-level <level>` | `debug`, `info` (default), `warning` or `error`. Server logs go to stderr; debug request logs go to stdout. |
|
|
592
610
|
|
|
593
611
|
**Don't put secrets in command-line options.** Other processes on the host can
|
|
594
612
|
read them. Use environment variables instead of `--bearer-auth` or
|
|
@@ -601,8 +619,11 @@ bodies. Over stdio, it can also corrupt the connection to the client.
|
|
|
601
619
|
## Security and data
|
|
602
620
|
|
|
603
621
|
- **Credentials.** The server sends the client secret only to `/oauth/token`
|
|
604
|
-
on the API host that `--server-url` sets, which is Vanta's by default.
|
|
605
|
-
|
|
622
|
+
on the API host that `--server-url` sets, which is Vanta's by default. Its
|
|
623
|
+
own error messages, such as failed token requests, contain neither the secret
|
|
624
|
+
nor the tokens it obtains. A failed API call returns Vanta's response body
|
|
625
|
+
unchanged. If you supply `VANTA_BEARER_AUTH`, check its value: a malformed
|
|
626
|
+
token can appear in an error.
|
|
606
627
|
- **Audit data reaches the model.** Tool results contain your customers' audit
|
|
607
628
|
data. Check that your model provider's data handling meets your firm's
|
|
608
629
|
requirements.
|
|
@@ -659,7 +680,8 @@ history on npm for what changed.
|
|
|
659
680
|
**A call fails with 403, or an audit you expect is missing**
|
|
660
681
|
|
|
661
682
|
The token lacks the scope that the tool needs, or your firm can't access that
|
|
662
|
-
audit. Check the audit's assignment in Vanta
|
|
683
|
+
audit or that data. Check the audit's assignment in Vanta, and whether the
|
|
684
|
+
customer restricts what auditors can see or hasn't shared the data yet.
|
|
663
685
|
|
|
664
686
|
## Get help
|
|
665
687
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -49731,9 +49731,9 @@ var init_config = __esm(() => {
|
|
|
49731
49731
|
SDK_METADATA = {
|
|
49732
49732
|
language: "typescript",
|
|
49733
49733
|
openapiDocVersion: "1.0.0",
|
|
49734
|
-
sdkVersion: "0.1.
|
|
49734
|
+
sdkVersion: "0.1.1",
|
|
49735
49735
|
genVersion: "2.968.1",
|
|
49736
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.1.
|
|
49736
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.1.1 2.968.1 1.0.0 vanta-auditor-api-mcp"
|
|
49737
49737
|
};
|
|
49738
49738
|
});
|
|
49739
49739
|
|
|
@@ -62188,7 +62188,7 @@ Rate limit: 10 requests / minute.`,
|
|
|
62188
62188
|
function createMCPServer(deps) {
|
|
62189
62189
|
const server = new McpServer({
|
|
62190
62190
|
name: "VantaAuditorAPI",
|
|
62191
|
-
version: "0.1.
|
|
62191
|
+
version: "0.1.1"
|
|
62192
62192
|
});
|
|
62193
62193
|
const getClient = deps.getSDK || (() => new VantaAuditorAPICore({
|
|
62194
62194
|
security: deps.security,
|
|
@@ -64502,7 +64502,7 @@ http_headers = { ${headers.map(({ name, env }) => `${JSON.stringify(name)} = ${J
|
|
|
64502
64502
|
<h1>Instructions</h1>
|
|
64503
64503
|
<p>One-click installation for Claude Desktop users</p>
|
|
64504
64504
|
<div class="instruction-item">
|
|
64505
|
-
<a href="https://github.com/VantaInc/vanta-auditor-api-mcp/releases/download/v0.1.
|
|
64505
|
+
<a href="https://github.com/VantaInc/vanta-auditor-api-mcp/releases/download/v0.1.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
64506
64506
|
\uD83D\uDCE5 Download MCP Bundle
|
|
64507
64507
|
</a>
|
|
64508
64508
|
</div>
|
|
@@ -72096,7 +72096,7 @@ var routes = buildRouteMap({
|
|
|
72096
72096
|
var app = buildApplication(routes, {
|
|
72097
72097
|
name: "mcp",
|
|
72098
72098
|
versionInfo: {
|
|
72099
|
-
currentVersion: "0.1.
|
|
72099
|
+
currentVersion: "0.1.1"
|
|
72100
72100
|
}
|
|
72101
72101
|
});
|
|
72102
72102
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -72104,5 +72104,5 @@ export {
|
|
|
72104
72104
|
app
|
|
72105
72105
|
};
|
|
72106
72106
|
|
|
72107
|
-
//# debugId=
|
|
72107
|
+
//# debugId=EE5F73D54121E2BC64756E2164756E21
|
|
72108
72108
|
//# sourceMappingURL=mcp-server.js.map
|