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.21 KiB
# 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