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. Use this to terminate unwanted or inactive connections securely.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionIdYes
namespaceIdNo
tenantIdNo

Implementation Reference

  • Core handler implementation in SourceSyncApiClient that sends POST request to /v1/connections/{connectionId}/revoke with namespaceId to revoke the connection.
    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', including input schema and thin handler that instantiates SourceSync client and calls its revokeConnection method.
    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: optional namespaceId, required connectionId, optional tenantId.
    export const RevokeConnectionSchema = z.object({ namespaceId: namespaceIdSchema.optional(), connectionId: z.string(), tenantId: tenantIdSchema, })
  • TypeScript type definitions for the SourceSync API request (namespaceId) and response (updated connection) used by the client.
    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