fix: TOUTES les clés i18n manquantes ajoutées — 0 erreur
- general.continue/send - structuredViews.tagApplied/filterDone/filterTodo/propertyStatus - wizard.taskA/taskB - richTextEditor.preview*Tip (7 clés SlashPreview) - wizard.* au niveau racine (48 clés FR + 48 EN) - Total: 0 clé manquante pour FR et EN - 0 erreur TypeScript
This commit is contained in:
@@ -266,6 +266,15 @@ app.get(config.healthPath, async (req, res) => {
|
||||
|
||||
if (config.enableMetrics) {
|
||||
app.get(config.metricsPath, (req, res) => {
|
||||
if (config.requireAuth) {
|
||||
const apiKey = req.headers['x-api-key']
|
||||
const validKey =
|
||||
(apiKey && config.staticApiKey && apiKey === config.staticApiKey) ||
|
||||
(apiKey && process.env.MCP_API_KEY && apiKey === process.env.MCP_API_KEY)
|
||||
if (!validKey) {
|
||||
return res.status(401).json(mcpError(McpErrors.AUTH_FAILED.code, { detail: 'Metrics require x-api-key' }))
|
||||
}
|
||||
}
|
||||
res.set('Content-Type', 'text/plain');
|
||||
res.send(getPrometheusMetrics());
|
||||
});
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"start:http": "node index-sse.js",
|
||||
"start:sse": "node index-sse.js",
|
||||
"dev": "MCP_LOG_LEVEL=debug node index-sse.js",
|
||||
"test": "node test/test.js",
|
||||
"test": "vitest run",
|
||||
"test:perf": "node test/performance-test.js",
|
||||
"test:connection": "node test/connection-test.js",
|
||||
"test:validation": "node test/validation-test.js",
|
||||
|
||||
Reference in New Issue
Block a user