🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

bitbucket-mcp

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-mcp - npm Package Compare versions

Comparing version

to
1.0.3

@@ -8,5 +8,3 @@ #!/usr/bin/env node

import process from "node:process";
// Get package version from package.json
const version = "1.0.2";
// Configuration du logger
// No console logs, only file logging
const logger = winston.createLogger({

@@ -28,3 +26,3 @@ level: process.env.LOG_LEVEL || "info",

name: "bitbucket-mcp",
version,
version: "1.0.2",
}, {

@@ -773,3 +771,3 @@ capabilities: {

logger.info("Bitbucket MCP server running on stdio");
logger.info(`Version: ${version}`);
logger.info(`Version: 1.0.2`);
logger.info(`Using Cloud API: ${this.config.cloudBaseUrl}`);

@@ -793,48 +791,14 @@ if (this.config.baseUrl) {

}
// Check if we're in standalone mode
const isStandalone = process.env.STANDALONE === "true";
// Only display startup messages in standalone mode
if (isStandalone) {
console.log(`Bitbucket MCP v${version}`);
console.log("Started MCP server...");
console.log("Running in standalone mode. Server is ready.");
console.log("Note: This mode is for testing only. No MCP protocol messages will be processed.");
console.log("Use CTRL+C to stop the server.");
// Add some basic server info
console.log(`Base URL: ${process.env.BITBUCKET_URL || "Not configured"}`);
console.log(`Cloud API: ${process.env.BITBUCKET_CLOUD_URL || "https://api.bitbucket.org/2.0"}`);
// Keep the process alive
process.stdin.resume();
// Handle process signals for graceful shutdown
process.on("SIGTERM", () => {
console.log("Received SIGTERM, shutting down");
process.exit(0);
});
process.on("SIGINT", () => {
console.log("Received SIGINT, shutting down");
process.exit(0);
});
}
else {
// Handle process signals for graceful shutdown
process.on("SIGTERM", () => {
logger.info("Received SIGTERM, shutting down");
process.exit(0);
});
process.on("SIGINT", () => {
logger.info("Received SIGINT, shutting down");
process.exit(0);
});
// Handle uncaught exceptions
process.on("uncaughtException", (error) => {
logger.error("Uncaught exception", { error });
process.exit(1);
});
// Run the server
const server = new BitbucketServer();
server.run().catch((error) => {
logger.error("Server error", error);
process.exit(1);
});
}
// No console.log statements in MCP mode
// Handle uncaught exceptions
process.on("uncaughtException", (error) => {
logger.error("Uncaught exception", { error });
process.exit(1);
});
// Run the server
const server = new BitbucketServer();
server.run().catch((error) => {
logger.error("Server error", error);
process.exit(1);
});
//# sourceMappingURL=index.js.map
{
"name": "bitbucket-mcp",
"version": "1.0.2",
"version": "1.0.3",
"description": "Model Context Protocol (MCP) server for Bitbucket Cloud and Server API integration",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet