@rishibhushan/jenkins-mcp-server 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -261,7 +261,7 @@ function ensureVenv(pythonCmd) {
261
261
 
262
262
  const result = spawnSync(pythonCmd, ['-m', 'venv', venvPath], {
263
263
  cwd: projectRoot,
264
- stdio: 'inherit'
264
+ stdio: ['ignore', 'pipe', 'inherit']
265
265
  });
266
266
 
267
267
  if (result.status !== 0) {
@@ -432,7 +432,7 @@ function installDependencies(venvPath) {
432
432
  '-r', requirementsPath
433
433
  ], {
434
434
  cwd: projectRoot,
435
- stdio: 'inherit'
435
+ stdio: ['ignore', 'pipe', 'inherit']
436
436
  });
437
437
 
438
438
  if (installReqs.status !== 0) {
@@ -511,7 +511,7 @@ function installDependencies(venvPath) {
511
511
 
512
512
  const installReqs = spawnSync(pip, pipArgs, {
513
513
  cwd: projectRoot,
514
- stdio: 'inherit',
514
+ stdio: ['ignore', 'pipe', 'inherit'],
515
515
  env: pipEnv
516
516
  });
517
517
 
@@ -548,7 +548,7 @@ function installDependencies(venvPath) {
548
548
 
549
549
  const installPkg = spawnSync(pip, packageArgs, {
550
550
  cwd: projectRoot,
551
- stdio: 'inherit'
551
+ stdio: ['ignore', 'pipe', 'inherit']
552
552
  });
553
553
 
554
554
  if (installPkg.status !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rishibhushan/jenkins-mcp-server",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "AI-enabled Jenkins automation via Model Context Protocol (MCP)",
5
5
  "main": "bin/jenkins-mcp.js",
6
6
  "bin": {
@@ -1930,17 +1930,28 @@ async def _tool_trigger_multiple_builds_with_progress(client, args):
1930
1930
  async def main():
1931
1931
  """Run the Jenkins MCP server"""
1932
1932
  try:
1933
+ # Add explicit stderr debug
1934
+ print("=== main() entered ===", file=sys.stderr, flush=True)
1935
+
1933
1936
  # Verify settings are configured
1934
1937
  settings = get_settings()
1938
+ print(f"=== Settings verified: {settings.is_configured} ===", file=sys.stderr, flush=True)
1939
+
1935
1940
  if not settings.is_configured:
1936
1941
  logger.error("Jenkins settings not configured!")
1937
1942
  sys.exit(1)
1938
1943
 
1944
+ print(f"=== About to log startup message ===", file=sys.stderr, flush=True)
1939
1945
  logger.info(f"Starting Jenkins MCP Server v1.0.0")
1940
1946
  logger.info(f"Connected to: {settings.url}")
1947
+ print(f"=== Startup messages logged ===", file=sys.stderr, flush=True)
1941
1948
 
1942
1949
  # Run the server using stdin/stdout streams
1950
+ print("=== About to create stdio_server ===", file=sys.stderr, flush=True)
1943
1951
  async with mcp.server.stdio.stdio_server() as (read_stream, write_stream):
1952
+ print("=== stdio_server created ===", file=sys.stderr, flush=True)
1953
+ print("=== About to call server.run() ===", file=sys.stderr, flush=True)
1954
+
1944
1955
  await server.run(
1945
1956
  read_stream,
1946
1957
  write_stream,
@@ -1953,6 +1964,7 @@ async def main():
1953
1964
  ),
1954
1965
  ),
1955
1966
  )
1967
+ print("=== server.run() completed ===", file=sys.stderr, flush=True)
1956
1968
  except KeyboardInterrupt:
1957
1969
  logger.info("Server stopped by user")
1958
1970
  except Exception as e: