Skip to main content
Glama

force_sync

Trigger bidirectional synchronization to update remote memory data and resolve inconsistencies between local and GitHub repositories.

Instructions

강제로 양방향 동기화를 수행합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

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: {}, }, },
  • 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), }], }; }
  • 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; }
  • 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);

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/YeomYuJun/remote-memory-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server