Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

revokeConnection

Remove integration with an external service by revoking access for a specific connection in the SourceSync.ai knowledge management platform.

Instructions

Revokes access for a specific connection, removing the integration with the external service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceIdNo
connectionIdYes
tenantIdNo

Implementation Reference

  • Core handler implementation in SourceSyncApiClient: performs HTTP POST to revoke a connection by ID using the configured namespace.
    public async revokeConnection({
      connectionId,
    }: Omit<SourceSyncRevokeConnectionRequest, 'namespaceId'> & {
      connectionId: string
    }): Promise<SourceSyncRevokeConnectionResponse> {
      return this.client
        .url(`/v1/connections/${connectionId}/revoke`)
        .json({
          namespaceId: this.namespaceId,
        } satisfies SourceSyncRevokeConnectionRequest)
        .post()
        .json<SourceSyncRevokeConnectionResponse>()
    }
  • src/index.ts:716-732 (registration)
    MCP server.tool registration for 'revokeConnection' tool, including thin wrapper handler that delegates to SourceSync client.
    server.tool(
      'revokeConnection',
      'Revokes access for a specific connection, removing the integration with the external service.',
      RevokeConnectionSchema.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.revokeConnection({
            connectionId,
          })
        })
      },
    )
  • Zod schema defining input parameters for the revokeConnection tool (namespaceId optional, connectionId required, tenantId optional).
    export const RevokeConnectionSchema = z.object({
      namespaceId: namespaceIdSchema.optional(),
      connectionId: z.string(),
      tenantId: tenantIdSchema,
    })
  • TypeScript type definitions for the SourceSync API revokeConnection request and response.
    export type SourceSyncRevokeConnectionRequest = {
      namespaceId: string
    }
    
    export type SourceSyncRevokeConnectionResponse = 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