{
  "server": {
    "name": "context-optimizer-server",
    "version": "1.4.4",
    "description": "Context Optimizer - Advanced MCP Server for Cursor Development with File Search, Content Reading, AST Parsing, Git Diff Analysis, Performance Optimization and Hybrid Search"
  },
  "project": {
    "autoDetect": true
  },
  "tools": {
    "enabled": true,
    "maxResults": 50
  },
  "logging": {
    "level": "info",
    "enabled": true
  },
  "fileSearch": {
    "enabled": true,
    "patterns": [
      "**/*.{ts,tsx,js,jsx}",
      "**/*.{py,java,go,rs}",
      "**/*.{md,txt,json,yaml,yml}",
      "**/*.{sql,css,html}"
    ],
    "excludePatterns": [
      "**/node_modules/**",
      "**/dist/**",
      "**/build/**",
      "**/.git/**",
      "**/coverage/**",
      "**/tmp/**",
      "**/temp/**",
      "**/.cache/**",
      "**/.vscode/**",
      "**/.idea/**",
      "**/vendor/**",
      "**/target/**",
      "**/out/**",
      "**/bin/**",
      "**/obj/**",
      "**/*.log",
      "**/*.backup"
    ],
    "maxResults": 100,
    "budgetTokens": 10000
  },
  "fileContent": {
    "enabled": true,
    "maxFileSize": 200000,
    "excludeExtensions": [".exe", ".dll", ".so", ".dylib", ".bin", ".img", ".iso", ".zip", ".tar", ".gz", ".rar", ".7z", ".mp4", ".avi", ".mov", ".mp3", ".wav", ".flac", ".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff", ".svg", ".ico", ".woff", ".woff2", ".ttf", ".eot", ".otf"]
  },
  "astParsing": {
    "enabled": true,
    "supportedLanguages": ["javascript", "typescript"],
    "maxFileSize": 100000,
    "includeComments": true,
    "includeLocations": true
  },
  "gitDiff": {
    "enabled": true,
    "maxCommits": 10,
    "includeStats": true,
    "supportedFormats": ["unified", "context", "name-only"]
  },
  "performance": {
    "enabled": true,
    "cache": {
      "enabled": true,
      "ttl": 600,
      "maxKeys": 2000
    },
    "parallel": {
      "enabled": true,
      "maxConcurrency": 8
    },
    "memory": {
      "enabled": true,
      "maxMemoryUsage": 209715200
    }
  },
  "hybridSearch": {
    "enabled": true,
    "bm25": {
      "enabled": true,
      "k1": 1.2,
      "b": 0.75,
      "indexPath": "./search-index"
    },
    "vector": {
      "enabled": true,
      "dimensions": 384,
      "similarityThreshold": 0.7,
      "indexPath": "./vector-index"
    },
    "weights": {
      "bm25": 0.6,
      "vector": 0.4
    },
    "autoIndex": true,
    "indexUpdateInterval": 300000
  },
  "contextManagement": {
    "enabled": true,
    "monitoring": {
      "enabled": true,
      "maxContextSize": 200000,
      "warningThreshold": 150000,
      "criticalThreshold": 180000,
      "updateInterval": 1000
    },
    "autoCompression": {
      "enabled": true,
      "threshold": 150000,
      "compressionRatio": 0.7,
      "preserveImportant": true,
      "algorithms": ["summarization", "truncation", "keyword-extraction"]
    },
    "optimizationSuggestions": {
      "enabled": true,
      "analyzeFrequency": "on-demand",
      "suggestionTypes": ["duplicate-removal", "irrelevant-filtering", "priority-ranking"],
      "confidenceThreshold": 0.8
    },
    "historyManagement": {
      "enabled": true,
      "maxHistoryEntries": 100,
      "retentionPeriod": 7,
      "compressionEnabled": true,
      "searchEnabled": true
    }
  },
  "analytics": {
    "enabled": true,
    "metrics": {
      "enabled": true,
      "collectionInterval": 5000,
      "retentionDays": 30,
      "trackContextSize": true,
      "trackCompressionRatio": true,
      "trackOptimizationSuggestions": true,
      "trackHistoryUsage": true
    },
    "dashboard": {
      "enabled": true,
      "updateInterval": 10000,
      "showRealTimeStats": true,
      "showHistoricalTrends": true,
      "showEfficiencyMetrics": true
    },
    "insights": {
      "enabled": true,
      "analyzeFrequency": "on-demand",
      "generateReports": true,
      "suggestImprovements": true,
      "trackPerformance": true
    }
  }
}
