force_sync
Trigger bidirectional synchronization to update remote memory data and resolve inconsistencies between local and GitHub repositories.
Instructions
강제로 양방향 동기화를 수행합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:338-345 (registration)MCP tool registration for 'force_sync' including name, description, and empty input schema.{ name: 'force_sync', description: '강제로 양방향 동기화를 수행합니다', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:697-709 (handler)Handler function for the 'force_sync' tool in the MCP server request handler. Calls syncManager.forceSync() and formats the response.private async handleForceSync(args: any) { const result = await this.syncManager.forceSync(); return { content: [{ type: 'text', text: JSON.stringify({ operation: 'force_sync', ...result, }, null, 2), }], }; }
- src/sync-manager.ts:154-160 (handler)Core implementation of force sync: pulls from remote first, then pushes local changes if pull succeeded.async forceSync(): Promise<SyncResult> { const pullResult = await this.pullFromRemote(); if (pullResult.success) { return await this.pushToRemote(); } return pullResult; }
- src/sync-manager.ts:4-9 (schema)Type definition for SyncResult returned by sync operations including forceSync.export interface SyncResult { success: boolean; conflictResolved: boolean; lastSync: string; error?: string; }
- src/index.ts:408-409 (registration)Dispatch case in CallToolRequestHandler that routes 'force_sync' calls to the handler.case 'force_sync': return await this.handleForceSync(args);