chore: revert logging change

This commit is contained in:
Grant McLendon
2025-04-01 16:54:29 -04:00
parent 7be17b7afc
commit 5e93e273f8

View File

@ -2161,15 +2161,6 @@ async function runServer() {
const transport = new StdioServerTransport(); const transport = new StdioServerTransport();
await server.connect(transport); await server.connect(transport);
console.error("GitLab MCP Server running on stdio"); console.error("GitLab MCP Server running on stdio");
if (GITLAB_READ_ONLY_MODE) {
console.error("⚠️ Server running in READ-ONLY mode - write operations are disabled");
console.error(`Available tools: ${readOnlyTools.length}/${allTools.length}`);
}
// For stdio transport, the server is effectively running after connect.
// No need to call server.start() or return a URL.
} catch (error) { } catch (error) {
console.error("Error initializing server:", error); console.error("Error initializing server:", error);
process.exit(1); process.exit(1);