bamboo-mcp-server 1.0.9 → 1.0.10

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.
@@ -254,7 +254,7 @@ export class BambooClient {
254
254
  }
255
255
  async getBuildResultWithLogs(buildKey, params) {
256
256
  // First, try to get the result with logEntries (works for job-level keys)
257
- const maxResult = params?.maxLogLines || 100;
257
+ const maxResult = params?.maxLogLines || 1000;
258
258
  const result = await this.request(`/result/${buildKey}?expand=logEntries,stages.stage.results.result&max-result=${maxResult}`);
259
259
  // If logEntries exists and has entries, this is a job result - return directly
260
260
  if (result.logEntries?.logEntry && result.logEntries.logEntry.length > 0) {
@@ -336,9 +336,7 @@ export class BambooClient {
336
336
  const searchParams = new URLSearchParams();
337
337
  if (params?.includeLogs) {
338
338
  searchParams.set('includeLogs', 'true');
339
- if (params?.maxLogLines) {
340
- searchParams.set('max-result', String(params.maxLogLines));
341
- }
339
+ searchParams.set('max-result', String(params?.maxLogLines || 1000));
342
340
  }
343
341
  const query = searchParams.toString();
344
342
  return this.request(`/deploy/result/${deploymentResultId}${query ? `?${query}` : ''}`);
@@ -191,7 +191,7 @@ export function registerBuildTools(server, client) {
191
191
  // Get build result with log content
192
192
  server.tool('bamboo_get_build_result_logs', 'Get build result with actual log content. For plan builds, fetches logs from all jobs. For job builds, returns logs directly.', {
193
193
  build_key: z.string().describe('The build result key - can be plan level (e.g., "PROJ-PLAN-123") or job level (e.g., "PROJ-PLAN-JOB1-123")'),
194
- max_log_lines: z.number().optional().describe('Maximum number of log lines per job (default: 100)'),
194
+ max_log_lines: z.number().optional().describe('Maximum number of log lines per job (default: 1000)'),
195
195
  }, async ({ build_key, max_log_lines }) => {
196
196
  try {
197
197
  const result = await client.getBuildResultWithLogs(build_key, {
@@ -116,7 +116,7 @@ export function registerDeploymentTools(server, client) {
116
116
  server.tool('bamboo_get_deployment_result', 'Get a specific deployment result with optional logs', {
117
117
  deployment_result_id: z.string().describe('The deployment result ID'),
118
118
  include_logs: z.boolean().optional().describe('Include log entries (default: false)'),
119
- max_log_lines: z.number().optional().describe('Maximum number of log lines to return, most recent first (default: 100)'),
119
+ max_log_lines: z.number().optional().describe('Maximum number of log lines to return, most recent first (default: 1000)'),
120
120
  }, async ({ deployment_result_id, include_logs, max_log_lines }) => {
121
121
  try {
122
122
  const result = await client.getDeploymentResult(deployment_result_id, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bamboo-mcp-server",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "MCP server for Atlassian Bamboo",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",