We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/petekmet/mcp-gcp-datastore'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test.ps1โข2.26 kB
# PowerShell test script for MCP Datastore Server
# This script helps you test the server with your Google Cloud Datastore
param(
[string]$ProjectId,
[string]$CredentialsPath
)
Write-Host "๐งช MCP Datastore Server Test Script" -ForegroundColor Cyan
Write-Host "====================================`n" -ForegroundColor Cyan
# Check if parameters are provided
if (-not $ProjectId) {
$ProjectId = Read-Host "Enter your Google Cloud Project ID"
}
if (-not $CredentialsPath) {
$CredentialsPath = Read-Host "Enter path to your service account key JSON file"
}
# Validate credentials file exists
if (-not (Test-Path $CredentialsPath)) {
Write-Host "โ Error: Credentials file not found at: $CredentialsPath" -ForegroundColor Red
exit 1
}
Write-Host "โ Project ID: $ProjectId" -ForegroundColor Green
Write-Host "โ Credentials: $CredentialsPath" -ForegroundColor Green
Write-Host ""
# Set environment variables
$env:GOOGLE_CLOUD_PROJECT = $ProjectId
$env:GOOGLE_APPLICATION_CREDENTIALS = $CredentialsPath
Write-Host "๐ง Setting environment variables..." -ForegroundColor Yellow
Write-Host " GOOGLE_CLOUD_PROJECT=$env:GOOGLE_CLOUD_PROJECT" -ForegroundColor Gray
Write-Host " GOOGLE_APPLICATION_CREDENTIALS=$env:GOOGLE_APPLICATION_CREDENTIALS" -ForegroundColor Gray
Write-Host ""
# Check if build exists
if (-not (Test-Path "build\index.js")) {
Write-Host "โ ๏ธ Build not found. Running npm run build..." -ForegroundColor Yellow
npm run build
if ($LASTEXITCODE -ne 0) {
Write-Host "โ Build failed!" -ForegroundColor Red
exit 1
}
Write-Host ""
}
Write-Host "๐ Running test client..." -ForegroundColor Yellow
Write-Host ""
# Run the test client
node test-client.js
Write-Host ""
Write-Host "๐ Test completed!" -ForegroundColor Cyan
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Yellow
Write-Host "1. Check your Google Cloud Datastore console" -ForegroundColor White
Write-Host " https://console.cloud.google.com/datastore/entities?project=$ProjectId" -ForegroundColor Gray
Write-Host "2. Look for entities of kind 'TestUser'" -ForegroundColor White
Write-Host "3. If everything worked, configure Claude Desktop using claude_desktop_config.json" -ForegroundColor White