Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

listNamespaces

Retrieve all available namespaces for the current API key and optional tenant ID using this tool, facilitating organized management of resources in SourceSync.ai's knowledge platform.

Instructions

Lists all namespaces available for the current API key and optional tenant ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenantIdNo

Implementation Reference

  • src/index.ts:144-158 (registration)
    Registers the 'listNamespaces' MCP tool with its handler function that delegates to SourceSync client.
    server.tool( 'listNamespaces', 'Lists all namespaces available for the current API key and optional tenant ID.', listNamespacesSchema.shape, async (params: ListNamespacesParams) => { return safeApiCall(async () => { const { tenantId } = params // Create a client with the provided API key const client = createClient({ tenantId }) return await client.listNamespaces() }) }, )
  • The handler function for the listNamespaces tool, which creates a SourceSync client using the provided tenantId and calls client.listNamespaces() wrapped in safeApiCall.
    async (params: ListNamespacesParams) => { return safeApiCall(async () => { const { tenantId } = params // Create a client with the provided API key const client = createClient({ tenantId }) return await client.listNamespaces() })
  • Zod schema defining the input parameters for the listNamespaces tool (optional tenantId).
    export const listNamespacesSchema = z.object({ tenantId: tenantIdSchema, })
  • Implementation of listNamespaces in SourceSyncApiClient: performs a GET request to /v1/namespaces API endpoint.
    public async listNamespaces(): Promise<SourceSyncListNamespacesResponse> { return this.client .url('/v1/namespaces') .get() .json<SourceSyncListNamespacesResponse>() }

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