@model QRRapidoApp.Models.User @{ ViewData["Title"] = "Configurar MCP — QR Rápido"; Layout = "~/Views/Shared/_Layout.cshtml"; var isEn = (ViewBag.Culture as string) == "en"; var activeKey = Model.ApiKeys.FirstOrDefault(k => k.IsActive); var baseUrl = Context.Request.Scheme + "://" + Context.Request.Host; string T(string pt, string en) => isEn ? en : pt; }

@T("Conectar ao MCP", "Connect to MCP")

@T("Configure o QR Rápido no Claude Desktop, n8n ou qualquer HTTP client.", "Set up QR Rápido in Claude Desktop, n8n, or any HTTP client.")

@if (activeKey == null) {
@T("Nenhuma API key ativa encontrada.", "No active API key found.") @T("Criar uma agora →", "Create one now →")
} else {
1
@T("Sua API Key", "Your API Key")

@T("Esta key foi gerada automaticamente. Copie e guarde — ela não será exibida novamente após sair desta página.", "This key was auto-generated. Copy and save it — it won't be shown again after you leave this page.")

@T("Plano:", "Plan:") @(Model.ApiSubscription?.EffectiveTier.ToString() ?? "Free")  ·  @T("Gerenciar todas as keys →", "Manage all keys →")
2
@T("Claude Desktop — config.json", "Claude Desktop — config.json")

@T("Cole em ", "Paste into ") ~/.config/claude/claude_desktop_config.json @T(" (macOS/Linux) ou ", " (macOS/Linux) or ") %APPDATA%\Claude\claude_desktop_config.json @T(" (Windows).", " (Windows).")

{
  "mcpServers": {
    "qrrapido": {
      "command": "qrrapido-mcp",
      "env": {
        "QR_API_KEY": "@activeKey.Prefix•••••••••••••"
      }
    }
  }
}
@T("Reinicie o Claude Desktop após salvar o arquivo.", "Restart Claude Desktop after saving the file.")
3
@T("REST API / n8n / qualquer HTTP client", "REST API / n8n / any HTTP client")

@T("Use o header ", "Use the header ") X-API-Key @T(" em todas as requests.", " in all requests.")

# curl
curl -X POST @baseUrl/api/v1/QRManager/generate \
  -H "X-API-Key: @activeKey.Prefix•••••••••••••" \
  -H "Content-Type: application/json" \
  -d '{"type":"url","content":"https://exemplo.com","outputFormat":"png"}'

# n8n: HTTP Request Node → Header Auth → X-API-Key
@T("Documentação API", "API Docs") @T("Ver planos", "View plans") @T("Gerenciar keys", "Manage keys")
}
@section Scripts { }