listConnections
Retrieve and filter active data source connections within your namespace to manage document integration from platforms like Notion, Google Drive, and Dropbox.
Instructions
Lists all connections for the current namespace, optionally filtered by connector type.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespaceId | No | ||
| connector | No | ||
| tenantId | No |
Implementation Reference
- src/index.ts:658-675 (registration)MCP tool registration for 'listConnections', including description, input schema, and handler function that wraps SourceSyncApiClient.listConnections()server.tool( 'listConnections', 'Lists all connections for the current namespace, optionally filtered by connector type.', ListConnectionsSchema.shape, async (params: any) => { return safeApiCall(async () => { const { namespaceId, connector, tenantId } = params // Create a client with the provided parameters const client = createClient({ namespaceId, tenantId }) // Call the listConnections method with the connector as enum if provided return await client.listConnections({ connector: connector || undefined, }) }) }, )
- src/sourcesync.ts:260-267 (handler)Core handler logic in SourceSyncApiClient that executes the HTTP GET request to '/v1/connections' with namespaceId and optional connector query parameters.public async listConnections({ connector, }: SourceSyncListConnectionsRequest): Promise<SourceSyncListConnectionsResponse> { return this.client .url('/v1/connections') .query({ namespaceId: this.namespaceId, connector }) .get() .json<SourceSyncListConnectionsResponse>()
- src/schemas.ts:475-479 (schema)Zod schema defining the input parameters for the listConnections tool: optional namespaceId, connector, and tenantId.export const ListConnectionsSchema = z.object({ namespaceId: namespaceIdSchema.optional(), connector: ConnectorEnum.optional(), tenantId: tenantIdSchema, })