Engineering/AI documentation
Integrations Overview
The Integrations overview summarizes connected channels, deployment surfaces, and integration health.
Concepts: mcp
Implementation Summary
The Integrations overview summarizes connected channels, deployment surfaces, and integration health for the active project.
Frontend Surface
frontend/src/components/integrations/IntegrationsView.tsxfrontend/src/components/integrations/IntegrationsOverview.tsxfrontend/src/stores/integrationsStore.tsfrontend/src/lib/api.ts
State, API, And Backend Contracts
Stores
frontend/src/stores/integrationsStore.ts
API And Backend
backend/app/api/routes/channels.pybackend/app/api/routes/deployments.pybackend/app/api/routes/surveys.pybackend/app/api/routes/mcp.pybackend/app/services/deployment_service.pybackend/app/services/channel_service.pybackend/app/services/mcp_client_manager.py
Architecture Notes
- The feature is mounted through
frontend/src/components/integrations/IntegrationsView.tsxand the UI navigation path recorded in the inventory. frontend/src/components/integrations/IntegrationsOverview.tsxpasses the active project into channel, deployment, survey, and MCP-client fetches, then defensively filters recent activity and summary counts byproject_id.- If the live browser shows unscoped Recent Activity despite the source contracts above, operators should check the status bar for
Runtime bundle stale. That signal comes from/api/settings/statusand indicates the running production frontend build predates source fixes. - The overview resets its loaded state on active-project changes and ignores stale fetch completions from the previous project, so old Recent Activity rows cannot linger while a new project is loading.
- If there is no active project, the integrations store clears project-owned channel, deployment, survey, and MCP client lists rather than calling list endpoints without a project scope.
- The integrations store filters every fetched channel, deployment, survey integration, and MCP client by the active
project_idbefore storing; MCP clients are also deduplicated within that project by normalized transport and URL. - Project-owned integration list APIs require
project_ideven for global admins; admin dashboard/reporting routes are the only intended cross-project aggregation surfaces. - Project-facing channel and deployment creation APIs also validate that the requested project exists, is active, and authorizes the caller before any integration row is stored, so orphan or paused-project records cannot later surface as unexplained Recent Activity.
- Deployment overview metrics count only conversations attached to deployments in the active project, preventing another project's deployment activity from appearing as Recent Activity or summary volume.
- MCP client/tool totals are project-owned inventory in the Integrations view; global MCP server exposure controls remain admin-only management state.
tests/test_channels.pyandtests/test_mcp.pyexercise service/API scope boundaries for channel and MCP helper paths;tests/test_deployments.pyexercises the API-level conversation count boundary;tests/test_project_scope_contracts.pylocks the source contract so project-owned recent activity is built from scoped collections and not from global integration lists.tests/test_integration_simulation_scope.pyscans simulation and real-user benchmark integration calls so by-id channel, deployment, survey, and MCP operations keep the activeproject_idin the URL instead of proving old global paths.- The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
- When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.
Agents, Skills, LLM, MCP, And Permissions
- MCP-related behavior must keep access policy, audit evidence, and tool/resource exposure synchronized with the cited route or integration component.
Tests And Verification
tests/test_deployments.pytests/test_channels.pytests/test_mcp.pytests/test_project_scope_contracts.pytests/test_integration_simulation_scope.py
Related Features
Related Concepts
Compass Evidence
- Spec/task: CF-SPEC-56 / CF-698; CF-SPEC-59 / CF-740; CF-SPEC-60 / CF-767; CF-SPEC-65 / CF-842; CF-SPEC-82 / CF-1061; CF-SPEC-93 / CF-1184
- Inventory source:
docs/features/inventory.json
When To Update
- Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
- Regenerate the site and machine manifests with
python scripts/feature_docs.py --seed-missing --generate-site --check.