@recapt/mcp 0.0.26 → 0.0.27

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
@@ -1181,7 +1181,7 @@ var updateImprovementRunTool = {
1181
1181
  inputSchema: z27.object({
1182
1182
  run_id: z27.string().describe("The ID of the improvement run to update"),
1183
1183
  status: z27.enum(["running", "completed", "failed", "cancelled"]).optional().describe("New status for the run"),
1184
- title: z27.string().optional().describe("A concise title summarizing what was fixed in this run (e.g., 'Fixed checkout button, improved mobile nav'). Set when completing the run."),
1184
+ title: z27.string().optional().describe("A user-friendly title summarizing what was improved (e.g., 'Fixed checkout responsiveness, improved mobile navigation'). Avoid technical jargon - write for non-developers."),
1185
1185
  phases: z27.array(z27.object({
1186
1186
  name: z27.string(),
1187
1187
  status: z27.enum([
@@ -1576,10 +1576,11 @@ var proposeFixTool = {
1576
1576
  proposed_fix: z32.string().describe("Description of the proposed fix and how it addresses the root cause"),
1577
1577
  code_snippet: z32.string().optional().describe("Suggested code changes (if applicable)"),
1578
1578
  affected_files: z32.array(z32.string()).optional().describe("List of files that need to be modified"),
1579
- confidence: z32.number().min(0).max(1).describe("Confidence level in the fix (0-1). Use <0.7 when uncertain.")
1579
+ confidence: z32.number().min(0).max(1).describe("Confidence level in the fix (0-1). Use <0.7 when uncertain."),
1580
+ title: z32.string().optional().describe("User-friendly title describing the issue from the user's perspective. Example: 'Checkout button unresponsive during payment' instead of 'Dead clicks on .checkout-btn'")
1580
1581
  }),
1581
1582
  handler: async (args) => {
1582
- const { issue_id, diagnosis, proposed_fix, code_snippet, affected_files, confidence } = args;
1583
+ const { issue_id, diagnosis, proposed_fix, code_snippet, affected_files, confidence, title } = args;
1583
1584
  if (!isApiConfigured()) {
1584
1585
  return apiNotConfiguredResult();
1585
1586
  }
@@ -1589,7 +1590,8 @@ var proposeFixTool = {
1589
1590
  proposed_fix,
1590
1591
  code_snippet,
1591
1592
  affected_files,
1592
- confidence
1593
+ confidence,
1594
+ title
1593
1595
  });
1594
1596
  if (error) {
1595
1597
  return errorResult(error);
@@ -1624,7 +1626,8 @@ var listRemediationsTool = {
1624
1626
  "evaluating",
1625
1627
  "succeeded",
1626
1628
  "failed",
1627
- "reverted"
1629
+ "reverted",
1630
+ "deferred"
1628
1631
  ]).optional().describe("Filter by remediation status"),
1629
1632
  issue_id: z32.string().optional().describe("Filter by issue ID"),
1630
1633
  page_path: z32.string().optional().describe("Filter by page path"),
@@ -1743,7 +1746,8 @@ var listRemediationsByStatusTool = {
1743
1746
  "evaluating",
1744
1747
  "succeeded",
1745
1748
  "failed",
1746
- "reverted"
1749
+ "reverted",
1750
+ "deferred"
1747
1751
  ])).describe("List of statuses to filter by")
1748
1752
  }),
1749
1753
  handler: async (args) => {
@@ -1778,6 +1782,34 @@ var getRemediationByPrTool = {
1778
1782
  return successResult(data);
1779
1783
  }
1780
1784
  };
1785
+ var deferIssueTool = {
1786
+ name: "defer_issue",
1787
+ description: "Defer an issue that needs more data before a fix can be proposed. Creates a remediation record with 'deferred' status to track the issue for future revisiting. Use when you understand the problem but lack sufficient data or confidence to propose a fix.",
1788
+ inputSchema: z32.object({
1789
+ issue_id: z32.string().describe("The ID of the issue to defer"),
1790
+ diagnosis: z32.string().describe("Analysis of what you think the problem might be"),
1791
+ deferral_reason: z32.string().describe("Explanation of why the issue cannot be fixed yet"),
1792
+ confidence: z32.number().min(0).max(1).describe("Confidence level in the diagnosis (0-1). Typically low for deferred issues."),
1793
+ affected_files: z32.array(z32.string()).optional().describe("List of files that might need to be modified")
1794
+ }),
1795
+ handler: async (args) => {
1796
+ const { issue_id, diagnosis, deferral_reason, confidence, affected_files } = args;
1797
+ if (!isApiConfigured()) {
1798
+ return apiNotConfiguredResult();
1799
+ }
1800
+ const { data, error } = await apiPost("/remediations/defer", {
1801
+ issue_id,
1802
+ diagnosis,
1803
+ deferral_reason,
1804
+ confidence,
1805
+ affected_files
1806
+ });
1807
+ if (error) {
1808
+ return errorResult(error);
1809
+ }
1810
+ return successResult(data);
1811
+ }
1812
+ };
1781
1813
 
1782
1814
  // ../../libraries/mcp-tools/dist/tools/scanSite.js
1783
1815
  import { z as z33 } from "zod";
@@ -2082,7 +2114,7 @@ var createProposalTool = {
2082
2114
  inputSchema: z37.object({
2083
2115
  issue_id: z37.string().optional().describe("The ID of the related issue (if any)"),
2084
2116
  improvement_run_id: z37.string().optional().describe("The ID of the improvement run creating this proposal"),
2085
- title: z37.string().describe("Short title describing the proposed fix"),
2117
+ title: z37.string().describe("Short user-friendly title describing the issue from the user's perspective (not technical). Example: 'Checkout button appears unresponsive' instead of 'Dead clicks on .checkout-btn'"),
2086
2118
  diagnosis: z37.string().describe("Detailed analysis of the root cause of the issue"),
2087
2119
  proposed_fix: z37.string().describe("Description of the proposed fix and how it addresses the root cause"),
2088
2120
  affected_files: z37.array(z37.string()).optional().describe("List of files that likely need to be modified"),
@@ -2859,6 +2891,7 @@ var allTools = [
2859
2891
  updateRemediationStatusTool,
2860
2892
  listRemediationsByStatusTool,
2861
2893
  getRemediationByPrTool,
2894
+ deferIssueTool,
2862
2895
  // Scan
2863
2896
  scanSiteTool,
2864
2897
  // Search
@@ -882,6 +882,44 @@
882
882
  ]
883
883
  }
884
884
  },
885
+ {
886
+ "name": "defer_issue",
887
+ "description": "Defer an issue that needs more data before a fix can be proposed. Creates a remediation record with 'deferred' status to track the issue for future revisiting.",
888
+ "input_schema": {
889
+ "type": "object",
890
+ "properties": {
891
+ "issue_id": {
892
+ "description": "The ID of the issue to defer",
893
+ "type": "string"
894
+ },
895
+ "diagnosis": {
896
+ "description": "Analysis of what you think the problem might be",
897
+ "type": "string"
898
+ },
899
+ "deferral_reason": {
900
+ "description": "Explanation of why the issue cannot be fixed yet",
901
+ "type": "string"
902
+ },
903
+ "confidence": {
904
+ "description": "Confidence level in the diagnosis (0-1). Typically low for deferred issues.",
905
+ "type": "number"
906
+ },
907
+ "affected_files": {
908
+ "description": "List of files that might need to be modified",
909
+ "type": "array",
910
+ "items": {
911
+ "type": "string"
912
+ }
913
+ }
914
+ },
915
+ "required": [
916
+ "issue_id",
917
+ "diagnosis",
918
+ "deferral_reason",
919
+ "confidence"
920
+ ]
921
+ }
922
+ },
885
923
  {
886
924
  "name": "get_site_knowledge",
887
925
  "description": "Retrieve site-specific learnings including known false positives, intended behaviors, and successful fix patterns.",
@@ -16258,6 +16258,424 @@
16258
16258
  0.101201
16259
16259
  ]
16260
16260
  },
16261
+ {
16262
+ "name": "defer_issue",
16263
+ "description": "Defer an issue that needs more data before a fix can be proposed. Creates a remediation record with 'deferred' status to track the issue for future revisiting.",
16264
+ "category": "remediation",
16265
+ "parameters": {
16266
+ "issue_id": {
16267
+ "type": "string",
16268
+ "required": true,
16269
+ "description": "The ID of the issue to defer"
16270
+ },
16271
+ "diagnosis": {
16272
+ "type": "string",
16273
+ "required": true,
16274
+ "description": "Analysis of what you think the problem might be"
16275
+ },
16276
+ "deferral_reason": {
16277
+ "type": "string",
16278
+ "required": true,
16279
+ "description": "Explanation of why the issue cannot be fixed yet"
16280
+ },
16281
+ "confidence": {
16282
+ "type": "number",
16283
+ "required": true,
16284
+ "description": "Confidence level in the diagnosis (0-1). Typically low for deferred issues."
16285
+ },
16286
+ "affected_files": {
16287
+ "type": "array",
16288
+ "required": false,
16289
+ "description": "List of files that might need to be modified"
16290
+ }
16291
+ },
16292
+ "embedding": [
16293
+ -0.090785,
16294
+ -0.023115,
16295
+ 0.009841,
16296
+ 0.049837,
16297
+ 0.008316,
16298
+ -0.086351,
16299
+ -0.01537,
16300
+ 0.023,
16301
+ -0.059376,
16302
+ 0.023646,
16303
+ 0.064137,
16304
+ 0.04991,
16305
+ -0.003003,
16306
+ 0.021082,
16307
+ -0.026971,
16308
+ 0.01983,
16309
+ -0.058043,
16310
+ 0.019794,
16311
+ -0.056083,
16312
+ 0.02026,
16313
+ -0.01553,
16314
+ 0.023225,
16315
+ -0.044639,
16316
+ 0.158276,
16317
+ -0.074527,
16318
+ -0.046598,
16319
+ 0.011464,
16320
+ 0.037193,
16321
+ -0.019584,
16322
+ -0.04813,
16323
+ 0.091623,
16324
+ 0.085831,
16325
+ -0.059418,
16326
+ -0.035318,
16327
+ 0.027386,
16328
+ 0.112868,
16329
+ 0.005689,
16330
+ 0.024158,
16331
+ 0.02302,
16332
+ -0.024084,
16333
+ 0.03388,
16334
+ -0.008117,
16335
+ -0.068015,
16336
+ -0.043626,
16337
+ 0.022225,
16338
+ -0.006494,
16339
+ 0.040092,
16340
+ 0.051141,
16341
+ -0.032231,
16342
+ 0.054163,
16343
+ 0.037727,
16344
+ 0.025769,
16345
+ -0.060389,
16346
+ 0.005794,
16347
+ 0.032628,
16348
+ -0.020736,
16349
+ 0.020634,
16350
+ -0.010775,
16351
+ -0.097405,
16352
+ 0.042323,
16353
+ -0.004046,
16354
+ 0.015772,
16355
+ 0.014604,
16356
+ 0.024744,
16357
+ -0.060738,
16358
+ 0.051743,
16359
+ 0.021855,
16360
+ -0.024638,
16361
+ 0.032331,
16362
+ 0.09518,
16363
+ 0.033874,
16364
+ 0.030549,
16365
+ -0.102399,
16366
+ -0.036067,
16367
+ -0.001554,
16368
+ -0.001339,
16369
+ -0.051443,
16370
+ 0.047809,
16371
+ -0.05188,
16372
+ -0.013229,
16373
+ 0.031516,
16374
+ -0.000698,
16375
+ 0.012284,
16376
+ -0.027578,
16377
+ 0.060057,
16378
+ -0.089717,
16379
+ 0.037346,
16380
+ -0.015459,
16381
+ 0.060399,
16382
+ -0.015615,
16383
+ 0.00811,
16384
+ -0.003897,
16385
+ 0.10858,
16386
+ 0.001448,
16387
+ -0.063558,
16388
+ 0.08281,
16389
+ 0.014478,
16390
+ -0.060485,
16391
+ -0.021236,
16392
+ 0.023142,
16393
+ -0.034353,
16394
+ -0.031767,
16395
+ -0.007174,
16396
+ -0.000677,
16397
+ -0.018306,
16398
+ -0.042427,
16399
+ 0.031594,
16400
+ 0.003227,
16401
+ -0.118269,
16402
+ -0.037791,
16403
+ 0.028954,
16404
+ 0.045947,
16405
+ 0.075594,
16406
+ -0.041852,
16407
+ 0.03153,
16408
+ 0.044024,
16409
+ -0.020942,
16410
+ 0.022191,
16411
+ 0.028249,
16412
+ -0.093442,
16413
+ 0.097532,
16414
+ 0.017034,
16415
+ 0.02941,
16416
+ -0.023292,
16417
+ 0.023614,
16418
+ -0.03163,
16419
+ 0.009029,
16420
+ 0,
16421
+ -0.014102,
16422
+ -0.02132,
16423
+ -0.072968,
16424
+ -0.019911,
16425
+ 0.069266,
16426
+ 0.004934,
16427
+ 0.029124,
16428
+ 0.043008,
16429
+ -0.027498,
16430
+ -0.01154,
16431
+ 0.077611,
16432
+ 0.011107,
16433
+ 0.017181,
16434
+ -0.104329,
16435
+ -0.026596,
16436
+ -0.014924,
16437
+ -0.028782,
16438
+ 0.141499,
16439
+ -0.035485,
16440
+ 0.039381,
16441
+ 0.050197,
16442
+ -0.110647,
16443
+ -0.036821,
16444
+ 0.004293,
16445
+ 0.110957,
16446
+ 0.065074,
16447
+ -0.004211,
16448
+ 0.002122,
16449
+ -0.004567,
16450
+ -0.053976,
16451
+ 0.041616,
16452
+ 0.035282,
16453
+ 0.064579,
16454
+ -0.013226,
16455
+ 0.001186,
16456
+ 0.002562,
16457
+ 0.015347,
16458
+ -0.040773,
16459
+ -0.053733,
16460
+ -0.016394,
16461
+ -0.010568,
16462
+ 0.086682,
16463
+ -0.102699,
16464
+ 0.07812,
16465
+ 0.095577,
16466
+ -0.0718,
16467
+ -0.046016,
16468
+ 0.005025,
16469
+ -0.00464,
16470
+ -0.010156,
16471
+ 0.062645,
16472
+ 0.043581,
16473
+ 0.000652,
16474
+ -0.043613,
16475
+ -0.09959,
16476
+ -0.098026,
16477
+ -0.001777,
16478
+ -0.092725,
16479
+ -0.017737,
16480
+ -0.038826,
16481
+ 0.099101,
16482
+ -0.053311,
16483
+ -0.017221,
16484
+ -0.048884,
16485
+ 0.031643,
16486
+ -0.043493,
16487
+ 0.022648,
16488
+ 0.023167,
16489
+ 0.028654,
16490
+ -0.039465,
16491
+ -0.03605,
16492
+ 0.024075,
16493
+ 0.025167,
16494
+ -0.009573,
16495
+ 0.021965,
16496
+ -0.058224,
16497
+ -0.014322,
16498
+ -0.016385,
16499
+ -0.030558,
16500
+ -0.023165,
16501
+ 0.039085,
16502
+ -0.104571,
16503
+ -0.053916,
16504
+ 0.022484,
16505
+ -0.041342,
16506
+ -0.026547,
16507
+ 0.062516,
16508
+ 0.080766,
16509
+ -0.031251,
16510
+ -0.077949,
16511
+ -0.039812,
16512
+ 0.020354,
16513
+ -0.039404,
16514
+ -0.02788,
16515
+ 0.095071,
16516
+ 0,
16517
+ -0.019177,
16518
+ -0.054055,
16519
+ -0.04106,
16520
+ 0.121048,
16521
+ 0.018098,
16522
+ -0.012103,
16523
+ 0.050167,
16524
+ 0.062529,
16525
+ 0.06516,
16526
+ -0.067854,
16527
+ -0.142932,
16528
+ -0.065479,
16529
+ 0.03401,
16530
+ 0.018291,
16531
+ 0.00662,
16532
+ 0.017263,
16533
+ -0.084967,
16534
+ -0.084931,
16535
+ -0.040871,
16536
+ 0.068499,
16537
+ -0.006081,
16538
+ 0.028518,
16539
+ 0.01272,
16540
+ 0.040765,
16541
+ -0.061218,
16542
+ 0.051864,
16543
+ -0.053586,
16544
+ 0.012734,
16545
+ 0.050476,
16546
+ -0.033555,
16547
+ -0.012876,
16548
+ -0.03266,
16549
+ -0.036027,
16550
+ -0.034343,
16551
+ 0.031232,
16552
+ -0.045832,
16553
+ -0.026046,
16554
+ -0.045106,
16555
+ -0.022189,
16556
+ 0.052303,
16557
+ 0.148105,
16558
+ 0.053327,
16559
+ -0.096602,
16560
+ 0.082976,
16561
+ 0.051028,
16562
+ -0.050745,
16563
+ 0.017046,
16564
+ -0.052313,
16565
+ 0.026341,
16566
+ -0.008634,
16567
+ -0.026843,
16568
+ -0.020066,
16569
+ -0.000993,
16570
+ 0.039317,
16571
+ 0.038732,
16572
+ -0.013711,
16573
+ 0.006932,
16574
+ -0.05116,
16575
+ -0.066961,
16576
+ 0.088423,
16577
+ -0.022701,
16578
+ 0.037957,
16579
+ 0.091998,
16580
+ -0.041963,
16581
+ 0.030588,
16582
+ -0.013047,
16583
+ 0.014716,
16584
+ -0.00989,
16585
+ 0.051775,
16586
+ 0.026816,
16587
+ 0.063491,
16588
+ 0.03454,
16589
+ -0.064376,
16590
+ 0.020358,
16591
+ 0.085518,
16592
+ 0.02095,
16593
+ -0.082453,
16594
+ -0.063615,
16595
+ -0.040563,
16596
+ 0.160185,
16597
+ -0.003095,
16598
+ -0.01277,
16599
+ 0.053957,
16600
+ 0.03222,
16601
+ -0.01868,
16602
+ -0.008404,
16603
+ 0.022125,
16604
+ 0.021827,
16605
+ 0.021795,
16606
+ -0.035258,
16607
+ 0.008889,
16608
+ -0.068012,
16609
+ -0.015108,
16610
+ 0.025715,
16611
+ -0.067644,
16612
+ 0,
16613
+ -0.083674,
16614
+ 0.012183,
16615
+ -0.020341,
16616
+ 0.034335,
16617
+ 0.089605,
16618
+ -0.040813,
16619
+ 0.001039,
16620
+ 0.010921,
16621
+ -0.049503,
16622
+ -0.096625,
16623
+ 0.008112,
16624
+ -0.048865,
16625
+ 0.023739,
16626
+ 0.043438,
16627
+ 0.062339,
16628
+ -0.024015,
16629
+ 0.023132,
16630
+ 0.076787,
16631
+ -0.062808,
16632
+ -0.019599,
16633
+ -0.027932,
16634
+ 0.046884,
16635
+ -0.029853,
16636
+ -0.069235,
16637
+ 0.013224,
16638
+ 0.009649,
16639
+ 0.063522,
16640
+ 0.114024,
16641
+ 0.001293,
16642
+ -0.055516,
16643
+ 0.031937,
16644
+ -0.031723,
16645
+ 0.137857,
16646
+ 0.054988,
16647
+ 0.006594,
16648
+ -0.009234,
16649
+ 0.018876,
16650
+ 0.099226,
16651
+ -0.025169,
16652
+ -0.048515,
16653
+ -0.038164,
16654
+ 0.079838,
16655
+ -0.036058,
16656
+ 0.045096,
16657
+ -0.01881,
16658
+ -0.082686,
16659
+ -0.100798,
16660
+ -0.079543,
16661
+ 0.043087,
16662
+ -0.038456,
16663
+ -0.027638,
16664
+ -0.014194,
16665
+ 0.023554,
16666
+ 0.090424,
16667
+ -0.005536,
16668
+ -0.032461,
16669
+ -0.011123,
16670
+ -0.008024,
16671
+ -0.007556,
16672
+ -0.035074,
16673
+ 0.017366,
16674
+ -0.043167,
16675
+ -0.001603,
16676
+ 0.050989
16677
+ ]
16678
+ },
16261
16679
  {
16262
16680
  "name": "get_site_knowledge",
16263
16681
  "description": "Retrieve site-specific learnings including known false positives, intended behaviors, and successful fix patterns.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recapt/mcp",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "MCP exposing recapt behavioral intelligence to AI coding agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",