Skip to content

Commit b6e1e2b

Browse files
committed
first attempt at a dev server mcp
1 parent b7106fb commit b6e1e2b

File tree

5 files changed

+419
-1
lines changed

5 files changed

+419
-1
lines changed

.speakeasy/workflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ sources:
44
LaunchDarkly REST API:
55
inputs:
66
- location: ./schemas/openapi.json
7+
- location: ./schemas/openapi-dev-server.yaml
78
overlays:
89
- location: ./schemas/mcp-disable-tools.yaml
910
- location: ./schemas/mcp-enable-tools.yaml
1011
- location: ./schemas/suggestions.yaml
12+
- location: ./schemas/mcp-disable-tools-dev-server.yaml
13+
- location: ./schemas/mcp-enable-tools-dev-server.yaml
1114
registry:
1215
location: registry.speakeasyapi.dev/launchdarkly/mcp/launchdarkly-rest-api
1316
targets:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
overlay: 1.0.0
2+
x-speakeasy-jsonpath: rfc9535
3+
info:
4+
title: Disable MCP Localhost Dev Server Tools
5+
version: 0.0.1
6+
actions:
7+
- target: $["paths"]["/dev/backup"]["get"]
8+
update:
9+
x-speakeasy-mcp:
10+
disabled: true
11+
- target: $["paths"]["/dev/backup"]["post"]
12+
update:
13+
x-speakeasy-mcp:
14+
disabled: true
15+
- target: $["paths"]["/dev/projects"]["get"]
16+
update:
17+
x-speakeasy-mcp:
18+
disabled: true
19+
- target: $["paths"]["/dev/projects/{projectKey}"]["get"]
20+
update:
21+
x-speakeasy-mcp:
22+
disabled: true
23+
- target: $["paths"]["/dev/projects/{projectKey}"]["patch"]
24+
update:
25+
x-speakeasy-mcp:
26+
disabled: true
27+
- target: $["paths"]["/dev/projects/{projectKey}"]["delete"]
28+
update:
29+
x-speakeasy-mcp:
30+
disabled: true
31+
- target: $["paths"]["/dev/projects/{projectKey}"]["post"]
32+
update:
33+
x-speakeasy-mcp:
34+
disabled: true
35+
- target: $["paths"]["/dev/projects/{projectKey}/environments"]["get"]
36+
update:
37+
x-speakeasy-mcp:
38+
disabled: true
39+
- target: $.paths.*[?@['x-speakeasy-mcp'].disabled == true]
40+
remove: true

schemas/mcp-disable-tools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
overlay: 1.0.0
22
x-speakeasy-jsonpath: rfc9535
33
info:
4-
title: Disable MCP Tools
4+
title: Disable MCP Feature Flag Tools
55
version: 0.0.1
66
actions:
77
- target: $["paths"]["/api/v2"]["get"]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
info:
2+
title: MCP Enable Overlay for Localhost Dev Server
3+
version: 0.0.1
4+
overlay: 1.0.0
5+
actions:
6+
- target: $
7+
update:
8+
servers:
9+
- url: http://localhost:8765
10+
description: Localhost Dev Server
11+
- target: $["paths"]["/dev/projects/{projectKey}/overrides/{flagKey}"]["put"]
12+
update:
13+
x-speakeasy-mcp:
14+
description: Sets a local feature flag value override. This facilitates local development and testing in isolation.
15+
disabled: false
16+
name: set-feature-flag-value-override
17+
scopes:
18+
- write
19+
- target: $["paths"]["/dev/projects/{projectKey}/overrides/{flagKey}"]["delete"]
20+
update:
21+
x-speakeasy-mcp:
22+
description: Deletes a local feature flag value override. This resets the feature flag to its original value.
23+
disabled: false
24+
name: delete-feature-flag-value-override
25+
scopes:
26+
- write
27+
- target: $["paths"]["/dev/projects/{projectKey}/overrides"]["delete"]
28+
update:
29+
x-speakeasy-mcp:
30+
description: Deletes all local feature flag value overrides for a specified project. This resets all feature flags in the project to their original values.
31+
disabled: false
32+
name: delete-feature-flag-value-overrides
33+
scopes:
34+
- write

0 commit comments

Comments
 (0)