From a1768abc611bbe4ff49af399953ead6b018d5d77 Mon Sep 17 00:00:00 2001 From: Sweets Sweetman Date: Mon, 2 Mar 2026 22:22:42 -0500 Subject: [PATCH 1/2] fix: normalize Composio toolkit slugs to lowercase Composio returns some toolkit slugs in uppercase (e.g., "TIKTOK"). Normalize to lowercase so display name lookups and client-side filtering work consistently. Co-Authored-By: Claude Opus 4.6 --- lib/composio/connectors/getConnectors.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/composio/connectors/getConnectors.ts b/lib/composio/connectors/getConnectors.ts index cf01fd996..7dcbbf320 100644 --- a/lib/composio/connectors/getConnectors.ts +++ b/lib/composio/connectors/getConnectors.ts @@ -40,10 +40,13 @@ export async function getConnectors( const session = await composio.create(accountId); const toolkits = await session.toolkits(); - return toolkits.items.map(toolkit => ({ - slug: toolkit.slug, - name: displayNames[toolkit.slug] || toolkit.name, - isConnected: toolkit.connection?.isActive ?? false, - connectedAccountId: toolkit.connection?.connectedAccount?.id, - })); + return toolkits.items.map(toolkit => { + const slug = toolkit.slug.toLowerCase(); + return { + slug, + name: displayNames[slug] || toolkit.name, + isConnected: toolkit.connection?.isActive ?? false, + connectedAccountId: toolkit.connection?.connectedAccount?.id, + }; + }); } From 9792460a201099ed7e396783783ba21c25aeb150 Mon Sep 17 00:00:00 2001 From: Sweets Sweetman Date: Mon, 2 Mar 2026 22:30:43 -0500 Subject: [PATCH 2/2] fix: explicitly request supported toolkits from Composio session.toolkits() only returns the first 20 toolkits by default, which excluded TikTok. Pass SUPPORTED_TOOLKITS explicitly to composio.create() so we get exactly the connectors we support. Co-Authored-By: Claude Opus 4.6 --- lib/composio/connectors/getConnectors.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/composio/connectors/getConnectors.ts b/lib/composio/connectors/getConnectors.ts index 7dcbbf320..be19f5c06 100644 --- a/lib/composio/connectors/getConnectors.ts +++ b/lib/composio/connectors/getConnectors.ts @@ -10,6 +10,18 @@ export interface ConnectorInfo { connectedAccountId?: string; } +/** + * All toolkit slugs the platform supports. + * Passed explicitly to composio.create() because session.toolkits() + * only returns the first 20 by default. + */ +const SUPPORTED_TOOLKITS = [ + "googlesheets", + "googledrive", + "googledocs", + "tiktok", +]; + /** * Options for getting connectors. */ @@ -37,7 +49,9 @@ export async function getConnectors( const { displayNames = {} } = options; const composio = await getComposioClient(); - const session = await composio.create(accountId); + const session = await composio.create(accountId, { + toolkits: SUPPORTED_TOOLKITS, + }); const toolkits = await session.toolkits(); return toolkits.items.map(toolkit => {