Remove debug logging for API URL construction

This commit is contained in:
simple
2025-04-01 15:16:06 +09:00
parent bb8d553567
commit 74bb384a37

View File

@ -151,13 +151,6 @@ function normalizeGitLabApiUrl(url?: string): string {
// Use the normalizeGitLabApiUrl function to handle various URL formats // Use the normalizeGitLabApiUrl function to handle various URL formats
const GITLAB_API_URL = normalizeGitLabApiUrl(process.env.GITLAB_API_URL || ""); const GITLAB_API_URL = normalizeGitLabApiUrl(process.env.GITLAB_API_URL || "");
// Add debug logging for API URL construction
console.log("=== MCP Server Configuration ===");
console.log(`GITLAB_API_URL = "${GITLAB_API_URL}"`);
console.log(`Example project API URL = "${GITLAB_API_URL}/projects/123"`);
console.log(`Example Notes API URL = "${GITLAB_API_URL}/projects/123/issues/1/notes"`);
console.log("===============================");
if (!GITLAB_PERSONAL_ACCESS_TOKEN) { if (!GITLAB_PERSONAL_ACCESS_TOKEN) {
console.error("GITLAB_PERSONAL_ACCESS_TOKEN environment variable is not set"); console.error("GITLAB_PERSONAL_ACCESS_TOKEN environment variable is not set");
process.exit(1); process.exit(1);