Remove debug logging for GitLab API URL construction

This commit is contained in:
simple
2025-04-01 15:17:42 +09:00
parent f6076d3702
commit cd686966ef

View File

@ -60,12 +60,6 @@ function normalizeGitLabApiUrl(url) {
} }
// 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);