# MCP for AI assistants: SparkVault API Reference

> Connect an AI assistant to your company's SparkVault products through one MCP server, with member permissions, explicit consent, and an audit trail.

Canonical: https://sparkvault.com/api/docs/mcp/ · OpenAPI: https://sparkvault.com/api/openapi.yaml

## Connect your assistant

SparkVault has one Model Context Protocol (MCP) server for every company's products and company operations. Secure Help Desk uses this same connection.

1.  Add the server URL below as a remote MCP server in your assistant. It is also shown under **Settings > AI assistants** in the SparkVault console.
2.  Sign in with the SparkVault account you use for your company.
3.  If you belong to more than one company, choose the company to connect. Review the permissions and approve access.

```text
https://api.sparkvault.com/mcp
```

A connection grants access to one company: the one you choose when you approve it. To connect another company, add another connection, or another account in an assistant that holds several, and choose that company when you sign in.

## Sign-in and permissions

SparkVault uses OAuth authorization code flow with PKCE S256. The assistant discovers the issuer from the server's protected-resource metadata, then opens SparkVault sign-in and an explicit consent page. Supported public clients identify themselves with an HTTPS client metadata document or a configured client ID. Your password, sign-in codes, and private keys belong in their existing secure flows.

| Scope | Access |
| --- | --- |
| `mcp` | Named Help Desk operations and their company setup operations. |
| `sparkvault` | Central discovery and permitted operations across the company's products. |

A new connection requests both scopes.

The assistant acts as you, in the company you chose. Every request checks that you are still an active member of it, and operations retain their ordinary role, license, product, queue, and Vault access checks. The audit log records the member and identifies the assistant's client. Review and revoke a connection, listed with its company, at [auth.sv sessions](https://auth.sv/sessions).

## Find and run operations

The central tools expose the same registered protected API operations and request contracts used by the SparkVault console. Start by discovering an operation, read its contract, then invoke it with the fields that contract requires.

| Tool | Use |
| --- | --- |
| `sparkvault_list_operations` | Find operations by product or search text, with cursor pagination. |
| `sparkvault_describe_operation` | Read an operation's path, request schemas, and response contract. |
| `sparkvault_call_operation` | Invoke a discovered operation with its path, query, body, and allowed headers or files. |

For example, discover `GET /v1/account`, describe it, and call it to read the company account. Named Help Desk tools remain available on the same connection for tickets, replies, knowledge base content, publication, and desk setup. They call the same API routes.

Read the current record before a versioned change. Preserve idempotency keys and versions, review paid changes before committing them, and honor each operation's confirmation requirements. Knowledge base changes remain drafts until publication.

## Files and external approvals

A connection does not independently gain your Vault's keys. Protected file operations still need their usual unsealing, Vault Access Tokens, and authorized [Forge](/api/docs/forge/) transfer capabilities. Provider sign-in, payment-card entry, and device approvals use their existing secure workflows.

The complete MCP JSON request is limited to 6 MiB. Base64 adds overhead, so use the existing resumable Forge protocol for large files. Binary reads return bounded base64 chunks with continuation offsets; resuming a read repeats its GET operation and cannot repeat a write.

## Client compatibility

The server uses stateless Streamable HTTP. Send one JSON-RPC request per HTTPS POST; responses are JSON. It does not open an event stream or create an MCP transport session. Supported protocol revisions are `2025-11-25`, `2025-06-18`, and `2025-03-26`.

Public protected-resource metadata is available at `https://api.sparkvault.com/.well-known/oauth-protected-resource/mcp`. An unauthenticated MCP request also names this metadata URL in its HTTP authentication challenge. Clients should use the discovered issuer, canonical resource URL, and resource scopes.

## Connection troubleshooting

If sign-in reports an invalid request, restart the connection from the assistant using `https://api.sparkvault.com/mcp`. Client developers should check their registered callback, client metadata, requested resource and scopes, and PKCE S256 parameters against discovery. A web callback must exactly match an HTTPS callback declared by the client.

If the consent page says your account cannot connect, sign in to your company's SparkVault console once with the same account, then connect again. If sign-in succeeds but company access is refused, confirm you are still an active member of the company you chose. A connection that cannot use central operations was not granted the `sparkvault` scope; reconnect and approve it.

Contact [SparkVault support](/contact/) with the assistant name, time of the attempt, and error message. Keep tokens, authorization codes, sign-in codes, and private keys out of support messages. SparkVault's [privacy policy](/privacy/) and [terms of service](/terms/) apply to this connection.
