@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("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.")
@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("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("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