Skip to main content
Glama
fix_claude_config.ps12.25 kB
# Fix Claude Desktop MCP Configuration $configPath = "$env:APPDATA\Claude\claude_desktop_config.json" $configDir = Split-Path $configPath -Parent Write-Host "Claude Config Path: $configPath" -ForegroundColor Cyan # Ensure directory exists if (-not (Test-Path $configDir)) { New-Item -ItemType Directory -Path $configDir -Force | Out-Null Write-Host "Created config directory" -ForegroundColor Green } # Create proper JSON configuration $config = @{ mcpServers = @{ "inventory-mcp" = @{ command = "C:\Users\aditi\Anaconda3\python.exe" args = @("C:\Users\aditi\Downloads\inventory-mcp-server-master\inventory-mcp-server.py") env = @{ SUPABASE_DB_PASSWORD = "root" } } } } # Convert to JSON with proper formatting $jsonContent = $config | ConvertTo-Json -Depth 10 # Backup existing if it exists if (Test-Path $configPath) { $backup = "$configPath.backup.$(Get-Date -Format 'yyyyMMddHHmmss')" Copy-Item $configPath $backup -Force Write-Host "Backed up existing config to: $backup" -ForegroundColor Yellow } # Write new config try { [System.IO.File]::WriteAllText($configPath, $jsonContent, [System.Text.Encoding]::UTF8) Write-Host "" Write-Host "========================================" -ForegroundColor Green Write-Host "Configuration file updated successfully!" -ForegroundColor Green Write-Host "========================================" -ForegroundColor Green Write-Host "" Write-Host "File location: $configPath" -ForegroundColor Cyan Write-Host "" Write-Host "Configuration content:" -ForegroundColor Yellow Write-Host $jsonContent -ForegroundColor White Write-Host "" Write-Host "IMPORTANT: Restart Claude Desktop completely for changes to take effect!" -ForegroundColor Red Write-Host "" Write-Host "After restart, try asking Claude:" -ForegroundColor Yellow Write-Host " 'List all inventory items'" -ForegroundColor White Write-Host " 'Check stock for LAP-001 at Bengaluru'" -ForegroundColor White } catch { Write-Host "ERROR: Could not write configuration file" -ForegroundColor Red Write-Host $_.Exception.Message -ForegroundColor Red exit 1 }

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/Adiitiir/inventory-mcp-server'

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