Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
Install-GitHooks.ps11.81 kB
#!/usr/bin/env pwsh <# .SYNOPSIS Installs git hooks from eng/scripts/git-hooks to .git/hooks .DESCRIPTION This script copies git hook scripts from eng/scripts/git-hooks to .git/hooks and ensures they are executable on all platforms. #> [CmdletBinding()] param() $repoRoot = Resolve-Path (Join-Path $PSScriptRoot "../..") $gitHooksSourceDir = Join-Path $repoRoot "eng/scripts/git-hooks" $gitHooksTargetDir = Join-Path $repoRoot ".git/hooks" # Ensure the .git/hooks directory exists if (-not (Test-Path $gitHooksTargetDir)) { Write-Host "Creating $gitHooksTargetDir directory..." New-Item -Path $gitHooksTargetDir -ItemType Directory -Force | Out-Null } # Copy hook files Write-Host "Copying git hooks from $gitHooksSourceDir to $gitHooksTargetDir..." $hookFiles = Get-ChildItem -Path $gitHooksSourceDir -File foreach ($file in $hookFiles) { $targetFile = Join-Path $gitHooksTargetDir $file.Name # compare contents of the file to see if it needs to be copied if (Test-Path $targetFile) { $sourceContent = Get-Content -Path $file.FullName -Raw $targetContent = Get-Content -Path $targetFile -Raw if ($sourceContent -eq $targetContent) { Write-Host " $($file.Name) up to date" continue } else { Write-Host " Updating $($file.Name) and saving backup to $targetFile.old" # Create a backup of the existing file Move-Item -Path $targetFile -Destination "$targetFile.old" -Force } } else { Write-Host " Adding $($file.Name)" } Copy-Item -Path $file.FullName -Destination $targetFile -Force # Make hook files executable if (!$IsWindows) { Write-Host " Setting executable permission for $($file.Name)..." & chmod +x $targetFile } }

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/Azure/azure-mcp'

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