@chinchillaenterprises/mcp-dev-logger 1.1.0 → 2.0.0

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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
4
4
  import { ListToolsRequestSchema, CallToolRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
5
  import { z } from "zod";
6
6
  import { spawn } from "child_process";
7
- import { writeFileSync, readFileSync, existsSync, appendFileSync, copyFileSync, promises as fs } from "fs";
7
+ import { writeFileSync, readFileSync, existsSync, appendFileSync, copyFileSync } from "fs";
8
8
  import { join, resolve } from "path";
9
9
  import { tmpdir } from "os";
10
10
  // Schema definitions
@@ -12,16 +12,23 @@ const StartLogStreamingArgsSchema = z.object({
12
12
  command: z.string().optional().describe("Dev command to run (default: npm run dev)"),
13
13
  outputFile: z.string().optional().describe("File to write logs to (default: dev-server-logs.txt)"),
14
14
  cwd: z.string().optional().describe("Working directory"),
15
- env: z.record(z.string()).optional().describe("Environment variables")
15
+ env: z.record(z.string()).optional().describe("Environment variables"),
16
+ processId: z.string().optional().describe("Custom process ID (auto-generated if not provided)")
17
+ });
18
+ const StopLogStreamingArgsSchema = z.object({
19
+ processId: z.string().optional().describe("Process ID to stop (if not provided, stops all processes)")
16
20
  });
17
21
  const RestartLogStreamingArgsSchema = z.object({
22
+ processId: z.string().describe("Process ID to restart"),
18
23
  clearLogs: z.boolean().optional().describe("Clear logs on restart (default: false)")
19
24
  });
20
25
  const TailLogsArgsSchema = z.object({
26
+ processId: z.string().optional().describe("Process ID to tail logs from (if not provided, tries to find single process)"),
21
27
  lines: z.number().optional().describe("Number of lines to return (default: 50)"),
22
28
  filter: z.string().optional().describe("Grep pattern to filter logs")
23
29
  });
24
30
  const ClearLogsArgsSchema = z.object({
31
+ processId: z.string().optional().describe("Process ID to clear logs for (if not provided, tries to find single process)"),
25
32
  backup: z.boolean().optional().describe("Backup logs before clearing (default: false)")
26
33
  });
27
34
  class DevLoggerServer {
@@ -64,7 +71,8 @@ class DevLoggerServer {
64
71
  cwd: info.cwd,
65
72
  outputFile: info.outputFile,
66
73
  startTime: info.startTime,
67
- pid: info.pid
74
+ pid: info.pid,
75
+ processId: info.processId
68
76
  };
69
77
  }
70
78
  writeFileSync(this.pidFile, JSON.stringify(state, null, 2));
@@ -73,12 +81,37 @@ class DevLoggerServer {
73
81
  // Ignore errors saving state
74
82
  }
75
83
  }
