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

# MCP Analytics

> See every call agents make to your MCP server, and fix the tools that fail.

> [!NOTE]
>
> See [Plans and availability](https://lightsage.com/docs/plans-and-availability.md).

## Connect your MCP server

MCP Analytics is in beta. A team admin turns it on under Beta features, on the **Navigation** page in **Settings**. It then shows in the Discovery panel.

### Set up tracking

Open the **Setup** tab and follow the steps:

1. Copy your API key. It isn't shown in full again; an admin can choose **Regenerate**, which stops the old key at once.
2. Pick your framework, install the package, and add the key to your server's environment.
3. Add the tracking code to your server.
4. The status line changes to **Connected** when an agent lists your tools, then to **Receiving tool calls**.

### Look around first

The **Demo** tab shows the product with sample data while you set up.

## See how agents use your tools

Each tab answers one question. Pick the last 24 hours, 7 days or 30 days.

### Dashboard: how is it going?

One page for your server:

* Tool calls, failed calls and error rate, typical latency, and sessions
* Calls over time, in total or by client, such as Claude Code or Cursor
* Top tools, and recent tool calls
* How many agents connected, found tools, called a tool and got a result
* What agents searched for, and searches that found nothing
* Top errors

### Tool Calls: what did agents ask for?

Every tool, with its calls, latency and errors. Pick one to see its description and recent calls, with each call's input and output.

### Sessions: what happened in the whole conversation?

Calls grouped by agent session. Open one to follow every call in order, with its input and output. Search by client, tool or session ID. The calls before a failure usually explain it, like a wrong tool first or a retry with new inputs.

### Errors: what is failing?

Failed calls, most frequent first, with when each was first and last seen. Filter by tool or by the error type your server reports, and open one to see the input and response. Each failed call is an agent that couldn't finish, so fix the most frequent first.

### Feedback: what do agents say?

Messages agents send through any tool with “feedback” in its name, with what they sent. No feedback tool yet? The page shows how to add one.

## A simple routine

What to check, and how often.

| When | What |
| - | - |
| Daily | Check the Dashboard and Errors for new failures. |
| Weekly | Read a few sessions that failed, and fix the tool descriptions involved. |
| After a release | Check Tool Calls and Errors for anything new. |


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