feat(connections): enable MCP aggregators by default (#13964)

## Thinking Path

> - Paperclip helps people manage AI agents for work.
> - Connections let those agents use external services with explicit
access rules.
> - Zapier, Arcade, Composio Connect, and Executor already have setup
and runtime support.
> - Their experimental switch still blocks discovery and setup by
default.
> - This pull request removes those gates and the Settings toggle.
> - Users can connect these providers without enabling an experiment.

## Linked Issues or Issue Description

Refs #13755. Refs #13941.

**What existing behavior does this improve?**
Apps browsing, inline setup, and agent connection search for the four
MCP aggregators.

**Current behavior**
An instance must enable the MCP aggregators experiment before users or
agents can start setup.

**Proposed behavior**
All four providers are available by default on local and managed
instances. Old stored and managed values still parse but cannot disable
them.

## What Changed

- Remove the aggregator gates from Apps, inline setup, server setup, and
agent search.
- Remove the Settings toggle and its UI hook.
- Retain the old setting key only for upgrade compatibility. Normalize
it to true and ignore managed overrides, as Apps already does.
- Replace opt-in fixtures with default-on coverage. Test old false
values, all four setup flows, provider choice, and the removed toggle.
- Update current connector guidance and remove the opt-in from the
runner acceptance fixture.

## Verification

- 306 focused tests passed across eight files: shared remote MCP
contracts; server remote MCP lifecycle, aggregator fallback, settings
normalization, and managed overlay; UI Apps browsing, setup, and
experimental settings.
- Server and UI TypeScript checks passed.
- UI token gates and `git diff --check` passed.
- The full local suite was not run, per the maintainer's instruction.
All 54 CI checks passed; two checks were skipped. One unrelated
workspace-preview readiness timeout passed on one failed-shard retry.
- The setup fixtures use simulated MCP responses. This change does not
claim new live provider acceptance.

## Risks

- Existing instances now show all four providers, even if the old flag
was false. This is intentional.
- External provider choice, credentials, company isolation, agent
grants, and tool policies still apply. Showing a connector does not
authorize an external account.
- No data migration is required. The compatibility key keeps old managed
configuration documents valid.
- Historical Zapier live acceptance remains incomplete in the existing
evidence report. The maintainer explicitly requested the default-on
rollout for all four existing providers; the report records that scoped
exception.

## Model Used

OpenAI GPT-6 (`gpt-6-astra`) through Codex, with reasoning, repository
tools, and test execution. The context window size is not exposed in
this session.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-09-24 17:31:32 -05:00
1 parent aa8fc86331
commit 8781f06a87
28 files changed
+86 -163

No files matched your search

@@ -22,7 +22,6 @@ import {
import type { RuntimeToolsTokenClaims } from "../runtime-tools-token.js";
import { connectionIntentService } from "../services/connection-intents.js";
import { issueThreadInteractionService } from "../services/issue-thread-interactions.js";
import { instanceSettingsService } from "../services/instance-settings.js";
import {
getEmbeddedPostgresTestSupport,
startEmbeddedPostgresTestDatabase,
@@ -142,9 +141,6 @@ const support = await getEmbeddedPostgresTestSupport();
await db
.delete(toolApplications)
.where(eq(toolApplications.companyId, claims.company_id));
await instanceSettingsService(db).updateExperimental({
enableMcpAggregators: true,
});
}
async function selectProvider(
option: string,
@@ -439,22 +435,12 @@ const support = await getEmbeddedPostgresTestSupport();
}),
).rejects.toMatchObject({ status: 403 });
});
it("gates fallback and direct aggregator requests behind the experiment", async () => {
it("offers fallback and direct aggregator requests without an experimental opt-in", async () => {
await resetQuestions();
await instanceSettingsService(db).updateExperimental({
enableMcpAggregators: false,
});
const result = await connectionIntentService(db).search(
claims,
"hubspot",
);
expect(result.results.some((item) => item.source === "aggregator")).toBe(
false,
);
expect(result.providerQuestion).toBeUndefined();
await expect(
connectionIntentService(db).request(claims, "composio"),
).rejects.toMatchObject({ status: 422 });
const result = await connectionIntentService(db).search(claims, "hubspot");
expect(result.results.some((item) => item.source === "aggregator")).toBe(true);
expect(result.providerQuestion).toBeDefined();
await expect(connectionIntentService(db).request(claims, "composio")).resolves.toMatchObject({ state: "needs_user_action" });
});
it("reuses an allowed selected provider without claiming the underlying app is ready", async () => {
await resetQuestions();
@@ -33,7 +33,6 @@ import { issueThreadInteractionService } from "../services/issue-thread-interact
import { PaperclipRunnerToolAuthority } from "../services/native-runtime/paperclip-runner-tool-authority.js";
import { materializeNativeInteractionResponses } from "../services/native-runtime/native-interaction-bridge.js";
import { connectionIntentService } from "../services/connection-intents.js";
import { instanceSettingsService } from "../services/instance-settings.js";
import {
getEmbeddedPostgresTestSupport,
startEmbeddedPostgresTestDatabase,
@@ -680,7 +679,6 @@ describeEmbeddedPostgres("connectionIntentService", () => {
});
it("preserves an authorizing card through comments and later runs", async () => {
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true });
const service = connectionIntentService(db);
const first = await service.request(claims, "zapier");
await service.updatePhase(first.interactionId!, "authorizing", claims.responsible_user_id);
@@ -42,7 +42,6 @@ import {
startEmbeddedPostgresTestDatabase,
} from "./helpers/embedded-postgres.js";
import { toolAccessService } from "../services/tool-access.js";
import { instanceSettingsService } from "../services/instance-settings.js";
import { ComposioApiError, type ComposioClient } from "../services/composio.js";
import { createComposioSessionManager } from "../services/composio-session-manager.js";
import { createToolGatewayService } from "../services/tool-gateway.js";
@@ -565,7 +564,6 @@ describeEmbeddedPostgres("generic remote MCP connections", () => {
});
it("keeps a generated Zapier URL attached to the curated Zapier identity", async () => {
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true });
const secretUrl = "https://mcp.zapier.com/api/v1/connect?token=zapier-secret";
const publicUrl = "https://mcp.zapier.com/api/v1/connect";
const company = await createCompany(db);
@@ -82,6 +82,15 @@ describe("applyManagedExperimentalOverlay", () => {
});
describe("instanceSettingsService managed overlay", () => {
it.each([{}, { enableMcpAggregators: false }])("keeps aggregators on with legacy stored and managed values: %j", async (stored) => {
const { db } = stubDb(settingsRow({ ...stored, enableChatConnectors: true }));
const service = instanceSettingsService(db, { runtimeEnv: managedEnv(JSON.stringify({
v: 1, mode: "cloud", catalogVersion: "legacy", features: { enableMcpAggregators: false }, plugins: { autoInstall: [] },
})) });
expect(await service.getExperimental()).toMatchObject({ enableMcpAggregators: true, enableChatConnectors: true, managedKeys: {} });
expect(await service.updateExperimental({ enableMcpAggregators: false })).toMatchObject({ experimental: { enableMcpAggregators: true, enableChatConnectors: true } });
});
it("persists chat connector opt-in and reads it back after service reconstruction", async () => {
const row = settingsRow({});
const { db, persistedSets } = stubDb(row);
@@ -41,9 +41,9 @@ describe("instance settings service", () => {
enableStreamlinedLeftNavigation: true,
enableStreamlinedUi: true,
enableApps: true,
enableMcpAggregators: true,
enableAgentChat: false,
enableChatConnectors: false,
enableMcpAggregators: false,
enableMemoryConnectors: false,
enableConferenceRoomChat: false,
enableClassicTaskInterface: false,
@@ -3,7 +3,7 @@ import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
import { agents, heartbeatRuns, issues, toolCatalogEntries, toolConnectionInstalls, toolInvocations, companies, companyMemberships, createDb, toolConnections, toolPolicies, toolProfileEntries } from "@paperclipai/db";
import { agents, heartbeatRuns, issues, toolCatalogEntries, toolConnectionInstalls, toolInvocations, companies, companyMemberships, instanceSettings, createDb, toolConnections, toolPolicies, toolProfileEntries } from "@paperclipai/db";
import { eq } from "drizzle-orm";
import { startEmbeddedPostgresTestDatabase } from "./helpers/embedded-postgres.js";
import { toolAccessService } from "../services/tool-access.js";
@@ -23,7 +23,6 @@ describe("remote connector lifecycle", () => {
vi.stubEnv("PAPERCLIP_SECRETS_MASTER_KEY_FILE", join(keyDir, "key"));
fixture = await startEmbeddedPostgresTestDatabase("mcp-connectors-test-");
db = createDb(fixture.connectionString);
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true });
});
afterAll(async () => { await fixture?.cleanup(); vi.unstubAllEnvs(); if (keyDir) await rm(keyDir, { recursive: true, force: true }); });
async function company() {
@@ -51,28 +50,28 @@ describe("remote connector lifecycle", () => {
});
return { service, requests, add: () => { added = true; }, remove: () => { removed = true; }, restore: () => { removed = false; } };
}
it("defaults MCP aggregators off and rejects direct setup without provider requests or credential writes", async () => {
expect(normalizeExperimentalSettings({}).enableMcpAggregators).toBe(false);
it.each([undefined, false])("allows all aggregator setup with stored setting %s", async (legacyValue) => {
await db.delete(instanceSettings);
if (legacyValue !== undefined) await db.insert(instanceSettings).values({ experimental: { enableMcpAggregators: legacyValue } });
expect(normalizeExperimentalSettings({ enableMcpAggregators: legacyValue }).enableMcpAggregators).toBe(true);
expect((await instanceSettingsService(db).getExperimental()).enableMcpAggregators).toBe(true);
const org = await company(); const remote = remoteFixture();
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: false });
try {
const app = express();
app.use((req, _res, next) => { req.actor = { type: "board", userId: actor.actorId, source: "local_implicit", isInstanceAdmin: true }; next(); });
app.use("/api", toolAccessRoutes(db, { paperclipCloudConnector: null }));
const gallery = await request(app).get(`/api/companies/${org.id}/tools/gallery`);
expect(gallery.status).toBe(200);
expect(gallery.body.apps.some((entry: { slug: string }) => ["zapier", "arcade", "composio", "executor"].includes(entry.slug))).toBe(false);
expect(gallery.body.apps.some((entry: { slug: string }) => entry.slug === "notion")).toBe(true);
for (const [galleryKey, connectionMethodKey] of [["zapier", "generated-url"], ["arcade", "mcp"], ["composio", "mcp"], ["executor", "mcp"]]) {
await expect(remote.service.connectGalleryApp(org.id, { galleryKey, connectionMethodKey, saveDraft: true }, actor))
.rejects.toMatchObject({ status: 403, details: { code: "mcp_aggregators_disabled" } });
}
await expect(remote.service.preflightGalleryAppMetadata("composio", "mcp"))
.rejects.toMatchObject({ status: 403 });
expect(remote.requests).toHaveLength(0);
expect(await db.select().from(toolConnections).where(eq(toolConnections.companyId, org.id))).toHaveLength(0);
} finally {
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true });
const app = express();
app.use((req, _res, next) => { req.actor = { type: "board", userId: actor.actorId, source: "local_implicit", isInstanceAdmin: true }; next(); });
app.use("/api", toolAccessRoutes(db, { paperclipCloudConnector: null }));
const gallery = await request(app).get(`/api/companies/${org.id}/tools/gallery`);
expect(gallery.status).toBe(200);
expect(gallery.body.apps.map((entry: { slug: string }) => entry.slug)).toEqual(expect.arrayContaining(["zapier", "arcade", "composio", "executor", "notion"]));
expect(gallery.body.apps.some((entry: { slug: string }) => entry.slug === "mem0")).toBe(false);
for (const [galleryKey, connectionMethodKey, link] of [
["zapier", "generated-url", "https://mcp.zapier.com/api/v1/connect?token=fixture-secret"],
["arcade", "mcp", "https://api.arcade.dev/mcp/fixture"],
["composio", "mcp", "https://connect.composio.dev/mcp"],
["executor", "mcp", "https://example.com/mcp"],
]) {
const connected = await remote.service.connectGalleryApp(org.id, { galleryKey, connectionMethodKey, link, authMode: "none" }, actor);
expect(connected.catalog).toHaveLength(3);
expect(connected.connectionId).toBeTruthy();
}
});
it.each([
@@ -176,9 +176,6 @@ describeEmbeddedPostgres("connector lifecycle telemetry (tool-access)", () => {
"paperclip-lifecycle-telemetry-",
);
db = createDb(tempDb.connectionString);
await instanceSettingsService(db).updateExperimental({
enableMcpAggregators: true,
});
}, 30_000);
afterEach(async () => {
@@ -811,14 +811,14 @@ describeEmbeddedPostgres("tool access service", () => {
process.env.PAPERCLIP_TOOL_ACCESS_TEST_DATABASE_URL?.trim();
if (externalDatabaseUrl) {
db = createDb(externalDatabaseUrl);
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true, enableMemoryConnectors: true });
await instanceSettingsService(db).updateExperimental({ enableMemoryConnectors: true });
return;
}
tempDb = await startEmbeddedPostgresTestDatabase(
"paperclip-tool-access-service-",
);
db = createDb(tempDb.connectionString);
await instanceSettingsService(db).updateExperimental({ enableMcpAggregators: true, enableMemoryConnectors: true });
await instanceSettingsService(db).updateExperimental({ enableMemoryConnectors: true });
}, 20_000);
afterEach(async () => {
+2 -3
View File
@@ -4,7 +4,6 @@ import { agents, companies, connectionGrants, issueThreadInteractions, toolConne
import { and, eq, or } from "drizzle-orm";
import {
APP_STORE_DEFINITIONS,
isRemoteMcpConnectorId,
isMemoryConnectorId,
GITHUB_CONNECTOR_PROFILES,
GOOGLE_WORKSPACE_CONNECTOR_PROFILES,
@@ -816,7 +815,7 @@ function connectorEnrollmentPrincipal(req: Request): string {
? await options.paperclipCloudConnector.getCapabilities()
: [];
const vercelConnect = vercelConnectIntegrationStatus();
const { enableMcpAggregators, enableMemoryConnectors } = await instanceSettingsService(db).getExperimental();
const { enableMemoryConnectors } = await instanceSettingsService(db).getExperimental();
res.json({
capabilities: await describeConnectionCreateCapabilities(req, companyId),
credentialSources: {
@@ -832,7 +831,7 @@ function connectorEnrollmentPrincipal(req: Request): string {
: "Vercel Connect setup is disabled on this Paperclip instance.",
},
},
apps: APP_STORE_DEFINITIONS.filter((app) => (enableMcpAggregators || !isRemoteMcpConnectorId(app.slug)) && (enableMemoryConnectors || !isMemoryConnectorId(app.slug))).map((app) =>
apps: APP_STORE_DEFINITIONS.filter((app) => (enableMemoryConnectors || !isMemoryConnectorId(app.slug))).map((app) =>
appWithPaperclipCloudConnectorAvailability(app, advertisedProfiles)
),
});
+1 -5
View File
@@ -35,7 +35,6 @@ import { conflict, forbidden, notFound, unprocessable } from "../errors.js";
import type { RuntimeToolsTokenClaims } from "../runtime-tools-token.js";
import { issueThreadInteractionService } from "./issue-thread-interactions.js";
import { toolAccessService } from "./tool-access.js";
import { instanceSettingsService } from "./instance-settings.js";
import { captureRunIdentity } from "./run-identity.js";
import { resolveManagedGitHubIdentitySelection } from "./git-credentials.js";
@@ -343,7 +342,6 @@ export function connectionIntentService(db: Db) {
async function search(claims: ConnectionRunClaims, query: string, options: { retryProviderChoice?: boolean } = {}): Promise<ConnectionsSearchResult> {
const { run, agent, issue } = await loadRunContext(claims);
const aggregatorsEnabled = (await instanceSettingsService(db).getExperimental()).enableMcpAggregators;
const normalized = query.trim().toLocaleLowerCase();
const tokens = normalized.split(/[^\p{L}\p{N}]+/u).filter(Boolean);
const inventory = await connectionInventory(run.companyId);
@@ -353,7 +351,6 @@ export function connectionIntentService(db: Db) {
sourceSlugForConnection(connection, inventory.applicationsById)?.startsWith("connection:")
&& connection.status !== "archived").map((connection) => `connection:${connection.id}`)];
for (const service of services) {
if (!aggregatorsEnabled && isRemoteMcpConnectorId(service)) continue;
let app;
try { app = await resolveService(service, run.companyId, run.responsibleUserId!, agent.id); }
catch (error) { if (service.startsWith("connection:") && (error as { status?: number }).status === 404) continue; throw error; }
@@ -401,7 +398,7 @@ export function connectionIntentService(db: Db) {
const explicitConsent = explicit && await hasExplicitProviderRequest(run.companyId, issue.id, run.responsibleUserId!, targetService, explicit.provider, previous[0]);
if (exact.length && (!explicitConsent || exact.some(({ item }) => item.state === "unavailable"))) return directSearchResult(query, exact.map(({ item }) => item));
const alternatives: ConnectionSearchResultItem[] = [];
if (aggregatorsEnabled && /^[a-z0-9][a-z0-9-]{0,79}$/.test(targetService)) {
if (/^[a-z0-9][a-z0-9-]{0,79}$/.test(targetService)) {
for (const provider of AGGREGATOR_PRIORITY) {
// Broad execute/search descriptions are not evidence of app support. Only a
// namespaced action (or an explicitly listed Executor integration) qualifies.
@@ -563,7 +560,6 @@ export function connectionIntentService(db: Db) {
upstreamService = { slug: route.targetService, name: selected.aggregator.targetName, selectionInteractionId: options.selectionInteractionId };
serviceSlug = route.provider;
}
if (isRemoteMcpConnectorId(serviceSlug) && !(await instanceSettingsService(db).getExperimental()).enableMcpAggregators) throw unprocessable("Experimental MCP aggregators are disabled");
const app = await resolveService(serviceSlug, context.run.companyId, context.run.responsibleUserId!, context.agent.id, options.purpose);
if (!app.available || app.methods.length === 0) {
throw unprocessable(`Connection service ${serviceSlug} is not available`);
+5 -5
View File
@@ -233,8 +233,8 @@ export function normalizeExperimentalSettings(raw: unknown): InstanceExperimenta
// Apps graduated from Experimental. Ignore historical off values while
// continuing to accept the compatibility key in stored settings.
enableApps: true,
enableMcpAggregators: true,
enableChatConnectors: parsed.data.enableChatConnectors ?? false,
enableMcpAggregators: parsed.data.enableMcpAggregators ?? false,
enableMemoryConnectors: parsed.data.enableMemoryConnectors ?? false,
enablePipelines: parsed.data.enablePipelines ?? false,
enableCases: parsed.data.enableCases ?? false,
@@ -276,8 +276,8 @@ export function normalizeExperimentalSettings(raw: unknown): InstanceExperimenta
enableStreamlinedLeftNavigation: true,
enableStreamlinedUi: true,
enableApps: true,
enableMcpAggregators: true,
enableChatConnectors: false,
enableMcpAggregators: false,
enableMemoryConnectors: false,
enablePipelines: false,
enableCases: false,
@@ -334,9 +334,9 @@ export function applyManagedExperimentalOverlay(
for (const [key, value] of Object.entries(managedConfig.features) as Array<
[ManagedExperimentalFeatureKey, boolean]
>) {
// Existing Cloud stack configs may still carry enableApps. Accept the
// document during rollout, but never let the retired flag disable Apps.
if (key === "enableApps") continue;
// Existing Cloud stack configs may still carry retired flags. Accept the
// document during rollout, but never let retired flags disable Apps or MCP aggregators.
if (key === "enableApps" || key === "enableMcpAggregators") continue;
next[key] = value;
managedKeys[key] = { managed: true, managedBy: PAPERCLIP_CLOUD_MANAGED_BY };
}
+5 -11
View File
@@ -11869,17 +11869,11 @@ export function toolAccessService(
return `${base.slice(0, 151).trimEnd()} (${randomUUID().slice(0, 6)})`;
}
async function assertExperimentalConnectorSetupEnabled(provider: unknown, method: unknown, existing = false) {
async function assertExperimentalConnectorSetupEnabled(provider: unknown, existing = false) {
if (!existing && isMemoryConnectorId(provider)
&& !(await instanceSettingsService(db).getExperimental()).enableMemoryConnectors) {
throw forbidden("Enable memory connectors in Settings → Experimental to set up this connection", { code: "memory_connectors_disabled" });
}
if (isRemoteMcpConnectorMethod(provider, method)
&& !(await instanceSettingsService(db).getExperimental()).enableMcpAggregators) {
throw forbidden("Enable MCP aggregators in Settings → Experimental to set up this connection", {
code: "mcp_aggregators_disabled",
});
}
}
async function connectGalleryApp(
@@ -12030,7 +12024,7 @@ export function toolAccessService(
? connectionMethodFor(galleryEntry, inferredMethodKey)
: null;
const remoteMcpConnector = isRemoteMcpConnectorMethod(galleryEntry?.slug, method?.key);
await assertExperimentalConnectorSetupEnabled(galleryEntry?.slug, method?.key, Boolean(
await assertExperimentalConnectorSetupEnabled(galleryEntry?.slug, Boolean(
input.reconnectConnectionId && requestedResumeConnection?.status !== "draft"
&& requestedResumeConnection?.config.sourceTemplateKey === galleryEntry?.slug,
));
@@ -13960,7 +13954,7 @@ export function toolAccessService(
): Promise<ToolConnectionHealthCheckResult> {
const connection = await getConnectionRow(connectionId, companyId);
assertSupportedConnection(connection);
await assertExperimentalConnectorSetupEnabled(connection.config.sourceTemplateKey, connection.config.connectionMethodKey, connection.status !== "draft");
await assertExperimentalConnectorSetupEnabled(connection.config.sourceTemplateKey, connection.status !== "draft");
if (connection.status === "archived")
throw conflict("Archived app connections cannot be reconnected");
if (connection.credentialSource === "vercel_connect") {
@@ -14139,7 +14133,7 @@ export function toolAccessService(
): Promise<ToolOAuthStartResult> {
let connection = await getConnectionRow(connectionId, companyId);
assertSupportedConnection(connection);
await assertExperimentalConnectorSetupEnabled(connection.config.sourceTemplateKey, connection.config.connectionMethodKey, connection.status !== "draft");
await assertExperimentalConnectorSetupEnabled(connection.config.sourceTemplateKey, connection.status !== "draft");
if (connection.status === "archived")
throw conflict("Archived app connections cannot start sign in");
const sourceTemplateKey =
@@ -16636,7 +16630,7 @@ export function toolAccessService(
if (!app || app.availability?.available === false)
throw notFound("App not found");
const method = connectionMethodFor(app, methodKey);
await assertExperimentalConnectorSetupEnabled(app.slug, method.key);
await assertExperimentalConnectorSetupEnabled(app.slug);
if (method.transport !== "mcp_remote" || !method.defaults?.serverUrl) {
throw unprocessable(
"This app method does not use a hosted remote MCP endpoint",