Skip to main content
Glama

faf_bi_sync

Synchronize project documentation across multiple platforms including CLAUDE.md, AGENTS.md, .cursorrules, and GEMINI.md to maintain consistency and enable real-time updates.

Instructions

Bi-directional sync between project.faf and CLAUDE.md. v4.5.0: Also sync to AGENTS.md, .cursorrules, GEMINI.md!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
autoNoEnable automatic synchronization
watchNoStart real-time file watching for changes
forceNoForce overwrite conflicting changes
targetNoSync target: auto (detect existing), specific platform, or all

Implementation Reference

  • Implementation of the faf_bi_sync tool, handling arguments and calling the engine adapter.
    private async handleFafBiSync(args: any): Promise<CallToolResult> {
      const biSyncArgs: string[] = [];
    
      if (args?.auto) {
        biSyncArgs.push('--auto');
      }
      if (args?.watch) {
        biSyncArgs.push('--watch');
      }
      if (args?.force) {
        biSyncArgs.push('--force');
      }
      if (args?.target) {
        biSyncArgs.push(`--target=${args.target}`);
      }
    
      const result = await this.engineAdapter.callEngine('bi-sync', biSyncArgs);
    
      if (!result.success) {
        return {
          content: [{
            type: 'text',
            text: `🔗 Claude FAF Bi-Sync:\n\nFailed to bi-sync: ${result.error}`
          }],
          isError: true
        };
      }
    
      const output = typeof result.data === 'string'
        ? result.data
        : result.data?.output || JSON.stringify(result.data, null, 2);
    
      return {
        content: [{
          type: 'text',
          text: `🔗 Claude FAF Bi-Sync:\n\n${output}`
        }]
      };
    }
  • Tool definition and input schema for faf_bi_sync.
    name: 'faf_bi_sync',
    description: 'Bi-directional sync between project.faf and CLAUDE.md. v4.5.0: Also sync to AGENTS.md, .cursorrules, GEMINI.md!',
    inputSchema: {
      type: 'object',
      properties: {
        auto: { type: 'boolean', description: 'Enable automatic synchronization' },
        watch: { type: 'boolean', description: 'Start real-time file watching for changes' },
        force: { type: 'boolean', description: 'Force overwrite conflicting changes' },
        target: {
          type: 'string',
          enum: ['auto', '.clinerules', '.cursorrules', '.windsurfrules', 'CLAUDE.md', 'all'],
  • Registration/dispatch logic for faf_bi_sync within the tool handler class.
    case 'faf_bi_sync':
      return await this.handleFafBiSync(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/Wolfe-Jam/grok-faf-mcp'

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