Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

getConnection

Retrieve connection details by ID to access SourceSync.ai knowledge management platform data sources.

Instructions

Retrieves details for a specific connection by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceIdNo
connectionIdYes
tenantIdNo

Implementation Reference

  • MCP tool registration and handler implementation for 'getConnection'. The handler extracts namespaceId, tenantId, and connectionId from input params, creates a SourceSyncApiClient instance, and calls its getConnection method, wrapped in safeApiCall for standardized error handling and response formatting.
    server.tool( 'getConnection', 'Retrieves details for a specific connection by its ID.', GetConnectionSchema.shape, async (params) => { return safeApiCall(async () => { const { namespaceId, tenantId, connectionId } = params // Create a client with the provided API key const client = createClient({ namespaceId, tenantId }) return await client.getConnection({ connectionId, }) }) }, )
  • Zod schema defining the input shape for the getConnection tool: optional namespaceId and tenantId, required connectionId.
    export const GetConnectionSchema = z.object({ namespaceId: namespaceIdSchema.optional(), connectionId: z.string(), tenantId: tenantIdSchema, })
  • Core API client method that performs the HTTP GET request to /v1/connections/{connectionId} with namespaceId query param to retrieve the connection details from SourceSync API.
    public async getConnection({ connectionId, }: SourceSyncGetConnectionRequest): Promise<SourceSyncGetConnectionResponse> { return this.client .url(`/v1/connections/${connectionId}`) .query({ namespaceId: this.namespaceId }) .get() .json<SourceSyncGetConnectionResponse>() }
  • TypeScript interfaces defining the request (connectionId) and response shape (SourceSyncApiResponse containing SourceSyncConnection) for the internal getConnection API call.
    export type SourceSyncGetConnectionRequest = { connectionId: string } export type SourceSyncGetConnectionResponse = SourceSyncApiResponse<{ connection: SourceSyncConnection }>

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