84
+ generateProcessId(command, outputFile) {
85
+ // Create a readable process ID based on command and output file
86
+ const commandPart = command.split(' ')[0].replace(/[^a-zA-Z0-9]/g, '');
87
+ const filePart = outputFile.split('/').pop()?.replace(/[^a-zA-Z0-9]/g, '').replace(/\.(txt|log)$/, '') || 'default';
88
+ return `${commandPart}-${filePart}`;
89
+ }
90
+ findProcessOrDefault(processId) {
91
+ if (processId) {
92
+ return this.activeServers.has(processId) ? processId : null;
93
+ }
94
+ // If no processId provided and only one process running, use that
95
+ const activeIds = Array.from(this.activeServers.keys());
96
+ if (activeIds.length === 1) {
97
+ return activeIds[0];
98
+ }
99
+ return null;
100
+ }
76
101
  killAllProcesses() {
77
102
  for (const [id, info] of this.activeServers) {
78
103
  try {
79
- if (info.process && info.pid) {
80
- // Kill the process group (negative PID) to kill all children
81
- process.kill(-info.pid, 'SIGTERM');
104
+ if (info.process) {
105
+ // Remove all event listeners to prevent memory leaks
106
+ info.process.stdout?.removeAllListeners('data');
107
+ info.process.stderr?.removeAllListeners('data');
108
+ info.process.removeAllListeners('exit');
109
+ info.process.removeAllListeners('error');
110
+ // Kill the process
111
+ if (info.pid) {
112
+ // Kill the process group (negative PID) to kill all children
113
+ process.kill(-info.pid, 'SIGTERM');
114
+ }
82
115
  }
83
116
  }
84
117
  catch (error) {
@@ -100,7 +133,7 @@ class DevLoggerServer {
100
133
  const tools = [
101
134
  {
102
135
  name: "dev_start_log_streaming",
103
- description: "Start development server and stream logs to file",
136
+ description: "Start development server and stream logs to file (supports multiple concurrent processes)",
104
137
  inputSchema: {
105
138
  type: "object",
106
139
  properties: {
@@ -122,37 +155,64 @@ class DevLoggerServer {
122
155
  additionalProperties: {
123
156
  type: "string"
124
157
  }
158
+ },
159
+ processId: {
160
+ type: "string",
161
+ description: "Custom process ID (auto-generated if not provided)"
125
162
  }
126
163
  }
127
164
  }
128
165
  },
129
166
  {
130
- name: "dev_stop_log_streaming",
131
- description: "Stop development server and logging",
167
+ name: "dev_list_processes",
168
+ description: "List all running development processes",
132
169
  inputSchema: {
133
170
  type: "object",
134
171
  properties: {}
135
172
  }
136
173
  },
174
+ {
175
+ name: "dev_stop_log_streaming",
176
+ description: "Stop development server(s) and logging",
177
+ inputSchema: {
178
+ type: "object",
179
+ properties: {
180
+ processId: {
181
+ type: "string",
182
+ description: "Process ID to stop (if not provided, stops all processes)"
183
+ }
184
+ }
185
+ }
186
+ },
137
187
  {
138
188
  name: "dev_restart_log_streaming",
139
- description: "Restart the development server",
189
+ description: "Restart a specific development server",
140
190
  inputSchema: {
141
191
  type: "object",
142
192
  properties: {
193
+ processId: {
194
+ type: "string",
195
+ description: "Process ID to restart"
196
+ },
143
197
  clearLogs: {
144
198
  type: "boolean",
145
199
  description: "Clear logs on restart (default: false)"
146
200
  }
147
- }
201
+ },
202
+ required: ["processId"]
148
203
  }
149
204
  },
150
205
  {
151
206
  name: "dev_get_status",
152
- description: "Get status of development server",
207
+ description: "Get status of development server(s)",
153
208
  inputSchema: {
154
209
  type: "object",
155
- properties: {}
210
+ properties: {
211
+ processId: {
212
+ type: "string",
213
+ description: "Process ID to get status for (if not provided, shows all processes)"
214
+ }
215
+ }
156
216
  }
157
217
  },
158
218
  {
@@ -161,6 +221,10 @@ class DevLoggerServer {
161
221
  inputSchema: {
162
222
  type: "object",
163
223
  properties: {
224
+ processId: {
225
+ type: "string",
226
+ description: "Process ID to tail logs from (if not provided, tries to find single process)"
227
+ },
164
228
  lines: {
165
229
  type: "number",
166
230
  description: "Number of lines to return (default: 50)"
@@ -178,6 +242,10 @@ class DevLoggerServer {
178
242
  inputSchema: {
179
243
  type: "object",
180
244
  properties: {
245
+ processId: {
246
+ type: "string",
247
+ description: "Process ID to clear logs for (if not provided, tries to find single process)"
248
+ },
181
249
  backup: {
182
250
  type: "boolean",
183
251
  description: "Backup logs before clearing (default: false)"
@@ -194,28 +262,22 @@ class DevLoggerServer {
194
262
  switch (name) {
195
263
  case "dev_start_log_streaming": {
196
264
  const validatedArgs = StartLogStreamingArgsSchema.parse(args);
197
- // Kill any existing process first
198
- this.killAllProcesses();
199
- // Wait a moment for processes to die
200
- await new Promise(resolve => setTimeout(resolve, 1000));
201
265
  const command = validatedArgs.command || "npm run dev";
202
- // Create date-based log directory structure
203
- const now = new Date();
204
- const year = now.getFullYear();
205
- const month = String(now.getMonth() + 1).padStart(2, '0');
206
- const day = String(now.getDate()).padStart(2, '0');
207
- const logDir = join('logs', year.toString(), month, day);
208
- // Ensure log directory exists
209
- await fs.mkdir(logDir, { recursive: true });
210
- // If outputFile is provided, use it within the date directory
211
- // Otherwise, use default name
212
- const baseFileName = validatedArgs.outputFile || "dev-server-logs.txt";
213
- const outputFile = resolve(join(logDir, baseFileName.replace(/^logs[\/\\]/, '')));
266
+ const outputFile = resolve(validatedArgs.outputFile || "dev-server-logs.txt");
214
267
  const cwd = resolve(validatedArgs.cwd || process.cwd());
268
+ // Generate or use provided process ID
269
+ let processId = validatedArgs.processId || this.generateProcessId(command, outputFile);
270
+ // Ensure unique process ID
271
+ let counter = 1;
272
+ const originalProcessId = processId;
273
+ while (this.activeServers.has(processId)) {
274
+ processId = `${originalProcessId}-${counter}`;
275
+ counter++;
276
+ }
215
277
  // Parse command into program and args
216
278
  const [program, ...cmdArgs] = command.split(' ');
217
279
  // Create or clear the output file
218
- writeFileSync(outputFile, `[${new Date().toISOString()}] Starting: ${command}\n`);
280
+ writeFileSync(outputFile, `[${new Date().toISOString()}] Starting: ${command} (Process ID: ${processId})\n`);
219
281
  try {
220
282
  // Spawn the process (detached to avoid signal propagation)
221
283
  const devProcess = spawn(program, cmdArgs, {
@@ -224,39 +286,40 @@ class DevLoggerServer {
224
286
  detached: true,
225
287
  stdio: ['ignore', 'pipe', 'pipe']
226
288
  });
227
- const serverId = "default";
228
289
  const serverInfo = {
229
290
  process: devProcess,
230
291
  command: command,
231
292
  cwd: cwd,
232
293
  outputFile: outputFile,
233
294
  startTime: new Date(),
234
- pid: devProcess.pid
295
+ pid: devProcess.pid,
296
+ processId: processId
235
297
  };
236
- this.activeServers.set(serverId, serverInfo);
298
+ this.activeServers.set(processId, serverInfo);
237
299
  // Stream stdout to file
238
300
  devProcess.stdout?.on('data', (data) => {
239
301
  const timestamp = new Date().toISOString();
240
- const logEntry = `[${timestamp}] ${data}`;
302
+ const logEntry = `[${timestamp}] [${processId}] ${data}`;
241
303
  appendFileSync(outputFile, logEntry);
242
304
  });
243
305
  // Stream stderr to file
244
306
  devProcess.stderr?.on('data', (data) => {
245
307
  const timestamp = new Date().toISOString();
246
- const logEntry = `[${timestamp}] [ERROR] ${data}`;
308
+ const logEntry = `[${timestamp}] [${processId}] [ERROR] ${data}`;
247
309
  appendFileSync(outputFile, logEntry);
248
310
  });
249
311
  // Handle process exit
250
312
  devProcess.on('exit', (code, signal) => {
251
313
  const timestamp = new Date().toISOString();
252
- const exitMessage = `[${timestamp}] Process exited with code ${code} and signal ${signal}\n`;
314
+ const exitMessage = `[${timestamp}] [${processId}] Process exited with code ${code} and signal ${signal}\n`;
253
315
  appendFileSync(outputFile, exitMessage);
254
- this.activeServers.delete(serverId);
316
+ this.activeServers.delete(processId);
317
+ this.saveState();
255
318
  });
256
319
  // Handle process errors
257
320
  devProcess.on('error', (error) => {
258
321
  const timestamp = new Date().toISOString();
259
- const errorMessage = `[${timestamp}] Process error: ${error.message}\n`;
322
+ const errorMessage = `[${timestamp}] [${processId}] Process error: ${error.message}\n`;
260
323
  appendFileSync(outputFile, errorMessage);
261
324
  });
262
325
  this.saveState();
@@ -266,12 +329,12 @@ class DevLoggerServer {
266
329
  type: "text",
267
330
  text: JSON.stringify({
268
331
  status: "started",
332
+ processId: processId,
269
333
  pid: devProcess.pid,
270
334
  command: command,
271
335
  cwd: cwd,
272
336
  outputFile: outputFile,
273
- logPath: outputFile.replace(cwd + '/', ''),
274
- message: `Dev server started. Logs streaming to ${outputFile.replace(cwd + '/', '')}`
337
+ message: `Dev server started with process ID: ${processId}. Logs streaming to ${outputFile}`
275
338
  }, null, 2)
276
339
  }
277
340
  ]
@@ -281,27 +344,112 @@ class DevLoggerServer {
281
344
  throw new Error(`Failed to start dev server: ${error instanceof Error ? error.message : String(error)}`);
282
345
  }
283
346
  }
347
+ case "dev_list_processes": {
348
+ const processes = Array.from(this.activeServers.values()).map(info => ({
349
+ processId: info.processId,
350
+ pid: info.pid,
351
+ command: info.command,
352
+ cwd: info.cwd,
353
+ outputFile: info.outputFile,
354
+ startTime: info.startTime,
355
+ uptime: new Date().getTime() - info.startTime.getTime()
356
+ }));
357
+ return {
358
+ content: [
359
+ {
360
+ type: "text",
361
+ text: JSON.stringify({
362
+ status: "success",
363
+ totalProcesses: processes.length,
364
+ processes: processes
365
+ }, null, 2)
366
+ }
367
+ ]
368
+ };
369
+ }
284
370
  case "dev_stop_log_streaming": {
285
- const serverId = "default";
286
- const serverInfo = this.activeServers.get(serverId);
287
- if (!serverInfo) {
288
- return {
289
- content: [
290
- {
291
- type: "text",
292
- text: JSON.stringify({
293
- status: "not_running",
294
- message: "No dev server is currently running"
295
- }, null, 2)
296
- }
297
- ]
298
- };
371
+ const validatedArgs = StopLogStreamingArgsSchema.parse(args);
372
+ if (validatedArgs.processId) {
373
+ // Stop specific process
374
+ const serverInfo = this.activeServers.get(validatedArgs.processId);
375
+ if (!serverInfo) {
376
+ return {
377
+ content: [
378
+ {
379
+ type: "text",
380
+ text: JSON.stringify({
381
+ status: "not_found",
382
+ message: `Process with ID '${validatedArgs.processId}' not found`
383
+ }, null, 2)
384
+ }
385
+ ]
386
+ };
387
+ }
388
+ try {
389
+ // Remove all event listeners to prevent memory leaks
390
+ if (serverInfo.process) {
391
+ serverInfo.process.stdout?.removeAllListeners('data');
392
+ serverInfo.process.stderr?.removeAllListeners('data');
393
+ serverInfo.process.removeAllListeners('exit');
394
+ serverInfo.process.removeAllListeners('error');
395
+ }
396
+ if (serverInfo.pid) {
397
+ process.kill(serverInfo.pid, 'SIGTERM');
398
+ }
399
+ this.activeServers.delete(validatedArgs.processId);
400
+ this.saveState();
401
+ return {
402
+ content: [
403
+ {
404
+ type: "text",
405
+ text: JSON.stringify({
406
+ status: "stopped",
407
+ processId: validatedArgs.processId,
408
+ message: `Process '${validatedArgs.processId}' stopped successfully`
409
+ }, null, 2)
410
+ }
411
+ ]
412
+ };
413
+ }
414
+ catch (error) {
415
+ throw new Error(`Failed to stop process '${validatedArgs.processId}': ${error instanceof Error ? error.message : String(error)}`);
416
+ }
299
417
  }
300
- try {
301
- if (serverInfo.pid) {
302
- process.kill(serverInfo.pid, 'SIGTERM');
418
+ else {
419
+ // Stop all processes
420
+ if (this.activeServers.size === 0) {
421
+ return {
422
+ content: [
423
+ {
424
+ type: "text",
425
+ text: JSON.stringify({
426
+ status: "not_running",
427
+ message: "No dev servers are currently running"
428
+ }, null, 2)
429
+ }
430
+ ]
431
+ };
432
+ }
433
+ const stoppedProcesses = [];
434
+ for (const [processId, serverInfo] of this.activeServers) {
435
+ try {
436
+ // Remove all event listeners to prevent memory leaks
437
+ if (serverInfo.process) {
438
+ serverInfo.process.stdout?.removeAllListeners('data');
439
+ serverInfo.process.stderr?.removeAllListeners('data');
440
+ serverInfo.process.removeAllListeners('exit');
441
+ serverInfo.process.removeAllListeners('error');
442
+ }
443
+ if (serverInfo.pid) {
444
+ process.kill(serverInfo.pid, 'SIGTERM');
445
+ }
446
+ stoppedProcesses.push(processId);
447
+ }
448
+ catch (error) {
449
+ // Continue with other processes even if one fails
450
+ }
303
451
  }
304
- this.activeServers.delete(serverId);
452
+ this.activeServers.clear();
305
453
  this.saveState();
306
454
  return {
307
455
  content: [
@@ -309,28 +457,26 @@ class DevLoggerServer {
309
457
  type: "text",
310
458
  text: JSON.stringify({
311
459
  status: "stopped",
312
- message: "Dev server stopped successfully"
460
+ stoppedProcesses: stoppedProcesses,
461
+ message: `Stopped ${stoppedProcesses.length} processes`
313
462
  }, null, 2)
314
463
  }
315
464
  ]
316
465
  };
317
466
  }
318
- catch (error) {
319
- throw new Error(`Failed to stop dev server: ${error instanceof Error ? error.message : String(error)}`);
320
- }
321
467
  }
322
468
  case "dev_restart_log_streaming": {
323
469
  const validatedArgs = RestartLogStreamingArgsSchema.parse(args);
324
- const serverId = "default";
325
- const serverInfo = this.activeServers.get(serverId);
470
+ const processId = validatedArgs.processId;
471
+ const serverInfo = this.activeServers.get(processId);
326
472
  if (!serverInfo) {
327
473
  return {
328
474
  content: [
329
475
  {
330
476
  type: "text",
331
477
  text: JSON.stringify({
332
- status: "error",
333
- message: "No dev server to restart. Use dev_start_log_streaming first."
478
+ status: "not_found",
479
+ message: `Process with ID '${processId}' not found. Use dev_list_processes to see available processes.`
334
480
  }, null, 2)
335
481
  }
336
482
  ]
@@ -340,6 +486,13 @@ class DevLoggerServer {
340
486
  const { command, cwd, outputFile } = serverInfo;
341
487
  // Stop current process
342
488
  try {
489
+ // Remove all event listeners to prevent memory leaks
490
+ if (serverInfo.process) {
491
+ serverInfo.process.stdout?.removeAllListeners('data');
492
+ serverInfo.process.stderr?.removeAllListeners('data');
493
+ serverInfo.process.removeAllListeners('exit');
494
+ serverInfo.process.removeAllListeners('error');
495
+ }
343
496
  if (serverInfo.pid) {
344
497
  process.kill(serverInfo.pid, 'SIGTERM');
345
498
  }
@@ -351,22 +504,24 @@ class DevLoggerServer {
351
504
  if (validatedArgs.clearLogs && existsSync(outputFile)) {
352
505
  writeFileSync(outputFile, '');
353
506
  }
507
+ // Remove the old server info to ensure complete cleanup
508
+ this.activeServers.delete(processId);
354
509
  // Wait a moment for process to die
355
510
  await new Promise(resolve => setTimeout(resolve, 1000));
356
- // Restart with same configuration
357
- const startArgs = {
358
- command,
359
- outputFile,
360
- cwd
361
- };
362
511
  // Start new process
363
512
  const [program, ...cmdArgs] = command.split(' ');
364
- writeFileSync(outputFile, `[${new Date().toISOString()}] Restarting: ${command}\n`, { flag: 'a' });
513
+ const restartMessage = `[${new Date().toISOString()}] Restarting: ${command} (Process ID: ${processId})\n`;
514
+ if (validatedArgs.clearLogs) {
515
+ writeFileSync(outputFile, restartMessage);
516
+ }
517
+ else {
518
+ appendFileSync(outputFile, restartMessage);
519
+ }
365
520
  const devProcess = spawn(program, cmdArgs, {
366
521
  cwd: cwd,
367
522
  env: process.env,
368
- shell: true,
369
- detached: false
523
+ detached: true,
524
+ stdio: ['ignore', 'pipe', 'pipe']
370
525
  });
371
526
  const newServerInfo = {
372
527
  process: devProcess,
@@ -374,27 +529,35 @@ class DevLoggerServer {
374
529
  cwd: cwd,
375
530
  outputFile: outputFile,
376
531
  startTime: new Date(),
377
- pid: devProcess.pid
532
+ pid: devProcess.pid,
533
+ processId: processId
378
534
  };
379
- this.activeServers.set("default", newServerInfo);
535
+ this.activeServers.set(processId, newServerInfo);
380
536
  // Stream stdout to file
381
537
  devProcess.stdout?.on('data', (data) => {
382
538
  const timestamp = new Date().toISOString();
383
- const logEntry = `[${timestamp}] ${data}`;
539
+ const logEntry = `[${timestamp}] [${processId}] ${data}`;
384
540
  appendFileSync(outputFile, logEntry);
385
541
  });
386
542
  // Stream stderr to file
387
543
  devProcess.stderr?.on('data', (data) => {
388
544
  const timestamp = new Date().toISOString();
389
- const logEntry = `[${timestamp}] [ERROR] ${data}`;
545
+ const logEntry = `[${timestamp}] [${processId}] [ERROR] ${data}`;
390
546
  appendFileSync(outputFile, logEntry);
391
547
  });
392
548
  // Handle process exit
393
549
  devProcess.on('exit', (code, signal) => {
394
550
  const timestamp = new Date().toISOString();
395
- const exitMessage = `[${timestamp}] Process exited with code ${code} and signal ${signal}\n`;
551
+ const exitMessage = `[${timestamp}] [${processId}] Process exited with code ${code} and signal ${signal}\n`;
396
552
  appendFileSync(outputFile, exitMessage);
397
- this.activeServers.delete("default");
553
+ this.activeServers.delete(processId);
554
+ this.saveState();
555
+ });
556
+ // Handle process errors
557
+ devProcess.on('error', (error) => {
558
+ const timestamp = new Date().toISOString();
559
+ const errorMessage = `[${timestamp}] [${processId}] Process error: ${error.message}\n`;
560
+ appendFileSync(outputFile, errorMessage);
398
561
  });
399
562
  this.saveState();
400
563
  return {
@@ -403,62 +566,148 @@ class DevLoggerServer {
403
566
  type: "text",
404
567
  text: JSON.stringify({
405
568
  status: "restarted",
569
+ processId: processId,
406
570
  pid: devProcess.pid,
407
571
  command: command,
408
572
  outputFile: outputFile,
409
- message: "Dev server restarted successfully"
573
+ message: `Process '${processId}' restarted successfully`
410
574
  }, null, 2)
411
575
  }
412
576
  ]
413
577
  };
414
578
  }
415
579
  case "dev_get_status": {
416
- const serverId = "default";
417
- const serverInfo = this.activeServers.get(serverId);
418
- if (!serverInfo) {
580
+ const validatedArgs = { processId: args?.processId };
581
+ if (validatedArgs.processId) {
582
+ // Get status for specific process
583
+ const serverInfo = this.activeServers.get(validatedArgs.processId);
584
+ if (!serverInfo) {
585
+ return {
586
+ content: [
587
+ {
588
+ type: "text",
589
+ text: JSON.stringify({
590
+ status: "not_found",
591
+ message: `Process with ID '${validatedArgs.processId}' not found`
592
+ }, null, 2)
593
+ }
594
+ ]
595
+ };
596
+ }
597
+ const uptime = new Date().getTime() - serverInfo.startTime.getTime();
598
+ const uptimeSeconds = Math.floor(uptime / 1000);
599
+ const uptimeMinutes = Math.floor(uptimeSeconds / 60);
600
+ const uptimeHours = Math.floor(uptimeMinutes / 60);
419
601
  return {
420
602
  content: [
421
603
  {
422
604
  type: "text",
423
605
  text: JSON.stringify({
424
- status: "not_running",
425
- message: "No dev server is currently running"
606
+ status: "running",
607
+ processId: serverInfo.processId,
608
+ pid: serverInfo.pid,
609
+ command: serverInfo.command,
610
+ cwd: serverInfo.cwd,
611
+ outputFile: serverInfo.outputFile,
612
+ startTime: serverInfo.startTime,
613
+ uptime: {
614
+ hours: uptimeHours,
615
+ minutes: uptimeMinutes % 60,
616
+ seconds: uptimeSeconds % 60
617
+ }
426
618
  }, null, 2)
427
619
  }
428
620
  ]
429
621
  };
430
622
  }
431
- const uptime = new Date().getTime() - serverInfo.startTime.getTime();
432
- const uptimeSeconds = Math.floor(uptime / 1000);
433
- const uptimeMinutes = Math.floor(uptimeSeconds / 60);
434
- const uptimeHours = Math.floor(uptimeMinutes / 60);
435
- return {
436
- content: [
437
- {
438
- type: "text",
439
- text: JSON.stringify({
440
- status: "running",
441
- pid: serverInfo.pid,
442
- command: serverInfo.command,
443
- cwd: serverInfo.cwd,
444
- outputFile: serverInfo.outputFile,
445
- startTime: serverInfo.startTime,
446
- uptime: {
447
- hours: uptimeHours,
448
- minutes: uptimeMinutes % 60,
449
- seconds: uptimeSeconds % 60
623
+ else {
624
+ // Get status for all processes
625
+ if (this.activeServers.size === 0) {
626
+ return {
627
+ content: [
628
+ {
629
+ type: "text",
630
+ text: JSON.stringify({
631
+ status: "not_running",
632
+ message: "No dev servers are currently running"
633
+ }, null, 2)
450
634
  }
451
- }, null, 2)
452
- }
453
- ]
454
- };
635
+ ]
636
+ };
637
+ }
638
+ const processes = Array.from(this.activeServers.values()).map(serverInfo => {
639
+ const uptime = new Date().getTime() - serverInfo.startTime.getTime();
640
+ const uptimeSeconds = Math.floor(uptime / 1000);
641
+ const uptimeMinutes = Math.floor(uptimeSeconds / 60);
642
+ const uptimeHours = Math.floor(uptimeMinutes / 60);
643
+ return {
644
+ processId: serverInfo.processId,
645
+ pid: serverInfo.pid,
646
+ command: serverInfo.command,
647
+ cwd: serverInfo.cwd,
648
+ outputFile: serverInfo.outputFile,
649
+ startTime: serverInfo.startTime,
650
+ uptime: {
651
+ hours: uptimeHours,
652
+ minutes: uptimeMinutes % 60,
653
+ seconds: uptimeSeconds % 60
654
+ }
655
+ };
656
+ });
657
+ return {
658
+ content: [
659
+ {
660
+ type: "text",
661
+ text: JSON.stringify({
662
+ status: "running",
663
+ totalProcesses: processes.length,
664
+ processes: processes
665
+ }, null, 2)
666
+ }
667
+ ]
668
+ };
669
+ }
455
670
  }
456
671
  case "dev_tail_logs": {
457
672
  const validatedArgs = TailLogsArgsSchema.parse(args);
458
- const serverId = "default";
459
- const serverInfo = this.activeServers.get(serverId);
460
- // Use the active server's log file if available, otherwise default
461
- const outputFile = serverInfo?.outputFile || "dev-server-logs.txt";
673
+ // Find the process or use the default behavior
674
+ const processId = this.findProcessOrDefault(validatedArgs.processId);
675
+ if (!processId && validatedArgs.processId) {
676
+ return {
677
+ content: [
678
+ {
679
+ type: "text",
680
+ text: JSON.stringify({
681
+ status: "not_found",
682
+ message: `Process with ID '${validatedArgs.processId}' not found`
683
+ }, null, 2)
684
+ }
685
+ ]
686
+ };
687
+ }
688
+ if (!processId && this.activeServers.size > 1) {
689
+ return {
690
+ content: [
691
+ {
692
+ type: "text",
693
+ text: JSON.stringify({
694
+ status: "ambiguous",
695
+ message: "Multiple processes running. Please specify processId or use dev_list_processes to see options.",
696
+ availableProcesses: Array.from(this.activeServers.keys())
697
+ }, null, 2)
698
+ }
699
+ ]
700
+ };
701
+ }
702
+ // Get the output file
703
+ let outputFile;
704
+ if (processId) {
705
+ const serverInfo = this.activeServers.get(processId);
706
+ outputFile = serverInfo.outputFile;
707
+ }
708
+ else {
709
+ outputFile = "dev-server-logs.txt"; // fallback
710
+ }
462
711
  if (!existsSync(outputFile)) {
463
712
  return {
464
713
  content: [
@@ -491,6 +740,7 @@ class DevLoggerServer {
491
740
  type: "text",
492
741
  text: JSON.stringify({
493
742
  status: "success",
743
+ processId: processId || "default",
494
744
  file: outputFile,
495
745
  totalLines: lines.length,
496
746
  filteredLines: filteredLines.length,
@@ -507,10 +757,44 @@ class DevLoggerServer {
507
757
  }
508
758
  case "dev_clear_logs": {
509
759
  const validatedArgs = ClearLogsArgsSchema.parse(args);
510
- const serverId = "default";
511
- const serverInfo = this.activeServers.get(serverId);
512
- // Use the active server's log file if available, otherwise default
513
- const outputFile = serverInfo?.outputFile || "dev-server-logs.txt";
760
+ // Find the process or use the default behavior
761
+ const processId = this.findProcessOrDefault(validatedArgs.processId);
762
+ if (!processId && validatedArgs.processId) {
763
+ return {
764
+ content: [
765
+ {
766
+ type: "text",
767
+ text: JSON.stringify({
768
+ status: "not_found",
769
+ message: `Process with ID '${validatedArgs.processId}' not found`
770
+ }, null, 2)
771
+ }
772
+ ]
773
+ };
774
+ }
775
+ if (!processId && this.activeServers.size > 1) {
776
+ return {
777
+ content: [
778
+ {
779
+ type: "text",
780
+ text: JSON.stringify({
781
+ status: "ambiguous",
782
+ message: "Multiple processes running. Please specify processId or use dev_list_processes to see options.",
783
+ availableProcesses: Array.from(this.activeServers.keys())
784
+ }, null, 2)
785
+ }
786
+ ]
787
+ };
788
+ }
789
+ // Get the output file
790
+ let outputFile;
791
+ if (processId) {
792
+ const serverInfo = this.activeServers.get(processId);
793
+ outputFile = serverInfo.outputFile;
794
+ }
795
+ else {
796
+ outputFile = "dev-server-logs.txt"; // fallback
797
+ }
514
798
  if (!existsSync(outputFile)) {
515
799
  return {
516
800
  content: [
@@ -538,6 +822,7 @@ class DevLoggerServer {
538
822
  type: "text",
539
823
  text: JSON.stringify({
540
824
  status: "success",
825
+ processId: processId || "default",
541
826
  message: `Log file cleared: ${outputFile}`,
542
827
  backup: validatedArgs.backup ? "Created backup" : "No backup created"
543
828
  }, null, 2)
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GAEtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC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O,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC1D,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;AACrC,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chinchillaenterprises/mcp-dev-logger",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "MCP server for capturing and streaming development server output (npm run dev, etc.)",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",