com um clique
baume-deploy
Deploy the Baume MCP server to Fly.io with correct build context
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Deploy the Baume MCP server to Fly.io with correct build context
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
This skill should be used when the user asks about "AIP rules", "API Improvement Proposals", "Google API guidelines", "AIP-158", "AIP-193", or any specific AIP number. Also use when user asks "how should I implement pagination", "what's the right error format", "how do I design a REST API following Google's standards", or needs guidance on errors, pagination, filtering, field masks, long-running operations, or batch operations in REST/OpenAPI APIs.
This skill should be used when the user asks "where is this API endpoint implemented", "find the code for this route", "which file handles this endpoint", "map API findings to code", or needs to correlate OpenAPI spec paths with source code locations. Also use when creating fix plans for code-first API projects (NestJS, Fastify, Express) after running baume-review, or when user mentions "find my NestJS controller", "locate Fastify route handler", "Express route definition".
Use gh CLI for all GitHub operations - issues, PRs, file content, and repository info
| name | baume-deploy |
| description | Deploy the Baume MCP server to Fly.io with correct build context |
You are a deployment assistant for the Baume MCP server on Fly.io.
Use this skill when the user wants to:
The Dockerfile expects the build context to be the repository root, not the mcp-server directory.
The Dockerfile needs access to files outside plugins/baume/mcp-server/:
package.json and package-lock.json at repo root (npm workspace)patches/ directory for patch-packageplugins/baume/openapi-reviewer/ (peer dependency that gets built first)Always run from the repository root:
fly deploy -c plugins/baume/mcp-server/fly.toml -a baume-mcp
# WRONG - breaks Docker context
cd plugins/baume/mcp-server && fly deploy
# WRONG - passing directory instead of config
fly deploy plugins/baume/mcp-server -a baume-mcp
# WRONG - from wrong directory
fly deploy plugins/baume/mcp-server/fly.toml
# Standard deploy from repo root
fly deploy -c plugins/baume/mcp-server/fly.toml -a baume-mcp
# With extended timeout for slow builds
fly deploy -c plugins/baume/mcp-server/fly.toml -a baume-mcp --wait-timeout 300
# Deploy without starting (useful for config changes)
fly deploy -c plugins/baume/mcp-server/fly.toml -a baume-mcp --strategy immediate
# App status
fly status -a baume-mcp
# Recent logs (last 100 lines)
fly logs -a baume-mcp
# Stream logs in real-time
fly logs -a baume-mcp -f
# Health check
curl https://baume-mcp.getlarge.eu/health
# View app info (regions, IPs, etc.)
fly info -a baume-mcp
# List secrets (names only, values hidden)
fly secrets list -a baume-mcp
# Set a secret (triggers deploy immediately)
fly secrets set KEY=value -a baume-mcp
# Set a secret (staged, needs manual deploy)
fly secrets set KEY=value -a baume-mcp --stage
# Set multiple secrets at once
fly secrets set KEY1=value1 KEY2=value2 -a baume-mcp
# Unset a secret
fly secrets unset KEY -a baume-mcp
Key environment variables for the MCP server:
| Variable | Description | Required |
|---|---|---|
AUTH_ENABLED | Enable OAuth2 authentication (true/false) | No |
ORY_PROJECT_URL | Ory Network project URL | If AUTH_ENABLED |
ORY_PROJECT_API_KEY | Ory admin API key for introspection | No |
MCP_RESOURCE_URI | Public URL for audience validation | If AUTH_ENABLED |
VALIDATE_AUDIENCE | JWT audience validation (true/false) | No |
TOKEN_DEBUG | Token validation debug logging | No |
LOG_LEVEL | Logging level (info, debug, warn, error) | No |
ANTHROPIC_API_KEY | For baume-correlate tool | No |
# Interactive shell
fly ssh console -a baume-mcp
# Run a command
fly ssh console -a baume-mcp -C "ls -la /app"
# Check Node.js process
fly ssh console -a baume-mcp -C "ps aux | grep node"
# List machines
fly machines list -a baume-mcp
# Machine status
fly machines status <machine-id> -a baume-mcp
# View machine logs
fly logs -a baume-mcp --instance <instance-id>
If the build fails with "not found" errors for files like:
package-lock.jsonpatches/plugins/baume/openapi-reviewer.npmrcYou're using the wrong build context. Use the correct command above.
# Check recent crashes
fly logs -a baume-mcp | grep -i "error\|crash\|exit"
# Check memory usage
fly status -a baume-mcp
# Check health endpoint response
curl -v https://baume-mcp.getlarge.eu/health
# Check OAuth metadata
curl https://baume-mcp.getlarge.eu/.well-known/oauth-protected-resource
# From repo root
docker build -f plugins/baume/mcp-server/Dockerfile -t baume-mcp .
# Run locally
docker run -p 4000:4000 -e LOG_LEVEL=debug baume-mcp
# Create postgres cluster (if needed)
fly postgres create --name baume-mcp-db --region cdg
# Attach to app (sets DATABASE_URL secret)
fly postgres attach baume-mcp-db -a baume-mcp
# Connect to postgres
fly postgres connect -a baume-mcp-db
# List postgres clusters
fly postgres list
# Create storage bucket (sets AWS_* secrets automatically)
fly storage create -a baume-mcp -n baume-storage
# List buckets
fly storage list -a baume-mcp
# Dashboard (opens browser)
fly storage dashboard -a baume-mcp
# Scale to 2 machines
fly scale count 2 -a baume-mcp
# Scale memory
fly scale memory 512 -a baume-mcp
# Scale to different regions
fly scale count 1 --region cdg -a baume-mcp
fly scale count 1 --region iad -a baume-mcp
# Restart all machines
fly apps restart baume-mcp
# Stop all machines (saves money)
fly scale count 0 -a baume-mcp
# Destroy app (DANGEROUS)
fly apps destroy baume-mcp
fly secrets list -a baume-mcpfly deploy -c plugins/baume/mcp-server/fly.toml -a baume-mcpfly logs -a baume-mcpcurl https://baume-mcp.getlarge.eu/healthcurl https://baume-mcp.getlarge.eu/mcp