@recapt/mcp 0.0.26 → 0.0.28
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 +846 -184
- package/dist/tools/catalog/anthropicToolCatalog.json +242 -1
- package/dist/tools/catalog/toolCatalog.json +4074 -382
- package/package.json +1 -1
|
@@ -846,6 +846,43 @@
|
|
|
846
846
|
]
|
|
847
847
|
}
|
|
848
848
|
},
|
|
849
|
+
{
|
|
850
|
+
"name": "update_remediation_status",
|
|
851
|
+
"description": "Update the status of a remediation record. Use after PR merge to mark as deployed, or after PR close to mark as dismissed.",
|
|
852
|
+
"input_schema": {
|
|
853
|
+
"type": "object",
|
|
854
|
+
"properties": {
|
|
855
|
+
"remediation_id": {
|
|
856
|
+
"description": "The ID of the remediation to update",
|
|
857
|
+
"type": "string"
|
|
858
|
+
},
|
|
859
|
+
"status": {
|
|
860
|
+
"description": "New status: waiting, deployed, or dismissed",
|
|
861
|
+
"type": "string"
|
|
862
|
+
},
|
|
863
|
+
"pr_url": {
|
|
864
|
+
"description": "URL of the associated PR",
|
|
865
|
+
"type": "string"
|
|
866
|
+
},
|
|
867
|
+
"pr_number": {
|
|
868
|
+
"description": "PR number",
|
|
869
|
+
"type": "number"
|
|
870
|
+
},
|
|
871
|
+
"pr_merged_at": {
|
|
872
|
+
"description": "ISO timestamp when PR was merged",
|
|
873
|
+
"type": "string"
|
|
874
|
+
},
|
|
875
|
+
"pr_closed_at": {
|
|
876
|
+
"description": "ISO timestamp when PR was closed",
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": [
|
|
881
|
+
"remediation_id",
|
|
882
|
+
"status"
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
},
|
|
849
886
|
{
|
|
850
887
|
"name": "evaluate_fix",
|
|
851
888
|
"description": "Evaluate if a deployed fix improved metrics. Compares post-deployment metrics to baseline.",
|
|
@@ -882,6 +919,44 @@
|
|
|
882
919
|
]
|
|
883
920
|
}
|
|
884
921
|
},
|
|
922
|
+
{
|
|
923
|
+
"name": "defer_issue",
|
|
924
|
+
"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.",
|
|
925
|
+
"input_schema": {
|
|
926
|
+
"type": "object",
|
|
927
|
+
"properties": {
|
|
928
|
+
"issue_id": {
|
|
929
|
+
"description": "The ID of the issue to defer",
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
"diagnosis": {
|
|
933
|
+
"description": "Analysis of what you think the problem might be",
|
|
934
|
+
"type": "string"
|
|
935
|
+
},
|
|
936
|
+
"deferral_reason": {
|
|
937
|
+
"description": "Explanation of why the issue cannot be fixed yet",
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
"confidence": {
|
|
941
|
+
"description": "Confidence level in the diagnosis (0-1). Typically low for deferred issues.",
|
|
942
|
+
"type": "number"
|
|
943
|
+
},
|
|
944
|
+
"affected_files": {
|
|
945
|
+
"description": "List of files that might need to be modified",
|
|
946
|
+
"type": "array",
|
|
947
|
+
"items": {
|
|
948
|
+
"type": "string"
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"required": [
|
|
953
|
+
"issue_id",
|
|
954
|
+
"diagnosis",
|
|
955
|
+
"deferral_reason",
|
|
956
|
+
"confidence"
|
|
957
|
+
]
|
|
958
|
+
}
|
|
959
|
+
},
|
|
885
960
|
{
|
|
886
961
|
"name": "get_site_knowledge",
|
|
887
962
|
"description": "Retrieve site-specific learnings including known false positives, intended behaviors, and successful fix patterns.",
|
|
@@ -1104,6 +1179,14 @@
|
|
|
1104
1179
|
"remediation_id": {
|
|
1105
1180
|
"description": "ID of the associated remediation record (if any)",
|
|
1106
1181
|
"type": "string"
|
|
1182
|
+
},
|
|
1183
|
+
"page_path": {
|
|
1184
|
+
"description": "Page path where the fix applies (required for auto-creating remediation records when no issue_id is provided)",
|
|
1185
|
+
"type": "string"
|
|
1186
|
+
},
|
|
1187
|
+
"title": {
|
|
1188
|
+
"description": "User-friendly title describing the fix (e.g., 'Add loading state to checkout button')",
|
|
1189
|
+
"type": "string"
|
|
1107
1190
|
}
|
|
1108
1191
|
},
|
|
1109
1192
|
"required": [
|
|
@@ -1187,7 +1270,7 @@
|
|
|
1187
1270
|
},
|
|
1188
1271
|
{
|
|
1189
1272
|
"name": "create_proposal",
|
|
1190
|
-
"description": "Create a fix proposal for audit mode. Proposals are suggestions that developers review and implement manually.
|
|
1273
|
+
"description": "AUDIT MODE ONLY. Create a fix proposal for audit mode. Proposals are suggestions that developers review and implement manually. Do NOT use this in fix mode - use propose_fix instead to create remediations with code changes. Before creating, check list_proposals to avoid duplicates.",
|
|
1191
1274
|
"input_schema": {
|
|
1192
1275
|
"type": "object",
|
|
1193
1276
|
"properties": {
|
|
@@ -1394,5 +1477,163 @@
|
|
|
1394
1477
|
},
|
|
1395
1478
|
"required": []
|
|
1396
1479
|
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "list_repository_files",
|
|
1483
|
+
"description": "List files in a repository directory. Use to discover file structure before reading or modifying files.",
|
|
1484
|
+
"input_schema": {
|
|
1485
|
+
"type": "object",
|
|
1486
|
+
"properties": {
|
|
1487
|
+
"path": {
|
|
1488
|
+
"description": "Directory path (default: root)",
|
|
1489
|
+
"type": "string"
|
|
1490
|
+
},
|
|
1491
|
+
"branch": {
|
|
1492
|
+
"description": "Branch name (default: main)",
|
|
1493
|
+
"type": "string"
|
|
1494
|
+
},
|
|
1495
|
+
"recursive": {
|
|
1496
|
+
"description": "List recursively",
|
|
1497
|
+
"type": "boolean"
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"required": []
|
|
1501
|
+
}
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"name": "get_file_content",
|
|
1505
|
+
"description": "Read file contents from the repository.",
|
|
1506
|
+
"input_schema": {
|
|
1507
|
+
"type": "object",
|
|
1508
|
+
"properties": {
|
|
1509
|
+
"path": {
|
|
1510
|
+
"description": "File path",
|
|
1511
|
+
"type": "string"
|
|
1512
|
+
},
|
|
1513
|
+
"branch": {
|
|
1514
|
+
"description": "Branch name",
|
|
1515
|
+
"type": "string"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"required": [
|
|
1519
|
+
"path"
|
|
1520
|
+
]
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"name": "create_branch",
|
|
1525
|
+
"description": "Create a new branch from an existing branch.",
|
|
1526
|
+
"input_schema": {
|
|
1527
|
+
"type": "object",
|
|
1528
|
+
"properties": {
|
|
1529
|
+
"branch_name": {
|
|
1530
|
+
"description": "New branch name",
|
|
1531
|
+
"type": "string"
|
|
1532
|
+
},
|
|
1533
|
+
"from_branch": {
|
|
1534
|
+
"description": "Source branch (default: main)",
|
|
1535
|
+
"type": "string"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
"required": [
|
|
1539
|
+
"branch_name"
|
|
1540
|
+
]
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "update_file",
|
|
1545
|
+
"description": "Create or update a file in the repository. Commits the change. SHA is auto-fetched for existing files.",
|
|
1546
|
+
"input_schema": {
|
|
1547
|
+
"type": "object",
|
|
1548
|
+
"properties": {
|
|
1549
|
+
"path": {
|
|
1550
|
+
"description": "File path",
|
|
1551
|
+
"type": "string"
|
|
1552
|
+
},
|
|
1553
|
+
"content": {
|
|
1554
|
+
"description": "File content",
|
|
1555
|
+
"type": "string"
|
|
1556
|
+
},
|
|
1557
|
+
"message": {
|
|
1558
|
+
"description": "Commit message",
|
|
1559
|
+
"type": "string"
|
|
1560
|
+
},
|
|
1561
|
+
"branch": {
|
|
1562
|
+
"description": "Target branch",
|
|
1563
|
+
"type": "string"
|
|
1564
|
+
},
|
|
1565
|
+
"sha": {
|
|
1566
|
+
"description": "SHA of the file being replaced (auto-fetched if not provided)",
|
|
1567
|
+
"type": "string"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
"required": [
|
|
1571
|
+
"path",
|
|
1572
|
+
"content",
|
|
1573
|
+
"message",
|
|
1574
|
+
"branch"
|
|
1575
|
+
]
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "create_merge_request",
|
|
1580
|
+
"description": "Create a pull request or merge request.",
|
|
1581
|
+
"input_schema": {
|
|
1582
|
+
"type": "object",
|
|
1583
|
+
"properties": {
|
|
1584
|
+
"title": {
|
|
1585
|
+
"description": "PR/MR title",
|
|
1586
|
+
"type": "string"
|
|
1587
|
+
},
|
|
1588
|
+
"description": {
|
|
1589
|
+
"description": "PR/MR description",
|
|
1590
|
+
"type": "string"
|
|
1591
|
+
},
|
|
1592
|
+
"source_branch": {
|
|
1593
|
+
"description": "Source branch",
|
|
1594
|
+
"type": "string"
|
|
1595
|
+
},
|
|
1596
|
+
"target_branch": {
|
|
1597
|
+
"description": "Target branch",
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": [
|
|
1602
|
+
"title",
|
|
1603
|
+
"description",
|
|
1604
|
+
"source_branch",
|
|
1605
|
+
"target_branch"
|
|
1606
|
+
]
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "check_mr_status",
|
|
1611
|
+
"description": "Check the status of a merge request.",
|
|
1612
|
+
"input_schema": {
|
|
1613
|
+
"type": "object",
|
|
1614
|
+
"properties": {
|
|
1615
|
+
"mr_number": {
|
|
1616
|
+
"description": "MR/PR number",
|
|
1617
|
+
"type": "number"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"required": [
|
|
1621
|
+
"mr_number"
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "list_open_mrs",
|
|
1627
|
+
"description": "List open merge requests in the repository.",
|
|
1628
|
+
"input_schema": {
|
|
1629
|
+
"type": "object",
|
|
1630
|
+
"properties": {
|
|
1631
|
+
"limit": {
|
|
1632
|
+
"description": "Max results",
|
|
1633
|
+
"type": "number"
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
"required": []
|
|
1637
|
+
}
|
|
1397
1638
|
}
|
|
1398
1639
|
]
|