@launchdarkly/mcp-server 0.6.1 → 0.6.2
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/FUNCTIONS.md +3 -3
- package/README.md +4 -0
- package/bin/mcp-server.js +498 -75
- package/bin/mcp-server.js.map +21 -9
- package/dist/commonjs/funcs/auditLogListEntries.d.ts +21 -0
- package/dist/commonjs/funcs/auditLogListEntries.d.ts.map +1 -0
- package/dist/commonjs/funcs/auditLogListEntries.js +128 -0
- package/dist/commonjs/funcs/auditLogListEntries.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/auditLogListEntries.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/auditLogListEntries.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/auditLogListEntries.js +64 -0
- package/dist/commonjs/mcp-server/tools/auditLogListEntries.js.map +1 -0
- package/dist/commonjs/models/components/auditlogentrylistingrep.d.ts +93 -0
- package/dist/commonjs/models/components/auditlogentrylistingrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/auditlogentrylistingrep.js +113 -0
- package/dist/commonjs/models/components/auditlogentrylistingrep.js.map +1 -0
- package/dist/commonjs/models/components/auditlogentrylistingrepcollection.d.ts +31 -0
- package/dist/commonjs/models/components/auditlogentrylistingrepcollection.d.ts.map +1 -0
- package/dist/commonjs/models/components/auditlogentrylistingrepcollection.js +71 -0
- package/dist/commonjs/models/components/auditlogentrylistingrepcollection.js.map +1 -0
- package/dist/commonjs/models/components/authorizedappdatarep.d.ts +42 -0
- package/dist/commonjs/models/components/authorizedappdatarep.d.ts.map +1 -0
- package/dist/commonjs/models/components/authorizedappdatarep.js +78 -0
- package/dist/commonjs/models/components/authorizedappdatarep.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +9 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +9 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/memberdatarep.d.ts +42 -0
- package/dist/commonjs/models/components/memberdatarep.d.ts.map +1 -0
- package/dist/commonjs/models/components/memberdatarep.js +78 -0
- package/dist/commonjs/models/components/memberdatarep.js.map +1 -0
- package/dist/commonjs/models/components/parentresourcerep.d.ts +32 -0
- package/dist/commonjs/models/components/parentresourcerep.d.ts.map +1 -0
- package/dist/commonjs/models/components/parentresourcerep.js +72 -0
- package/dist/commonjs/models/components/parentresourcerep.js.map +1 -0
- package/dist/commonjs/models/components/resourceaccess.d.ts +19 -0
- package/dist/commonjs/models/components/resourceaccess.d.ts.map +1 -0
- package/dist/commonjs/models/components/resourceaccess.js +60 -0
- package/dist/commonjs/models/components/resourceaccess.js.map +1 -0
- package/dist/commonjs/models/components/subjectdatarep.d.ts +32 -0
- package/dist/commonjs/models/components/subjectdatarep.d.ts.map +1 -0
- package/dist/commonjs/models/components/subjectdatarep.js +72 -0
- package/dist/commonjs/models/components/subjectdatarep.js.map +1 -0
- package/dist/commonjs/models/components/targetresourcerep.d.ts +32 -0
- package/dist/commonjs/models/components/targetresourcerep.d.ts.map +1 -0
- package/dist/commonjs/models/components/targetresourcerep.js +72 -0
- package/dist/commonjs/models/components/targetresourcerep.js.map +1 -0
- package/dist/commonjs/models/components/tokensummary.d.ts +39 -0
- package/dist/commonjs/models/components/tokensummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/tokensummary.js +78 -0
- package/dist/commonjs/models/components/tokensummary.js.map +1 -0
- package/dist/commonjs/models/operations/getauditlogentries.d.ts +40 -0
- package/dist/commonjs/models/operations/getauditlogentries.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getauditlogentries.js +66 -0
- package/dist/commonjs/models/operations/getauditlogentries.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/auditlog.d.ts +15 -0
- package/dist/commonjs/sdk/auditlog.d.ts.map +1 -0
- package/dist/commonjs/sdk/auditlog.js +24 -0
- package/dist/commonjs/sdk/auditlog.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/auditLogListEntries.d.ts +21 -0
- package/dist/esm/funcs/auditLogListEntries.d.ts.map +1 -0
- package/dist/esm/funcs/auditLogListEntries.js +92 -0
- package/dist/esm/funcs/auditLogListEntries.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/auditLogListEntries.d.ts +8 -0
- package/dist/esm/mcp-server/tools/auditLogListEntries.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/auditLogListEntries.js +28 -0
- package/dist/esm/mcp-server/tools/auditLogListEntries.js.map +1 -0
- package/dist/esm/models/components/auditlogentrylistingrep.d.ts +93 -0
- package/dist/esm/models/components/auditlogentrylistingrep.d.ts.map +1 -0
- package/dist/esm/models/components/auditlogentrylistingrep.js +75 -0
- package/dist/esm/models/components/auditlogentrylistingrep.js.map +1 -0
- package/dist/esm/models/components/auditlogentrylistingrepcollection.d.ts +31 -0
- package/dist/esm/models/components/auditlogentrylistingrepcollection.d.ts.map +1 -0
- package/dist/esm/models/components/auditlogentrylistingrepcollection.js +33 -0
- package/dist/esm/models/components/auditlogentrylistingrepcollection.js.map +1 -0
- package/dist/esm/models/components/authorizedappdatarep.d.ts +42 -0
- package/dist/esm/models/components/authorizedappdatarep.d.ts.map +1 -0
- package/dist/esm/models/components/authorizedappdatarep.js +40 -0
- package/dist/esm/models/components/authorizedappdatarep.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +9 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +9 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/memberdatarep.d.ts +42 -0
- package/dist/esm/models/components/memberdatarep.d.ts.map +1 -0
- package/dist/esm/models/components/memberdatarep.js +40 -0
- package/dist/esm/models/components/memberdatarep.js.map +1 -0
- package/dist/esm/models/components/parentresourcerep.d.ts +32 -0
- package/dist/esm/models/components/parentresourcerep.d.ts.map +1 -0
- package/dist/esm/models/components/parentresourcerep.js +34 -0
- package/dist/esm/models/components/parentresourcerep.js.map +1 -0
- package/dist/esm/models/components/resourceaccess.d.ts +19 -0
- package/dist/esm/models/components/resourceaccess.d.ts.map +1 -0
- package/dist/esm/models/components/resourceaccess.js +22 -0
- package/dist/esm/models/components/resourceaccess.js.map +1 -0
- package/dist/esm/models/components/subjectdatarep.d.ts +32 -0
- package/dist/esm/models/components/subjectdatarep.d.ts.map +1 -0
- package/dist/esm/models/components/subjectdatarep.js +34 -0
- package/dist/esm/models/components/subjectdatarep.js.map +1 -0
- package/dist/esm/models/components/targetresourcerep.d.ts +32 -0
- package/dist/esm/models/components/targetresourcerep.d.ts.map +1 -0
- package/dist/esm/models/components/targetresourcerep.js +34 -0
- package/dist/esm/models/components/targetresourcerep.js.map +1 -0
- package/dist/esm/models/components/tokensummary.d.ts +39 -0
- package/dist/esm/models/components/tokensummary.d.ts.map +1 -0
- package/dist/esm/models/components/tokensummary.js +40 -0
- package/dist/esm/models/components/tokensummary.js.map +1 -0
- package/dist/esm/models/operations/getauditlogentries.d.ts +40 -0
- package/dist/esm/models/operations/getauditlogentries.d.ts.map +1 -0
- package/dist/esm/models/operations/getauditlogentries.js +28 -0
- package/dist/esm/models/operations/getauditlogentries.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/auditlog.d.ts +15 -0
- package/dist/esm/sdk/auditlog.d.ts.map +1 -0
- package/dist/esm/sdk/auditlog.js +20 -0
- package/dist/esm/sdk/auditlog.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/{codeReferencesListRepositories.example.ts → auditLogListEntries.example.ts} +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/auditLogListEntries.ts +192 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/auditLogListEntries.ts +38 -0
- package/src/models/components/auditlogentrylistingrep.ts +210 -0
- package/src/models/components/auditlogentrylistingrepcollection.ts +84 -0
- package/src/models/components/authorizedappdatarep.ts +96 -0
- package/src/models/components/index.ts +9 -0
- package/src/models/components/memberdatarep.ts +92 -0
- package/src/models/components/parentresourcerep.ts +80 -0
- package/src/models/components/resourceaccess.ts +51 -0
- package/src/models/components/subjectdatarep.ts +76 -0
- package/src/models/components/targetresourcerep.ts +80 -0
- package/src/models/components/tokensummary.ts +89 -0
- package/src/models/operations/getauditlogentries.ts +82 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/auditlog.ts +30 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -53672,9 +53672,9 @@ var init_config = __esm(() => {
|
|
|
53672
53672
|
SDK_METADATA = {
|
|
53673
53673
|
language: "typescript",
|
|
53674
53674
|
openapiDocVersion: "2.0",
|
|
53675
|
-
sdkVersion: "0.6.
|
|
53675
|
+
sdkVersion: "0.6.2",
|
|
53676
53676
|
genVersion: "2.845.15",
|
|
53677
|
-
userAgent: "speakeasy-sdk/typescript 0.6.
|
|
53677
|
+
userAgent: "speakeasy-sdk/typescript 0.6.2 2.845.15 2.0 @launchdarkly/mcp-server"
|
|
53678
53678
|
};
|
|
53679
53679
|
});
|
|
53680
53680
|
|
|
@@ -56601,6 +56601,300 @@ var init_approvalsettings = __esm(() => {
|
|
|
56601
56601
|
});
|
|
56602
56602
|
});
|
|
56603
56603
|
|
|
56604
|
+
// src/models/components/link.ts
|
|
56605
|
+
var Link$inboundSchema, Link$outboundSchema;
|
|
56606
|
+
var init_link = __esm(() => {
|
|
56607
|
+
init_v3();
|
|
56608
|
+
Link$inboundSchema = objectType({
|
|
56609
|
+
href: stringType().optional(),
|
|
56610
|
+
type: stringType().optional()
|
|
56611
|
+
});
|
|
56612
|
+
Link$outboundSchema = objectType({
|
|
56613
|
+
href: stringType().optional(),
|
|
56614
|
+
type: stringType().optional()
|
|
56615
|
+
});
|
|
56616
|
+
});
|
|
56617
|
+
|
|
56618
|
+
// src/models/components/authorizedappdatarep.ts
|
|
56619
|
+
var AuthorizedAppDataRep$inboundSchema, AuthorizedAppDataRep$outboundSchema;
|
|
56620
|
+
var init_authorizedappdatarep = __esm(() => {
|
|
56621
|
+
init_v3();
|
|
56622
|
+
init_primitives();
|
|
56623
|
+
init_link();
|
|
56624
|
+
AuthorizedAppDataRep$inboundSchema = objectType({
|
|
56625
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56626
|
+
_id: stringType().optional(),
|
|
56627
|
+
isScim: booleanType().optional(),
|
|
56628
|
+
name: stringType().optional(),
|
|
56629
|
+
maintainerName: stringType().optional()
|
|
56630
|
+
}).transform((v2) => {
|
|
56631
|
+
return remap(v2, {
|
|
56632
|
+
_links: "links",
|
|
56633
|
+
_id: "id"
|
|
56634
|
+
});
|
|
56635
|
+
});
|
|
56636
|
+
AuthorizedAppDataRep$outboundSchema = objectType({
|
|
56637
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56638
|
+
id: stringType().optional(),
|
|
56639
|
+
isScim: booleanType().optional(),
|
|
56640
|
+
name: stringType().optional(),
|
|
56641
|
+
maintainerName: stringType().optional()
|
|
56642
|
+
}).transform((v2) => {
|
|
56643
|
+
return remap(v2, {
|
|
56644
|
+
links: "_links",
|
|
56645
|
+
id: "_id"
|
|
56646
|
+
});
|
|
56647
|
+
});
|
|
56648
|
+
});
|
|
56649
|
+
|
|
56650
|
+
// src/models/components/memberdatarep.ts
|
|
56651
|
+
var MemberDataRep$inboundSchema, MemberDataRep$outboundSchema;
|
|
56652
|
+
var init_memberdatarep = __esm(() => {
|
|
56653
|
+
init_v3();
|
|
56654
|
+
init_primitives();
|
|
56655
|
+
init_link();
|
|
56656
|
+
MemberDataRep$inboundSchema = objectType({
|
|
56657
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56658
|
+
_id: stringType().optional(),
|
|
56659
|
+
email: stringType().optional(),
|
|
56660
|
+
firstName: stringType().optional(),
|
|
56661
|
+
lastName: stringType().optional()
|
|
56662
|
+
}).transform((v2) => {
|
|
56663
|
+
return remap(v2, {
|
|
56664
|
+
_links: "links",
|
|
56665
|
+
_id: "id"
|
|
56666
|
+
});
|
|
56667
|
+
});
|
|
56668
|
+
MemberDataRep$outboundSchema = objectType({
|
|
56669
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56670
|
+
id: stringType().optional(),
|
|
56671
|
+
email: stringType().optional(),
|
|
56672
|
+
firstName: stringType().optional(),
|
|
56673
|
+
lastName: stringType().optional()
|
|
56674
|
+
}).transform((v2) => {
|
|
56675
|
+
return remap(v2, {
|
|
56676
|
+
links: "_links",
|
|
56677
|
+
id: "_id"
|
|
56678
|
+
});
|
|
56679
|
+
});
|
|
56680
|
+
});
|
|
56681
|
+
|
|
56682
|
+
// src/models/components/parentresourcerep.ts
|
|
56683
|
+
var ParentResourceRep$inboundSchema, ParentResourceRep$outboundSchema;
|
|
56684
|
+
var init_parentresourcerep = __esm(() => {
|
|
56685
|
+
init_v3();
|
|
56686
|
+
init_primitives();
|
|
56687
|
+
init_link();
|
|
56688
|
+
ParentResourceRep$inboundSchema = objectType({
|
|
56689
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56690
|
+
name: stringType().optional(),
|
|
56691
|
+
resource: stringType().optional()
|
|
56692
|
+
}).transform((v2) => {
|
|
56693
|
+
return remap(v2, {
|
|
56694
|
+
_links: "links"
|
|
56695
|
+
});
|
|
56696
|
+
});
|
|
56697
|
+
ParentResourceRep$outboundSchema = objectType({
|
|
56698
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56699
|
+
name: stringType().optional(),
|
|
56700
|
+
resource: stringType().optional()
|
|
56701
|
+
}).transform((v2) => {
|
|
56702
|
+
return remap(v2, {
|
|
56703
|
+
links: "_links"
|
|
56704
|
+
});
|
|
56705
|
+
});
|
|
56706
|
+
});
|
|
56707
|
+
|
|
56708
|
+
// src/models/components/resourceaccess.ts
|
|
56709
|
+
var ResourceAccess$inboundSchema, ResourceAccess$outboundSchema;
|
|
56710
|
+
var init_resourceaccess = __esm(() => {
|
|
56711
|
+
init_v3();
|
|
56712
|
+
ResourceAccess$inboundSchema = objectType({
|
|
56713
|
+
action: stringType().optional(),
|
|
56714
|
+
resource: stringType().optional()
|
|
56715
|
+
});
|
|
56716
|
+
ResourceAccess$outboundSchema = objectType({
|
|
56717
|
+
action: stringType().optional(),
|
|
56718
|
+
resource: stringType().optional()
|
|
56719
|
+
});
|
|
56720
|
+
});
|
|
56721
|
+
|
|
56722
|
+
// src/models/components/subjectdatarep.ts
|
|
56723
|
+
var SubjectDataRep$inboundSchema, SubjectDataRep$outboundSchema;
|
|
56724
|
+
var init_subjectdatarep = __esm(() => {
|
|
56725
|
+
init_v3();
|
|
56726
|
+
init_primitives();
|
|
56727
|
+
init_link();
|
|
56728
|
+
SubjectDataRep$inboundSchema = objectType({
|
|
56729
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56730
|
+
name: stringType().optional(),
|
|
56731
|
+
avatarUrl: stringType().optional()
|
|
56732
|
+
}).transform((v2) => {
|
|
56733
|
+
return remap(v2, {
|
|
56734
|
+
_links: "links"
|
|
56735
|
+
});
|
|
56736
|
+
});
|
|
56737
|
+
SubjectDataRep$outboundSchema = objectType({
|
|
56738
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56739
|
+
name: stringType().optional(),
|
|
56740
|
+
avatarUrl: stringType().optional()
|
|
56741
|
+
}).transform((v2) => {
|
|
56742
|
+
return remap(v2, {
|
|
56743
|
+
links: "_links"
|
|
56744
|
+
});
|
|
56745
|
+
});
|
|
56746
|
+
});
|
|
56747
|
+
|
|
56748
|
+
// src/models/components/targetresourcerep.ts
|
|
56749
|
+
var TargetResourceRep$inboundSchema, TargetResourceRep$outboundSchema;
|
|
56750
|
+
var init_targetresourcerep = __esm(() => {
|
|
56751
|
+
init_v3();
|
|
56752
|
+
init_primitives();
|
|
56753
|
+
init_link();
|
|
56754
|
+
TargetResourceRep$inboundSchema = objectType({
|
|
56755
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56756
|
+
name: stringType().optional(),
|
|
56757
|
+
resources: arrayType(stringType()).optional()
|
|
56758
|
+
}).transform((v2) => {
|
|
56759
|
+
return remap(v2, {
|
|
56760
|
+
_links: "links"
|
|
56761
|
+
});
|
|
56762
|
+
});
|
|
56763
|
+
TargetResourceRep$outboundSchema = objectType({
|
|
56764
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56765
|
+
name: stringType().optional(),
|
|
56766
|
+
resources: arrayType(stringType()).optional()
|
|
56767
|
+
}).transform((v2) => {
|
|
56768
|
+
return remap(v2, {
|
|
56769
|
+
links: "_links"
|
|
56770
|
+
});
|
|
56771
|
+
});
|
|
56772
|
+
});
|
|
56773
|
+
|
|
56774
|
+
// src/models/components/tokensummary.ts
|
|
56775
|
+
var TokenSummary$inboundSchema, TokenSummary$outboundSchema;
|
|
56776
|
+
var init_tokensummary = __esm(() => {
|
|
56777
|
+
init_v3();
|
|
56778
|
+
init_primitives();
|
|
56779
|
+
init_link();
|
|
56780
|
+
TokenSummary$inboundSchema = objectType({
|
|
56781
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
56782
|
+
_id: stringType().optional(),
|
|
56783
|
+
name: stringType().optional(),
|
|
56784
|
+
ending: stringType().optional(),
|
|
56785
|
+
serviceToken: booleanType().optional()
|
|
56786
|
+
}).transform((v2) => {
|
|
56787
|
+
return remap(v2, {
|
|
56788
|
+
_links: "links",
|
|
56789
|
+
_id: "id"
|
|
56790
|
+
});
|
|
56791
|
+
});
|
|
56792
|
+
TokenSummary$outboundSchema = objectType({
|
|
56793
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
56794
|
+
id: stringType().optional(),
|
|
56795
|
+
name: stringType().optional(),
|
|
56796
|
+
ending: stringType().optional(),
|
|
56797
|
+
serviceToken: booleanType().optional()
|
|
56798
|
+
}).transform((v2) => {
|
|
56799
|
+
return remap(v2, {
|
|
56800
|
+
links: "_links",
|
|
56801
|
+
id: "_id"
|
|
56802
|
+
});
|
|
56803
|
+
});
|
|
56804
|
+
});
|
|
56805
|
+
|
|
56806
|
+
// src/models/components/auditlogentrylistingrep.ts
|
|
56807
|
+
var AuditLogEntryListingRep$inboundSchema, AuditLogEntryListingRep$outboundSchema;
|
|
56808
|
+
var init_auditlogentrylistingrep = __esm(() => {
|
|
56809
|
+
init_v3();
|
|
56810
|
+
init_primitives();
|
|
56811
|
+
init_authorizedappdatarep();
|
|
56812
|
+
init_link();
|
|
56813
|
+
init_memberdatarep();
|
|
56814
|
+
init_parentresourcerep();
|
|
56815
|
+
init_resourceaccess();
|
|
56816
|
+
init_subjectdatarep();
|
|
56817
|
+
init_targetresourcerep();
|
|
56818
|
+
init_tokensummary();
|
|
56819
|
+
AuditLogEntryListingRep$inboundSchema = objectType({
|
|
56820
|
+
_links: recordType(Link$inboundSchema),
|
|
56821
|
+
_id: stringType(),
|
|
56822
|
+
_accountId: stringType(),
|
|
56823
|
+
date: numberType().int(),
|
|
56824
|
+
accesses: arrayType(ResourceAccess$inboundSchema),
|
|
56825
|
+
kind: stringType(),
|
|
56826
|
+
name: stringType(),
|
|
56827
|
+
description: stringType(),
|
|
56828
|
+
shortDescription: stringType(),
|
|
56829
|
+
comment: stringType().optional(),
|
|
56830
|
+
subject: SubjectDataRep$inboundSchema.optional(),
|
|
56831
|
+
member: MemberDataRep$inboundSchema.optional(),
|
|
56832
|
+
token: TokenSummary$inboundSchema.optional(),
|
|
56833
|
+
app: AuthorizedAppDataRep$inboundSchema.optional(),
|
|
56834
|
+
titleVerb: stringType().optional(),
|
|
56835
|
+
title: stringType().optional(),
|
|
56836
|
+
target: TargetResourceRep$inboundSchema.optional(),
|
|
56837
|
+
parent: ParentResourceRep$inboundSchema.optional()
|
|
56838
|
+
}).transform((v2) => {
|
|
56839
|
+
return remap(v2, {
|
|
56840
|
+
_links: "links",
|
|
56841
|
+
_id: "id",
|
|
56842
|
+
_accountId: "accountId"
|
|
56843
|
+
});
|
|
56844
|
+
});
|
|
56845
|
+
AuditLogEntryListingRep$outboundSchema = objectType({
|
|
56846
|
+
links: recordType(Link$outboundSchema),
|
|
56847
|
+
id: stringType(),
|
|
56848
|
+
accountId: stringType(),
|
|
56849
|
+
date: numberType().int(),
|
|
56850
|
+
accesses: arrayType(ResourceAccess$outboundSchema),
|
|
56851
|
+
kind: stringType(),
|
|
56852
|
+
name: stringType(),
|
|
56853
|
+
description: stringType(),
|
|
56854
|
+
shortDescription: stringType(),
|
|
56855
|
+
comment: stringType().optional(),
|
|
56856
|
+
subject: SubjectDataRep$outboundSchema.optional(),
|
|
56857
|
+
member: MemberDataRep$outboundSchema.optional(),
|
|
56858
|
+
token: TokenSummary$outboundSchema.optional(),
|
|
56859
|
+
app: AuthorizedAppDataRep$outboundSchema.optional(),
|
|
56860
|
+
titleVerb: stringType().optional(),
|
|
56861
|
+
title: stringType().optional(),
|
|
56862
|
+
target: TargetResourceRep$outboundSchema.optional(),
|
|
56863
|
+
parent: ParentResourceRep$outboundSchema.optional()
|
|
56864
|
+
}).transform((v2) => {
|
|
56865
|
+
return remap(v2, {
|
|
56866
|
+
links: "_links",
|
|
56867
|
+
id: "_id",
|
|
56868
|
+
accountId: "_accountId"
|
|
56869
|
+
});
|
|
56870
|
+
});
|
|
56871
|
+
});
|
|
56872
|
+
|
|
56873
|
+
// src/models/components/auditlogentrylistingrepcollection.ts
|
|
56874
|
+
var AuditLogEntryListingRepCollection$inboundSchema, AuditLogEntryListingRepCollection$outboundSchema;
|
|
56875
|
+
var init_auditlogentrylistingrepcollection = __esm(() => {
|
|
56876
|
+
init_v3();
|
|
56877
|
+
init_primitives();
|
|
56878
|
+
init_auditlogentrylistingrep();
|
|
56879
|
+
init_link();
|
|
56880
|
+
AuditLogEntryListingRepCollection$inboundSchema = objectType({
|
|
56881
|
+
items: arrayType(AuditLogEntryListingRep$inboundSchema),
|
|
56882
|
+
_links: recordType(Link$inboundSchema)
|
|
56883
|
+
}).transform((v2) => {
|
|
56884
|
+
return remap(v2, {
|
|
56885
|
+
_links: "links"
|
|
56886
|
+
});
|
|
56887
|
+
});
|
|
56888
|
+
AuditLogEntryListingRepCollection$outboundSchema = objectType({
|
|
56889
|
+
items: arrayType(AuditLogEntryListingRep$outboundSchema),
|
|
56890
|
+
links: recordType(Link$outboundSchema)
|
|
56891
|
+
}).transform((v2) => {
|
|
56892
|
+
return remap(v2, {
|
|
56893
|
+
links: "_links"
|
|
56894
|
+
});
|
|
56895
|
+
});
|
|
56896
|
+
});
|
|
56897
|
+
|
|
56604
56898
|
// src/models/components/hunkrep.ts
|
|
56605
56899
|
var HunkRep$inboundSchema, HunkRep$outboundSchema;
|
|
56606
56900
|
var init_hunkrep = __esm(() => {
|
|
@@ -56757,20 +57051,6 @@ var init_defaults = __esm(() => {
|
|
|
56757
57051
|
});
|
|
56758
57052
|
});
|
|
56759
57053
|
|
|
56760
|
-
// src/models/components/link.ts
|
|
56761
|
-
var Link$inboundSchema, Link$outboundSchema;
|
|
56762
|
-
var init_link = __esm(() => {
|
|
56763
|
-
init_v3();
|
|
56764
|
-
Link$inboundSchema = objectType({
|
|
56765
|
-
href: stringType().optional(),
|
|
56766
|
-
type: stringType().optional()
|
|
56767
|
-
});
|
|
56768
|
-
Link$outboundSchema = objectType({
|
|
56769
|
-
href: stringType().optional(),
|
|
56770
|
-
type: stringType().optional()
|
|
56771
|
-
});
|
|
56772
|
-
});
|
|
56773
|
-
|
|
56774
57054
|
// src/models/components/environment.ts
|
|
56775
57055
|
var Environment$inboundSchema, Environment$outboundSchema;
|
|
56776
57056
|
var init_environment = __esm(() => {
|
|
@@ -57984,6 +58264,9 @@ var init_components = __esm(() => {
|
|
|
57984
58264
|
init_aiconfigvariationpost();
|
|
57985
58265
|
init_aiconfigvariationsresponse();
|
|
57986
58266
|
init_approvalsettings();
|
|
58267
|
+
init_auditlogentrylistingrep();
|
|
58268
|
+
init_auditlogentrylistingrepcollection();
|
|
58269
|
+
init_authorizedappdatarep();
|
|
57987
58270
|
init_branchrep();
|
|
57988
58271
|
init_clause();
|
|
57989
58272
|
init_clientsideavailability();
|
|
@@ -58015,6 +58298,7 @@ var init_components = __esm(() => {
|
|
|
58015
58298
|
init_legacyexperimentrep();
|
|
58016
58299
|
init_link();
|
|
58017
58300
|
init_maintainerteam();
|
|
58301
|
+
init_memberdatarep();
|
|
58018
58302
|
init_membersummary();
|
|
58019
58303
|
init_message();
|
|
58020
58304
|
init_metricdatasourcerefrep();
|
|
@@ -58025,16 +58309,21 @@ var init_components = __esm(() => {
|
|
|
58025
58309
|
init_paginatedlinks();
|
|
58026
58310
|
init_parentandselflinks();
|
|
58027
58311
|
init_parentlink();
|
|
58312
|
+
init_parentresourcerep();
|
|
58028
58313
|
init_patchoperation();
|
|
58029
58314
|
init_patchwithcomment();
|
|
58030
58315
|
init_prerequisite();
|
|
58031
58316
|
init_referencerep();
|
|
58032
58317
|
init_repositorycollectionrep();
|
|
58033
58318
|
init_repositoryrep();
|
|
58319
|
+
init_resourceaccess();
|
|
58034
58320
|
init_rollout();
|
|
58035
58321
|
init_rule();
|
|
58036
58322
|
init_security2();
|
|
58323
|
+
init_subjectdatarep();
|
|
58037
58324
|
init_target();
|
|
58325
|
+
init_targetresourcerep();
|
|
58326
|
+
init_tokensummary();
|
|
58038
58327
|
init_variation();
|
|
58039
58328
|
init_variationorrolloutrep();
|
|
58040
58329
|
init_variationsummary();
|
|
@@ -58448,6 +58737,26 @@ var init_getaiconfigvariation = __esm(() => {
|
|
|
58448
58737
|
});
|
|
58449
58738
|
});
|
|
58450
58739
|
|
|
58740
|
+
// src/models/operations/getauditlogentries.ts
|
|
58741
|
+
var GetAuditLogEntriesRequest$inboundSchema, GetAuditLogEntriesRequest$outboundSchema;
|
|
58742
|
+
var init_getauditlogentries = __esm(() => {
|
|
58743
|
+
init_v3();
|
|
58744
|
+
GetAuditLogEntriesRequest$inboundSchema = objectType({
|
|
58745
|
+
before: numberType().int().optional(),
|
|
58746
|
+
after: numberType().int().optional(),
|
|
58747
|
+
q: stringType().optional(),
|
|
58748
|
+
limit: numberType().int().optional(),
|
|
58749
|
+
spec: stringType().optional()
|
|
58750
|
+
});
|
|
58751
|
+
GetAuditLogEntriesRequest$outboundSchema = objectType({
|
|
58752
|
+
before: numberType().int().optional(),
|
|
58753
|
+
after: numberType().int().optional(),
|
|
58754
|
+
q: stringType().optional(),
|
|
58755
|
+
limit: numberType().int().optional(),
|
|
58756
|
+
spec: stringType().optional()
|
|
58757
|
+
});
|
|
58758
|
+
});
|
|
58759
|
+
|
|
58451
58760
|
// src/models/operations/getenvironmentsbyproject.ts
|
|
58452
58761
|
var GetEnvironmentsByProjectRequest$inboundSchema, GetEnvironmentsByProjectRequest$outboundSchema;
|
|
58453
58762
|
var init_getenvironmentsbyproject = __esm(() => {
|
|
@@ -58747,6 +59056,7 @@ var init_operations = __esm(() => {
|
|
|
58747
59056
|
init_getaiconfigs();
|
|
58748
59057
|
init_getaiconfigtargeting();
|
|
58749
59058
|
init_getaiconfigvariation();
|
|
59059
|
+
init_getauditlogentries();
|
|
58750
59060
|
init_getenvironmentsbyproject();
|
|
58751
59061
|
init_getfeatureflag();
|
|
58752
59062
|
init_getfeatureflags();
|
|
@@ -60044,11 +60354,122 @@ var init_aiConfigsUpdateVariation2 = __esm(() => {
|
|
|
60044
60354
|
};
|
|
60045
60355
|
});
|
|
60046
60356
|
|
|
60047
|
-
// src/funcs/
|
|
60048
|
-
function
|
|
60357
|
+
// src/funcs/auditLogListEntries.ts
|
|
60358
|
+
function auditLogListEntries(client, request, options) {
|
|
60049
60359
|
return new APIPromise($do12(client, request, options));
|
|
60050
60360
|
}
|
|
60051
60361
|
async function $do12(client, request, options) {
|
|
60362
|
+
const parsed = safeParse4(request, (value) => GetAuditLogEntriesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60363
|
+
if (!parsed.ok) {
|
|
60364
|
+
return [parsed, { status: "invalid" }];
|
|
60365
|
+
}
|
|
60366
|
+
const payload = parsed.value;
|
|
60367
|
+
const body = null;
|
|
60368
|
+
const path = pathToFunc("/api/v2/auditlog")();
|
|
60369
|
+
const query = encodeFormQuery({
|
|
60370
|
+
after: payload.after,
|
|
60371
|
+
before: payload.before,
|
|
60372
|
+
limit: payload.limit,
|
|
60373
|
+
q: payload.q,
|
|
60374
|
+
spec: payload.spec
|
|
60375
|
+
});
|
|
60376
|
+
const headers = new Headers(compactMap({
|
|
60377
|
+
Accept: "application/json"
|
|
60378
|
+
}));
|
|
60379
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
60380
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
60381
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
60382
|
+
const context = {
|
|
60383
|
+
options: client._options,
|
|
60384
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
60385
|
+
operationID: "getAuditLogEntries",
|
|
60386
|
+
oAuth2Scopes: null,
|
|
60387
|
+
resolvedSecurity: requestSecurity,
|
|
60388
|
+
securitySource: client._options.apiKey,
|
|
60389
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
60390
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
60391
|
+
};
|
|
60392
|
+
const requestRes = client._createRequest(context, {
|
|
60393
|
+
security: requestSecurity,
|
|
60394
|
+
method: "GET",
|
|
60395
|
+
baseURL: options?.serverURL,
|
|
60396
|
+
path,
|
|
60397
|
+
headers,
|
|
60398
|
+
query,
|
|
60399
|
+
body,
|
|
60400
|
+
userAgent: client._options.userAgent,
|
|
60401
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
60402
|
+
}, options);
|
|
60403
|
+
if (!requestRes.ok) {
|
|
60404
|
+
return [requestRes, { status: "invalid" }];
|
|
60405
|
+
}
|
|
60406
|
+
const req = requestRes.value;
|
|
60407
|
+
const doResult = await client._do(req, {
|
|
60408
|
+
context,
|
|
60409
|
+
errorCodes: ["400", "401", "403", "429", "4XX", "5XX"],
|
|
60410
|
+
retryConfig: context.retryConfig,
|
|
60411
|
+
retryCodes: context.retryCodes
|
|
60412
|
+
});
|
|
60413
|
+
if (!doResult.ok) {
|
|
60414
|
+
return [doResult, { status: "request-error", request: req }];
|
|
60415
|
+
}
|
|
60416
|
+
const response = doResult.value;
|
|
60417
|
+
const responseFields = {
|
|
60418
|
+
HttpMeta: { Response: response, Request: req }
|
|
60419
|
+
};
|
|
60420
|
+
const [result] = await match(json(200, AuditLogEntryListingRepCollection$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
60421
|
+
if (!result.ok) {
|
|
60422
|
+
return [result, { status: "complete", request: req, response }];
|
|
60423
|
+
}
|
|
60424
|
+
return [result, { status: "complete", request: req, response }];
|
|
60425
|
+
}
|
|
60426
|
+
var init_auditLogListEntries = __esm(() => {
|
|
60427
|
+
init_encodings();
|
|
60428
|
+
init_matchers();
|
|
60429
|
+
init_primitives();
|
|
60430
|
+
init_schemas4();
|
|
60431
|
+
init_security();
|
|
60432
|
+
init_url();
|
|
60433
|
+
init_components();
|
|
60434
|
+
init_errors4();
|
|
60435
|
+
init_operations();
|
|
60436
|
+
init_async();
|
|
60437
|
+
});
|
|
60438
|
+
|
|
60439
|
+
// src/mcp-server/tools/auditLogListEntries.ts
|
|
60440
|
+
var args12, tool$auditLogListEntries;
|
|
60441
|
+
var init_auditLogListEntries2 = __esm(() => {
|
|
60442
|
+
init_auditLogListEntries();
|
|
60443
|
+
init_operations();
|
|
60444
|
+
init_tools();
|
|
60445
|
+
args12 = {
|
|
60446
|
+
request: GetAuditLogEntriesRequest$inboundSchema
|
|
60447
|
+
};
|
|
60448
|
+
tool$auditLogListEntries = {
|
|
60449
|
+
name: "get-audit-log-entries",
|
|
60450
|
+
description: `Fetches audit log entries for a LaunchDarkly account. Use the \`spec\` parameter with format \`proj/<projectKey>:env/<envKey>:flag/<flagKey>\` to query a specific flag's change history (use \`env/*\` for all environments). The \`before\` and \`after\` parameters accept Unix epoch timestamps in milliseconds for date-range filtering. Returns at most 20 entries per call, ordered newest-first.
|
|
60451
|
+
`,
|
|
60452
|
+
scopes: ["read"],
|
|
60453
|
+
args: args12,
|
|
60454
|
+
tool: async (client, args13, ctx) => {
|
|
60455
|
+
const [result, apiCall] = await auditLogListEntries(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60456
|
+
if (!result.ok) {
|
|
60457
|
+
return {
|
|
60458
|
+
content: [{ type: "text", text: result.error.message }],
|
|
60459
|
+
isError: true
|
|
60460
|
+
};
|
|
60461
|
+
}
|
|
60462
|
+
const value = result.value;
|
|
60463
|
+
return formatResult(value, apiCall);
|
|
60464
|
+
}
|
|
60465
|
+
};
|
|
60466
|
+
});
|
|
60467
|
+
|
|
60468
|
+
// src/funcs/codeReferencesListRepositories.ts
|
|
60469
|
+
function codeReferencesListRepositories(client, request, options) {
|
|
60470
|
+
return new APIPromise($do13(client, request, options));
|
|
60471
|
+
}
|
|
60472
|
+
async function $do13(client, request, options) {
|
|
60052
60473
|
const parsed = safeParse4(request, (value) => GetRepositoriesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60053
60474
|
if (!parsed.ok) {
|
|
60054
60475
|
return [parsed, { status: "invalid" }];
|
|
@@ -60126,12 +60547,12 @@ var init_codeReferencesListRepositories = __esm(() => {
|
|
|
60126
60547
|
});
|
|
60127
60548
|
|
|
60128
60549
|
// src/mcp-server/tools/codeReferencesListRepositories.ts
|
|
60129
|
-
var
|
|
60550
|
+
var args13, tool$codeReferencesListRepositories;
|
|
60130
60551
|
var init_codeReferencesListRepositories2 = __esm(() => {
|
|
60131
60552
|
init_codeReferencesListRepositories();
|
|
60132
60553
|
init_operations();
|
|
60133
60554
|
init_tools();
|
|
60134
|
-
|
|
60555
|
+
args13 = {
|
|
60135
60556
|
request: GetRepositoriesRequest$inboundSchema
|
|
60136
60557
|
};
|
|
60137
60558
|
tool$codeReferencesListRepositories = {
|
|
@@ -60139,9 +60560,9 @@ var init_codeReferencesListRepositories2 = __esm(() => {
|
|
|
60139
60560
|
description: `Identifies which repositories have code references to a given flag, helping agents determine if they're operating on the correct repository and understand the scope of cleanup (single vs multi-repo).
|
|
60140
60561
|
`,
|
|
60141
60562
|
scopes: ["read"],
|
|
60142
|
-
args:
|
|
60143
|
-
tool: async (client,
|
|
60144
|
-
const [result, apiCall] = await codeReferencesListRepositories(client,
|
|
60563
|
+
args: args13,
|
|
60564
|
+
tool: async (client, args14, ctx) => {
|
|
60565
|
+
const [result, apiCall] = await codeReferencesListRepositories(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60145
60566
|
if (!result.ok) {
|
|
60146
60567
|
return {
|
|
60147
60568
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60156,9 +60577,9 @@ var init_codeReferencesListRepositories2 = __esm(() => {
|
|
|
60156
60577
|
|
|
60157
60578
|
// src/funcs/environmentsListByProject.ts
|
|
60158
60579
|
function environmentsListByProject(client, request, options) {
|
|
60159
|
-
return new APIPromise($
|
|
60580
|
+
return new APIPromise($do14(client, request, options));
|
|
60160
60581
|
}
|
|
60161
|
-
async function $
|
|
60582
|
+
async function $do14(client, request, options) {
|
|
60162
60583
|
const parsed = safeParse4(request, (value) => GetEnvironmentsByProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60163
60584
|
if (!parsed.ok) {
|
|
60164
60585
|
return [parsed, { status: "invalid" }];
|
|
@@ -60242,12 +60663,12 @@ var init_environmentsListByProject = __esm(() => {
|
|
|
60242
60663
|
});
|
|
60243
60664
|
|
|
60244
60665
|
// src/mcp-server/tools/environmentsListByProject.ts
|
|
60245
|
-
var
|
|
60666
|
+
var args14, tool$environmentsListByProject;
|
|
60246
60667
|
var init_environmentsListByProject2 = __esm(() => {
|
|
60247
60668
|
init_environmentsListByProject();
|
|
60248
60669
|
init_operations();
|
|
60249
60670
|
init_tools();
|
|
60250
|
-
|
|
60671
|
+
args14 = {
|
|
60251
60672
|
request: GetEnvironmentsByProjectRequest$inboundSchema
|
|
60252
60673
|
};
|
|
60253
60674
|
tool$environmentsListByProject = {
|
|
@@ -60255,9 +60676,9 @@ var init_environmentsListByProject2 = __esm(() => {
|
|
|
60255
60676
|
description: `Identifies which environments exist in a project and determines which are marked as "critical" (production, staging, etc.). Allows agents to programmatically identify critical environments instead of hardcoding assumptions.
|
|
60256
60677
|
`,
|
|
60257
60678
|
scopes: ["read"],
|
|
60258
|
-
args:
|
|
60259
|
-
tool: async (client,
|
|
60260
|
-
const [result, apiCall] = await environmentsListByProject(client,
|
|
60679
|
+
args: args14,
|
|
60680
|
+
tool: async (client, args15, ctx) => {
|
|
60681
|
+
const [result, apiCall] = await environmentsListByProject(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60261
60682
|
if (!result.ok) {
|
|
60262
60683
|
return {
|
|
60263
60684
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60272,9 +60693,9 @@ var init_environmentsListByProject2 = __esm(() => {
|
|
|
60272
60693
|
|
|
60273
60694
|
// src/funcs/featureFlagsCreate.ts
|
|
60274
60695
|
function featureFlagsCreate(client, request, options) {
|
|
60275
|
-
return new APIPromise($
|
|
60696
|
+
return new APIPromise($do15(client, request, options));
|
|
60276
60697
|
}
|
|
60277
|
-
async function $
|
|
60698
|
+
async function $do15(client, request, options) {
|
|
60278
60699
|
const parsed = safeParse4(request, (value) => PostFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60279
60700
|
if (!parsed.ok) {
|
|
60280
60701
|
return [parsed, { status: "invalid" }];
|
|
@@ -60356,12 +60777,12 @@ var init_featureFlagsCreate = __esm(() => {
|
|
|
60356
60777
|
});
|
|
60357
60778
|
|
|
60358
60779
|
// src/mcp-server/tools/featureFlagsCreate.ts
|
|
60359
|
-
var
|
|
60780
|
+
var args15, tool$featureFlagsCreate;
|
|
60360
60781
|
var init_featureFlagsCreate2 = __esm(() => {
|
|
60361
60782
|
init_featureFlagsCreate();
|
|
60362
60783
|
init_operations();
|
|
60363
60784
|
init_tools();
|
|
60364
|
-
|
|
60785
|
+
args15 = {
|
|
60365
60786
|
request: PostFeatureFlagRequest$inboundSchema
|
|
60366
60787
|
};
|
|
60367
60788
|
tool$featureFlagsCreate = {
|
|
@@ -60369,9 +60790,9 @@ var init_featureFlagsCreate2 = __esm(() => {
|
|
|
60369
60790
|
description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.
|
|
60370
60791
|
`,
|
|
60371
60792
|
scopes: ["write"],
|
|
60372
|
-
args:
|
|
60373
|
-
tool: async (client,
|
|
60374
|
-
const [result, apiCall] = await featureFlagsCreate(client,
|
|
60793
|
+
args: args15,
|
|
60794
|
+
tool: async (client, args16, ctx) => {
|
|
60795
|
+
const [result, apiCall] = await featureFlagsCreate(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60375
60796
|
if (!result.ok) {
|
|
60376
60797
|
return {
|
|
60377
60798
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60386,9 +60807,9 @@ var init_featureFlagsCreate2 = __esm(() => {
|
|
|
60386
60807
|
|
|
60387
60808
|
// src/funcs/featureFlagsDelete.ts
|
|
60388
60809
|
function featureFlagsDelete(client, request, options) {
|
|
60389
|
-
return new APIPromise($
|
|
60810
|
+
return new APIPromise($do16(client, request, options));
|
|
60390
60811
|
}
|
|
60391
|
-
async function $
|
|
60812
|
+
async function $do16(client, request, options) {
|
|
60392
60813
|
const parsed = safeParse4(request, (value) => DeleteFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60393
60814
|
if (!parsed.ok) {
|
|
60394
60815
|
return [parsed, { status: "invalid" }];
|
|
@@ -60469,12 +60890,12 @@ var init_featureFlagsDelete = __esm(() => {
|
|
|
60469
60890
|
});
|
|
60470
60891
|
|
|
60471
60892
|
// src/mcp-server/tools/featureFlagsDelete.ts
|
|
60472
|
-
var
|
|
60893
|
+
var args16, tool$featureFlagsDelete;
|
|
60473
60894
|
var init_featureFlagsDelete2 = __esm(() => {
|
|
60474
60895
|
init_featureFlagsDelete();
|
|
60475
60896
|
init_operations();
|
|
60476
60897
|
init_tools();
|
|
60477
|
-
|
|
60898
|
+
args16 = {
|
|
60478
60899
|
request: DeleteFeatureFlagRequest$inboundSchema
|
|
60479
60900
|
};
|
|
60480
60901
|
tool$featureFlagsDelete = {
|
|
@@ -60482,9 +60903,9 @@ var init_featureFlagsDelete2 = __esm(() => {
|
|
|
60482
60903
|
description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.
|
|
60483
60904
|
`,
|
|
60484
60905
|
scopes: ["write"],
|
|
60485
|
-
args:
|
|
60486
|
-
tool: async (client,
|
|
60487
|
-
const [result, apiCall] = await featureFlagsDelete(client,
|
|
60906
|
+
args: args16,
|
|
60907
|
+
tool: async (client, args17, ctx) => {
|
|
60908
|
+
const [result, apiCall] = await featureFlagsDelete(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60488
60909
|
if (!result.ok) {
|
|
60489
60910
|
return {
|
|
60490
60911
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60498,9 +60919,9 @@ var init_featureFlagsDelete2 = __esm(() => {
|
|
|
60498
60919
|
|
|
60499
60920
|
// src/funcs/featureFlagsGet.ts
|
|
60500
60921
|
function featureFlagsGet(client, request, options) {
|
|
60501
|
-
return new APIPromise($
|
|
60922
|
+
return new APIPromise($do17(client, request, options));
|
|
60502
60923
|
}
|
|
60503
|
-
async function $
|
|
60924
|
+
async function $do17(client, request, options) {
|
|
60504
60925
|
const parsed = safeParse4(request, (value) => GetFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60505
60926
|
if (!parsed.ok) {
|
|
60506
60927
|
return [parsed, { status: "invalid" }];
|
|
@@ -60586,12 +61007,12 @@ var init_featureFlagsGet = __esm(() => {
|
|
|
60586
61007
|
});
|
|
60587
61008
|
|
|
60588
61009
|
// src/mcp-server/tools/featureFlagsGet.ts
|
|
60589
|
-
var
|
|
61010
|
+
var args17, tool$featureFlagsGet;
|
|
60590
61011
|
var init_featureFlagsGet2 = __esm(() => {
|
|
60591
61012
|
init_featureFlagsGet();
|
|
60592
61013
|
init_operations();
|
|
60593
61014
|
init_tools();
|
|
60594
|
-
|
|
61015
|
+
args17 = {
|
|
60595
61016
|
request: GetFeatureFlagRequest$inboundSchema
|
|
60596
61017
|
};
|
|
60597
61018
|
tool$featureFlagsGet = {
|
|
@@ -60599,9 +61020,9 @@ var init_featureFlagsGet2 = __esm(() => {
|
|
|
60599
61020
|
description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.
|
|
60600
61021
|
`,
|
|
60601
61022
|
scopes: ["read"],
|
|
60602
|
-
args:
|
|
60603
|
-
tool: async (client,
|
|
60604
|
-
const [result, apiCall] = await featureFlagsGet(client,
|
|
61023
|
+
args: args17,
|
|
61024
|
+
tool: async (client, args18, ctx) => {
|
|
61025
|
+
const [result, apiCall] = await featureFlagsGet(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60605
61026
|
if (!result.ok) {
|
|
60606
61027
|
return {
|
|
60607
61028
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60616,9 +61037,9 @@ var init_featureFlagsGet2 = __esm(() => {
|
|
|
60616
61037
|
|
|
60617
61038
|
// src/funcs/featureFlagsGetStatus.ts
|
|
60618
61039
|
function featureFlagsGetStatus(client, request, options) {
|
|
60619
|
-
return new APIPromise($
|
|
61040
|
+
return new APIPromise($do18(client, request, options));
|
|
60620
61041
|
}
|
|
60621
|
-
async function $
|
|
61042
|
+
async function $do18(client, request, options) {
|
|
60622
61043
|
const parsed = safeParse4(request, (value) => GetFeatureFlagStatusAcrossEnvironmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60623
61044
|
if (!parsed.ok) {
|
|
60624
61045
|
return [parsed, { status: "invalid" }];
|
|
@@ -60703,12 +61124,12 @@ var init_featureFlagsGetStatus = __esm(() => {
|
|
|
60703
61124
|
});
|
|
60704
61125
|
|
|
60705
61126
|
// src/mcp-server/tools/featureFlagsGetStatus.ts
|
|
60706
|
-
var
|
|
61127
|
+
var args18, tool$featureFlagsGetStatus;
|
|
60707
61128
|
var init_featureFlagsGetStatus2 = __esm(() => {
|
|
60708
61129
|
init_featureFlagsGetStatus();
|
|
60709
61130
|
init_operations();
|
|
60710
61131
|
init_tools();
|
|
60711
|
-
|
|
61132
|
+
args18 = {
|
|
60712
61133
|
request: GetFeatureFlagStatusAcrossEnvironmentsRequest$inboundSchema
|
|
60713
61134
|
};
|
|
60714
61135
|
tool$featureFlagsGetStatus = {
|
|
@@ -60716,9 +61137,9 @@ var init_featureFlagsGetStatus2 = __esm(() => {
|
|
|
60716
61137
|
description: `Returns lifecycle status (new, active, inactive, launched) based on actual usage patterns, evaluation counts, and configuration stability. This is the key intelligence for removal readiness assessment.
|
|
60717
61138
|
`,
|
|
60718
61139
|
scopes: ["read"],
|
|
60719
|
-
args:
|
|
60720
|
-
tool: async (client,
|
|
60721
|
-
const [result, apiCall] = await featureFlagsGetStatus(client,
|
|
61140
|
+
args: args18,
|
|
61141
|
+
tool: async (client, args19, ctx) => {
|
|
61142
|
+
const [result, apiCall] = await featureFlagsGetStatus(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60722
61143
|
if (!result.ok) {
|
|
60723
61144
|
return {
|
|
60724
61145
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60733,9 +61154,9 @@ var init_featureFlagsGetStatus2 = __esm(() => {
|
|
|
60733
61154
|
|
|
60734
61155
|
// src/funcs/featureFlagsList.ts
|
|
60735
61156
|
function featureFlagsList(client, request, options) {
|
|
60736
|
-
return new APIPromise($
|
|
61157
|
+
return new APIPromise($do19(client, request, options));
|
|
60737
61158
|
}
|
|
60738
|
-
async function $
|
|
61159
|
+
async function $do19(client, request, options) {
|
|
60739
61160
|
const parsed = safeParse4(request, (value) => GetFeatureFlagsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60740
61161
|
if (!parsed.ok) {
|
|
60741
61162
|
return [parsed, { status: "invalid" }];
|
|
@@ -60825,12 +61246,12 @@ var init_featureFlagsList = __esm(() => {
|
|
|
60825
61246
|
});
|
|
60826
61247
|
|
|
60827
61248
|
// src/mcp-server/tools/featureFlagsList.ts
|
|
60828
|
-
var
|
|
61249
|
+
var args19, tool$featureFlagsList;
|
|
60829
61250
|
var init_featureFlagsList2 = __esm(() => {
|
|
60830
61251
|
init_featureFlagsList();
|
|
60831
61252
|
init_operations();
|
|
60832
61253
|
init_tools();
|
|
60833
|
-
|
|
61254
|
+
args19 = {
|
|
60834
61255
|
request: GetFeatureFlagsRequest$inboundSchema
|
|
60835
61256
|
};
|
|
60836
61257
|
tool$featureFlagsList = {
|
|
@@ -60838,9 +61259,9 @@ var init_featureFlagsList2 = __esm(() => {
|
|
|
60838
61259
|
description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.
|
|
60839
61260
|
`,
|
|
60840
61261
|
scopes: ["read"],
|
|
60841
|
-
args:
|
|
60842
|
-
tool: async (client,
|
|
60843
|
-
const [result, apiCall] = await featureFlagsList(client,
|
|
61262
|
+
args: args19,
|
|
61263
|
+
tool: async (client, args20, ctx) => {
|
|
61264
|
+
const [result, apiCall] = await featureFlagsList(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60844
61265
|
if (!result.ok) {
|
|
60845
61266
|
return {
|
|
60846
61267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60855,9 +61276,9 @@ var init_featureFlagsList2 = __esm(() => {
|
|
|
60855
61276
|
|
|
60856
61277
|
// src/funcs/featureFlagsPatch.ts
|
|
60857
61278
|
function featureFlagsPatch(client, request, options) {
|
|
60858
|
-
return new APIPromise($
|
|
61279
|
+
return new APIPromise($do20(client, request, options));
|
|
60859
61280
|
}
|
|
60860
|
-
async function $
|
|
61281
|
+
async function $do20(client, request, options) {
|
|
60861
61282
|
const parsed = safeParse4(request, (value) => PatchFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60862
61283
|
if (!parsed.ok) {
|
|
60863
61284
|
return [parsed, { status: "invalid" }];
|
|
@@ -60944,12 +61365,12 @@ var init_featureFlagsPatch = __esm(() => {
|
|
|
60944
61365
|
});
|
|
60945
61366
|
|
|
60946
61367
|
// src/mcp-server/tools/featureFlagsPatch.ts
|
|
60947
|
-
var
|
|
61368
|
+
var args20, tool$featureFlagsPatch;
|
|
60948
61369
|
var init_featureFlagsPatch2 = __esm(() => {
|
|
60949
61370
|
init_featureFlagsPatch();
|
|
60950
61371
|
init_operations();
|
|
60951
61372
|
init_tools();
|
|
60952
|
-
|
|
61373
|
+
args20 = {
|
|
60953
61374
|
request: PatchFeatureFlagRequest$inboundSchema
|
|
60954
61375
|
};
|
|
60955
61376
|
tool$featureFlagsPatch = {
|
|
@@ -60957,9 +61378,9 @@ var init_featureFlagsPatch2 = __esm(() => {
|
|
|
60957
61378
|
description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.
|
|
60958
61379
|
`,
|
|
60959
61380
|
scopes: ["write"],
|
|
60960
|
-
args:
|
|
60961
|
-
tool: async (client,
|
|
60962
|
-
const [result, apiCall] = await featureFlagsPatch(client,
|
|
61381
|
+
args: args20,
|
|
61382
|
+
tool: async (client, args21, ctx) => {
|
|
61383
|
+
const [result, apiCall] = await featureFlagsPatch(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60963
61384
|
if (!result.ok) {
|
|
60964
61385
|
return {
|
|
60965
61386
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60976,7 +61397,7 @@ var init_featureFlagsPatch2 = __esm(() => {
|
|
|
60976
61397
|
function createMCPServer(deps) {
|
|
60977
61398
|
const server = new McpServer({
|
|
60978
61399
|
name: "LaunchDarkly",
|
|
60979
|
-
version: "0.6.
|
|
61400
|
+
version: "0.6.2"
|
|
60980
61401
|
});
|
|
60981
61402
|
const client = new LaunchDarklyCore({
|
|
60982
61403
|
apiKey: deps.apiKey,
|
|
@@ -60990,6 +61411,7 @@ function createMCPServer(deps) {
|
|
|
60990
61411
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
60991
61412
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
60992
61413
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
61414
|
+
tool(tool$auditLogListEntries);
|
|
60993
61415
|
tool(tool$codeReferencesListRepositories);
|
|
60994
61416
|
tool(tool$featureFlagsGetStatus);
|
|
60995
61417
|
tool(tool$featureFlagsList);
|
|
@@ -61027,6 +61449,7 @@ var init_server3 = __esm(() => {
|
|
|
61027
61449
|
init_aiConfigsUpdate2();
|
|
61028
61450
|
init_aiConfigsUpdateTargeting2();
|
|
61029
61451
|
init_aiConfigsUpdateVariation2();
|
|
61452
|
+
init_auditLogListEntries2();
|
|
61030
61453
|
init_codeReferencesListRepositories2();
|
|
61031
61454
|
init_environmentsListByProject2();
|
|
61032
61455
|
init_featureFlagsCreate2();
|
|
@@ -62226,7 +62649,7 @@ var routes = an({
|
|
|
62226
62649
|
var app = He(routes, {
|
|
62227
62650
|
name: "mcp",
|
|
62228
62651
|
versionInfo: {
|
|
62229
|
-
currentVersion: "0.6.
|
|
62652
|
+
currentVersion: "0.6.2"
|
|
62230
62653
|
}
|
|
62231
62654
|
});
|
|
62232
62655
|
zt(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -62234,5 +62657,5 @@ export {
|
|
|
62234
62657
|
app
|
|
62235
62658
|
};
|
|
62236
62659
|
|
|
62237
|
-
//# debugId=
|
|
62660
|
+
//# debugId=19F6727AF0E37D8A64756E2164756E21
|
|
62238
62661
|
//# sourceMappingURL=mcp-server.js.map
|