force_sync
Trigger bidirectional synchronization to align local and remote knowledge graph data, ensuring consistency across distributed systems.
Instructions
강제로 양방향 동기화를 수행합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/sync-manager.ts:154-160 (handler)Core handler logic for force_sync: pulls from remote and if successful, pushes changes to remote.async forceSync(): Promise<SyncResult> { const pullResult = await this.pullFromRemote(); if (pullResult.success) { return await this.pushToRemote(); } return pullResult; }
- src/index.ts:697-709 (handler)MCP tool handler that calls syncManager.forceSync() and returns formatted 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/index.ts:338-345 (registration)Tool registration in MCP server tools list, including name, description, and empty input schema.{ name: 'force_sync', description: '강제로 양방향 동기화를 수행합니다', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:341-345 (schema)Input schema for force_sync tool (empty object).inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:408-409 (registration)Dispatch case in tool request handler switch statement.case 'force_sync': return await this.handleForceSync(args);