Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

listConnections

Retrieve all active connections within a specific namespace, with optional filtering by connector type like NOTION, GOOGLE_DRIVE, or DROPBOX, for streamlined data integration and management.

Instructions

Lists all connections for the current namespace, optionally filtered by connector type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectorNo
namespaceIdNo
tenantIdNo

Implementation Reference

  • src/index.ts:658-675 (registration)
    Registers the MCP tool 'listConnections' using server.tool, referencing the schema and providing a thin async handler that creates a SourceSync client and calls its listConnections method.
    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, }) }) }, )
  • The core handler logic in SourceSyncApiClient that executes the HTTP GET request to list connections for the namespace, optionally filtered by connector.
    public async listConnections({ connector, }: SourceSyncListConnectionsRequest): Promise<SourceSyncListConnectionsResponse> { return this.client .url('/v1/connections') .query({ namespaceId: this.namespaceId, connector }) .get() .json<SourceSyncListConnectionsResponse>() }
  • 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, })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scmdr/sourcesyncai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server