> For the complete documentation index, see [llms.txt](https://docs.visdom.virtuslab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/integrating.md). Agents can also search and read this documentation through its [MCP server](https://docs.visdom.virtuslab.com/~gitbook/mcp).

# Integrating a product

What a Visdom product gets from the Control Plane, and what it implements to be managed by it.

Orchestrator, Context Fabric, AI Tracing and AI Gateway are managed by the Control Plane the same way. A product signs people in through the same Keycloak, asks the Control Plane what they may do, keeps its projects and repositories in step with it, and plugs into the suite shell and dashboard.

## What the Control Plane gives a product

| Need                               | How                                                                              | Page                                                                                                                                                                 |
| ---------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Who may do what                    | `GET /api/v1/permissions/effective` with the product's own service-account token | [Effective permissions](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/effective-permissions.md)                                       |
| Projects and repositories          | A webhook when a project or its repositories change; the product re-reads them   | [Project sync](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/project-sync.md)                                                         |
| Repository list and credentials    | `GET /api/v1/repositories`, the repository token, secret values                  | [Repositories and credentials](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/repositories-and-credentials.md)                         |
| Slack, LLM and Atlassian settings  | `…/resolve` endpoints, project first then workspace                              | [Repositories and credentials](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/repositories-and-credentials.md#integrations)            |
| A shared look and selected project | `/config.js`, `/me`, theme, default project, workspace timezone                  | [The suite shell and the dashboard](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/suite-shell-and-dashboard.md)                       |
| A place on the Home page           | The product serves `GET /api/v1/dashboard/summary`                               | [The suite shell and the dashboard](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/suite-shell-and-dashboard.md#the-dashboard-summary) |

## Checklist

{% stepper %}
{% step %}

### Identity

Validate tokens of the shared Keycloak realm. Create a confidential client `<product>-m2m` with the audience `control-plane`, and accept tokens of `control-plane-m2m` (audience of your product) for the sync webhook. See [Sign-in and machine principals](https://docs.visdom.virtuslab.com/visdom-control-plane/integrating-a-product/sign-in-and-machine-principals.md).
{% endstep %}

{% step %}

### Permissions

Add the product's keys to the catalogue: one sign-in key, roles with fixed scopes. Before an action, check the caller's effective permissions — the sign-in key **and** the role. See [The permission model](https://docs.visdom.virtuslab.com/visdom-control-plane/permissions/permission-model.md).
{% endstep %}

{% step %}

### Project sync

Serve `POST …/sync/control-plane/projects`, idempotently, and point `CP_<PRODUCT>_API_URL` at the product.
{% endstep %}

{% step %}

### Shell and dashboard

Read `/me` for the theme, the selected project and the timezone; add the product to `CP_SUITE_*_URL`; serve the dashboard summary if the product has work to show.
{% endstep %}
{% endstepper %}

## Where each product stands

| Product        | Effective permissions | Project sync                               | Repositories / credentials     | Dashboard summary           |
| -------------- | --------------------- | ------------------------------------------ | ------------------------------ | --------------------------- |
| Orchestrator   | Yes                   | Yes                                        | Repository list, Slack, LLM    | Yes                         |
| Context Fabric | Yes                   | Yes (`/admin/sync/control-plane/projects`) | Repository list and token, LLM | Yes                         |
| AI Tracing     | Yes                   | Yes                                        | LLM                            | Yes, with usage and cost    |
| AI Gateway     | Yes                   | Yes                                        | —                              | Not polled by the Home page |
