trakt_get_sync_status
Check the status of ongoing Plex to Trakt sync operations to see if they are active or complete.
Instructions
Check status of ongoing sync operations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/trakt/mcp-functions.ts:395-410 (handler)Main handler for trakt_get_sync_status. Calls syncEngine.getSyncStatus() and returns syncInProgress, syncId, and a human-readable message.
async traktGetSyncStatus(): Promise<Record<string, unknown>> { if (!this.isInitialized) { return { syncInProgress: false, error: 'Trakt client not initialized' }; } const status = this.syncEngine.getSyncStatus(); return { syncInProgress: status.inProgress, syncId: status.syncId, message: status.inProgress ? 'Sync in progress' : 'No active sync' }; } - src/trakt/tool-schemas.ts:75-79 (schema)Schema definition for trakt_get_sync_status with name, description, and empty inputSchema (no parameters needed).
{ name: "trakt_get_sync_status", description: "Check status of ongoing sync operations", inputSchema: { type: "object" as const, properties: {} }, }, - src/trakt/tool-registry.ts:50-52 (registration)Registration of trakt_get_sync_status in the tool registry, wiring it to traktFunctions.traktGetSyncStatus().
registry.register("trakt_get_sync_status", () => traktFunctions.traktGetSyncStatus().then(wrapResponse) ); - src/trakt/sync.ts:319-324 (helper)getSyncStatus() helper on TraktSyncEngine that returns { inProgress, syncId, startedAt } from the engine's internal state.
getSyncStatus(): { inProgress: boolean; syncId: string | null; startedAt?: Date } { return { inProgress: this.syncInProgress, syncId: this.currentSyncId }; }