fix(gitea): prevent mcp server crash if token is missing

This commit is contained in:
2026-03-03 20:53:47 +01:00
parent b9d0199115
commit ddf896e3f9

View File

@@ -17,8 +17,7 @@ const GITEA_HOST = process.env.GITEA_HOST || "https://git.infra.mintel.me";
const GITEA_ACCESS_TOKEN = process.env.GITEA_ACCESS_TOKEN;
if (!GITEA_ACCESS_TOKEN) {
console.error("Error: GITEA_ACCESS_TOKEN environment variable is required");
process.exit(1);
console.error("Warning: GITEA_ACCESS_TOKEN environment variable is missing. Pipeline tools will return unauthorized errors.");
}
const giteaClient = axios.create({