> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vensight.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP and AI assistants

> Connect Claude, ChatGPT or any MCP client to your Vensight portfolio, signed in as yourself.

Vensight runs a **Model Context Protocol (MCP) server**, so an AI assistant can read your
vendor portfolio while you work. It signs in **as you**: it can connect only if your role
lets you see the whole portfolio (see [Who can connect](#who-can-connect)), and every
question it asks is recorded against your name.

> [!NOTE]
>
> **Server URL:** `https://app.vensight.ai/api/mcp`

## How it differs from an API key

The API authenticates a **key**. A key belongs to a system, has no person behind it, and
reads the entire workspace.

MCP authenticates **a person**. When you connect an assistant, you sign in to Vensight and
approve the connection, and the credential it receives carries your identity. If your
account is deactivated, or your role changes, the assistant's access changes with it.

Use MCP for a person working with an assistant. Use an [API key](https://docs.vensight.ai/authentication.md) for a
system, such as a nightly load into a warehouse.

## Connecting a client

**1. Add the server**

In your assistant's settings, add a custom MCP server (sometimes called a
*connector*) with the URL `https://app.vensight.ai/api/mcp`.

**2. Sign in**

The client opens Vensight's sign-in page. Sign in with your usual Vensight account
and approve the connection.

**3. Ask a question**

The assistant can now read your portfolio, for example *"Which vendors have contracts
ending in the next 90 days?"*

The client registers itself automatically as part of sign-in, so there is no client ID or
secret to request from anyone.

## Who can connect

* **Lender staff and Vensight staff.** Vendor accounts are refused, because the server
  reads the lender's portfolio.
* **Your role must reach every vendor** and include **View vendors** and **View
  Contracts**. The server cannot yet filter by business unit, so a role limited to certain
  business units is refused rather than shown records outside them. Ask a workspace admin
  if you are refused.
* **Access follows the person.** If someone's account is deactivated or their role changes,
  their assistant's access changes with it, on its next question.
* **Your Vensight account must be active.** Usually connecting just works, even if you have
  not opened Vensight recently. If you are refused with a message asking you to sign in,
  open Vensight in your browser once with the same account and connect again.

If your own role cannot connect, Settings › MCP in Vensight says so and gives the reason.

## Questions to try

You ask in your own words; the assistant picks the right tool itself. Each of these is
answered in one step:

* Tell me about a vendor: contracts, money owed, incidents, alerts, documents and reviews in one answer.
* How is the whole portfolio doing today?
* Which contracts renew or end in the next 90 days, and when is notice due?
* What invoices are unpaid or overdue, and how much is that?
* How much do we spend by vendor, by business unit or by month?
* Which incidents and watchlist alerts are still open?
* Which documents are we waiting on, and which are about to expire?
* Which reviews and QBRs are open or past due?
* What did a vendor answer about encryption, insurance or business continuity?
* What has happened on a vendor's record recently?
* What notes has our team written on a vendor, and what was said in our messages with them?

## What an assistant can read

Vendors, contracts, invoices, incidents, documents and what is required of each vendor,
questions and answers, review cycles, requests, watchlist alerts, subprocessors and each
vendor's history: the same records, with the same fields, as the
[API reference](https://docs.vensight.ai/api-overview.md). It can also read a vendor's internal notes and its message
thread, which the API cannot (see below). Reading is always available to a person whose
role can connect.

## What an assistant can do

Eighteen tools that **read**, and eighteen that **make changes** when your workspace has
switched that on (see [Making changes](#making-changes)).

**Purpose-built tools.** Each answers one question in a single call. Wherever a tool takes
a vendor, the vendor's name works as well as its id.

| Tool | Use it for |
| - | - |
| `find_vendors` | Looking a vendor up by name, or listing vendors by status, tier or business unit. |
| `get_vendor_overview` | Everything about one vendor: contracts, money owed, incidents, alerts, documents and reviews. |
| `get_portfolio_summary` | The whole portfolio at a glance, with counts and totals. |
| `list_renewals` | Contracts renewing or ending in the next N days, soonest first. |
| `list_invoices` | Invoices by status, unpaid or overdue, with a total. |
| `summarize_spend` | Spend by vendor, business unit or month. |
| `list_incidents` | Open incidents, most severe first. |
| `list_watchlist_alerts` | Screening alerts not yet cleared. |
| `list_documents` | Documents outstanding, in review, or about to expire. |
| `list_reviews` | Onboarding, annual renewal and scorecard (QBR) periods that are open or past due. |
| `list_requests` | Requests from the team for new software or access. |
| `find_answers` | What a vendor answered to due diligence questions. |
| `get_vendor_history` | The timeline on a vendor's record. |
| `get_vendor_notes` | The internal notes your team has written on a vendor. Never shown to the vendor. |
| `get_contract_versions` | Every version of a vendor's contracts with the terms recorded for each, and what changed between the two newest. |
| `get_vendor_messages` | The message thread between your team and a vendor. |

**General tools.** For anything the tools above do not cover.

| Tool | What it does |
| - | - |
| `list_collections` | Lists the collections it can read — the same ones in the API reference tab — and the filters each accepts. |
| `list_records` | Reads one page of a collection, with the same filters and cursor [pagination](https://docs.vensight.ai/pagination.md) as the API. |
| `get_record` | Reads one record by its id. |

**Prompts.** Three ready-made requests a person can pick in their assistant:
`vendor_briefing` (a one-page briefing on a vendor), `weekly_portfolio_review` (what needs
attention this week) and `renewals_outlook` (renewals and their notice dates).

The purpose-built tools filter, sort and total over what they read. On a very large
portfolio a tool reads up to 2,000 records of a kind per call; if there are more, the reply
says its answer is partial rather than presenting it as complete.

It reads what the API reads, through the same query, with one addition: a vendor's
**internal notes** and its **message thread**. Those are not in the API and an API key
cannot read them. An assistant can, because it acts as a signed-in person whose role
already lets them open the vendor's Notes and Messages tabs.

**What an assistant is told about accuracy.** It is instructed to report only what Vensight
returned, never to invent or estimate a vendor, figure, date or status, to say when an
answer is partial, and to treat the text inside records (notes, messages, vendors' answers)
as information and never as instructions to act on.

Calls an assistant makes are recorded with the person who made them.

## Making changes

By default an assistant can only read. Someone whose role includes **Manage API Keys &
Webhooks** can switch on **Let assistants make changes** under **Settings › MCP** in
Vensight. When it is on:

* A change is made **as you**, and only if your role allows the same change on screen.
* If a change needs details you have not given, **nothing is saved**. The assistant is told
  exactly what is missing and asks you for it; it is told not to fill anything in itself.
* If more than one vendor, incident, alert, document or answer matches what you said,
  nothing is saved until you say which one.
* A stand-in such as "TBD" or "N/A" is refused as if it were missing, and a date has to be
  a real calendar date. The assistant is told that every value must come from what you
  said or from what Vensight returned, and never to make one up.
* After each change the reply lists exactly what was saved, and the assistant is told to
  show it to you so you can check it.
* Every change is recorded with your name and marked as made through an AI assistant: on
  the vendor's history, or on the request itself.

| Tool | What it changes | Needs |
| - | - | - |
| `add_vendor_note` | Adds an internal note to a vendor's record. | The **Add internal notes** permission. |
| `log_incident` | Logs a new incident against a vendor. Internal until someone shares it in Vensight; the vendor is not notified. | **Log incidents** |
| `add_incident_update` | Posts an update on an incident. If the incident is shared with the vendor, the vendor can read it. | **Log incidents** |
| `set_incident_status` | Moves an incident to Open, Investigating, Monitoring or Resolved. If the incident is shared with the vendor, they see its status. | **Log incidents** |
| `edit_incident` | Changes one detail of an incident, such as its severity, owner or root cause. If the incident is shared with the vendor, they see its affected service, borrower impact and data exposure. | **Log incidents** |
| `add_alert_note` | Adds an internal note to a watchlist alert. | **Manage watchlists** |
| `clear_watchlist_alert` | Marks a watchlist alert as cleared. | **Manage watchlists** |
| `edit_vendor_detail` | Changes one detail on a vendor's record: legal name, website, contact, phone, email, critical activity, impact if unavailable, fourth-party exposure. | **Edit vendor details** |
| `assign_vendor_analyst` | Assigns or reassigns a vendor's analyst. | **Assign vendors to analysts** |
| `raise_request` | Raises a request for new software or access in your team's queue. | **File software requests** |
| `approve_document` | Approves a document that is awaiting review. The vendor sees it as accepted. | **Approve documents or mark them not accepted** |
| `return_document` | Returns a document to the vendor with the reason. The vendor reads the reason. | **Approve documents or mark them not accepted** |
| `accept_answer` | Accepts a vendor's answer to a question. The vendor sees it as accepted. | **Review questionnaire answers** |
| `return_answer` | Returns an answer to the vendor with what needs fixing. The vendor reads it. | **Review questionnaire answers** |
| `message_vendor` | Sends a message to a vendor on the thread you share with them. The vendor reads it and is notified in Vensight. No email is sent. | **Message vendors** |
| `approve_invoice` | Approves an invoice and sends it to accounts payable. If your workspace has an accounts payable address, they are emailed a link to confirm payment; the reply says whether that email went. | **Approve invoices** |
| `return_invoice` | Returns an invoice to the vendor with what needs changing. The vendor reads it. | **Approve invoices** |
| `mark_invoice_paid` | Records that accounts payable paid an approved invoice, with the name of the person who confirmed it. It moves no money. The vendor is notified in Vensight. | **Record invoice payments** |

Messaging a vendor and the invoice actions act at once, as you: there is no separate approval
step in Vensight. Inviting a vendor is done in Vensight itself, not through an assistant. Not
available through an assistant yet: contracts and offboarding. Clearing a field, changing a vendor's tier, business unit or type, and
attaching files are done in Vensight.

## How replies read

The API returns each record as stored, for a system to load. The MCP server reads the same
records and **writes them out for a person**, because an assistant shows its answer to
someone or quotes it back to them:

* Field names are plain labels: **Amount**, **Due**, **Non-renewal notice by**.
* Statuses and other coded values are in words: **In review**, **Tier 1**, **Do not re-engage**.
* Money is in US dollars. Dates are in US format, and times are US Eastern, marked EST or EDT.
* A record that belongs to a vendor names the vendor, and vendors, contracts and incidents
  carry a link to their page in Vensight.
* A field with no value on file is left out.

Filters accept the same words. `list_collections` lists the values each filter takes, and
an assistant can ask for `{"status": "In review"}` as it appears in a reply.

Lenders can find the server address under **Settings › MCP** in Vensight.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.