@bbearai/mcp-server 0.3.3 → 0.3.4

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-api.js CHANGED
@@ -115,7 +115,7 @@ const tools = [
115
115
  enum: ['new', 'reviewed', 'in_progress', 'resolved', 'closed'],
116
116
  description: 'New status',
117
117
  },
118
- resolution: {
118
+ resolution_notes: {
119
119
  type: 'string',
120
120
  description: 'Resolution notes (optional)',
121
121
  },
@@ -267,7 +267,7 @@ async function handleTool(name, args) {
267
267
  case 'update_report_status':
268
268
  result = await apiRequest(`/reports/${args.report_id}`, 'PATCH', {
269
269
  status: args.status,
270
- resolution: args.resolution,
270
+ resolution_notes: args.resolution_notes,
271
271
  });
272
272
  break;
273
273
  case 'create_bug_report': {
package/dist/index.js CHANGED
@@ -127,7 +127,7 @@ const tools = [
127
127
  enum: ['new', 'triaging', 'confirmed', 'in_progress', 'fixed', 'resolved', 'verified', 'wont_fix', 'duplicate'],
128
128
  description: 'The new status for the report',
129
129
  },
130
- resolution: {
130
+ resolution_notes: {
131
131
  type: 'string',
132
132
  description: 'Optional resolution notes when marking as resolved',
133
133
  },
@@ -880,7 +880,7 @@ const tools = [
880
880
  async function listReports(args) {
881
881
  let query = supabase
882
882
  .from('reports')
883
- .select('id, report_type, severity, status, description, app_context, created_at, tester:testers(name, email)')
883
+ .select('id, report_type, severity, status, description, app_context, created_at, reporter_name, reporter_email, tester:testers(name, email)')
884
884
  .eq('project_id', PROJECT_ID)
885
885
  .order('created_at', { ascending: false })
886
886
  .limit(Math.min(args.limit || 10, 50));
@@ -902,7 +902,7 @@ async function listReports(args) {
902
902
  status: r.status,
903
903
  description: r.description,
904
904
  route: r.app_context?.currentRoute,
905
- reporter: r.tester?.name || 'Anonymous',
905
+ reporter: r.tester?.name || r.reporter_name || 'Anonymous',
906
906
  created_at: r.created_at,
907
907
  })),
908
908
  total: data?.length || 0,
@@ -937,7 +937,10 @@ async function getReport(args) {
937
937
  reporter: data.tester ? {
938
938
  name: data.tester.name,
939
939
  email: data.tester.email,
940
- } : null,
940
+ } : (data.reporter_name ? {
941
+ name: data.reporter_name,
942
+ email: data.reporter_email,
943
+ } : null),
941
944
  track: data.track ? {
942
945
  name: data.track.name,
943
946
  icon: data.track.icon,
@@ -987,8 +990,8 @@ async function updateReportStatus(args) {
987
990
  return { error: 'Invalid report_id format' };
988
991
  }
989
992
  const updates = { status: args.status };
990
- if (args.resolution) {
991
- updates.resolution = args.resolution;
993
+ if (args.resolution_notes) {
994
+ updates.resolution_notes = args.resolution_notes;
992
995
  }
993
996
  const { error } = await supabase
994
997
  .from('reports')
@@ -3157,7 +3160,7 @@ async function markFixedWithCommit(args) {
3157
3160
  const updates = {
3158
3161
  status: 'resolved',
3159
3162
  resolved_at: new Date().toISOString(),
3160
- resolution: args.resolution_notes || `Fixed in commit ${args.commit_sha.slice(0, 7)}`,
3163
+ resolution_notes: args.resolution_notes || `Fixed in commit ${args.commit_sha.slice(0, 7)}`,
3161
3164
  code_context: {
3162
3165
  ...existingContext,
3163
3166
  fix: {
@@ -3387,7 +3390,7 @@ async function createRegressionTest(args) {
3387
3390
  {
3388
3391
  stepNumber: 3,
3389
3392
  action: 'Verify the fix is working',
3390
- expectedResult: report.resolution || 'Feature works as expected',
3393
+ expectedResult: report.resolution_notes || 'Feature works as expected',
3391
3394
  },
3392
3395
  ],
3393
3396
  expected_result: `The bug "${report.title}" should not recur`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbearai/mcp-server",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "MCP server for BugBear - allows Claude Code to query bug reports",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index-api.ts CHANGED
@@ -129,7 +129,7 @@ const tools = [
129
129
  enum: ['new', 'reviewed', 'in_progress', 'resolved', 'closed'],
130
130
  description: 'New status',
131
131
  },
132
- resolution: {
132
+ resolution_notes: {
133
133
  type: 'string',
134
134
  description: 'Resolution notes (optional)',
135
135
  },
@@ -284,7 +284,7 @@ async function handleTool(
284
284
  case 'update_report_status':
285
285
  result = await apiRequest(`/reports/${args.report_id}`, 'PATCH', {
286
286
  status: args.status,
287
- resolution: args.resolution,
287
+ resolution_notes: args.resolution_notes,
288
288
  });
289
289
  break;
290
290
 
package/src/index.ts CHANGED
@@ -144,7 +144,7 @@ const tools = [
144
144
  enum: ['new', 'triaging', 'confirmed', 'in_progress', 'fixed', 'resolved', 'verified', 'wont_fix', 'duplicate'],
145
145
  description: 'The new status for the report',
146
146
  },
147
- resolution: {
147
+ resolution_notes: {
148
148
  type: 'string',
149
149
  description: 'Optional resolution notes when marking as resolved',
150
150
  },
@@ -1024,15 +1024,15 @@ async function searchReports(args: { query?: string; route?: string }) {
1024
1024
  async function updateReportStatus(args: {
1025
1025
  report_id: string;
1026
1026
  status: string;
1027
- resolution?: string;
1027
+ resolution_notes?: string;
1028
1028
  }) {
1029
1029
  if (!isValidUUID(args.report_id)) {
1030
1030
  return { error: 'Invalid report_id format' };
1031
1031
  }
1032
1032
 
1033
1033
  const updates: Record<string, unknown> = { status: args.status };
1034
- if (args.resolution) {
1035
- updates.resolution = args.resolution;
1034
+ if (args.resolution_notes) {
1035
+ updates.resolution_notes = args.resolution_notes;
1036
1036
  }
1037
1037
 
1038
1038
  const { error } = await supabase
@@ -3607,7 +3607,7 @@ async function markFixedWithCommit(args: {
3607
3607
  const updates = {
3608
3608
  status: 'resolved',
3609
3609
  resolved_at: new Date().toISOString(),
3610
- resolution: args.resolution_notes || `Fixed in commit ${args.commit_sha.slice(0, 7)}`,
3610
+ resolution_notes: args.resolution_notes || `Fixed in commit ${args.commit_sha.slice(0, 7)}`,
3611
3611
  code_context: {
3612
3612
  ...existingContext,
3613
3613
  fix: {
@@ -3889,7 +3889,7 @@ async function createRegressionTest(args: {
3889
3889
  {
3890
3890
  stepNumber: 3,
3891
3891
  action: 'Verify the fix is working',
3892
- expectedResult: report.resolution || 'Feature works as expected',
3892
+ expectedResult: report.resolution_notes || 'Feature works as expected',
3893
3893
  },
3894
3894
  ],
3895
3895
  expected_result: `The bug "${report.title}" should not recur`,