Skip to content

Support approvals in local mcp#51

Draft
nieblara wants to merge 1 commit intomainfrom
support-approvals-in-local-mcp
Draft

Support approvals in local mcp#51
nieblara wants to merge 1 commit intomainfrom
support-approvals-in-local-mcp

Conversation

@nieblara
Copy link
Contributor

@nieblara nieblara commented Mar 2, 2026

Summary

Add 7 approval workflow tools to the MCP server, enabling AI agents to participate in the LaunchDarkly approval process for feature flag changes.

Changes

New tools (7)

  • list-approval-requests — List all pending approval requests across the account
  • list-flag-approval-requests — List approval requests for a specific flag/environment
  • create-flag-approval-request — Submit flag changes for review (required when mandatory approvals are enabled)
  • get-flag-approval-request — Get details of a specific approval request (status, reviewers, proposed changes)
  • delete-flag-approval-request — Withdraw a pending approval request
  • apply-flag-approval-request — Apply an approved request to make changes live
  • review-flag-approval-request — Approve, decline, or comment on a pending request

Manual change

  • schemas/mcp-enable-tools.yaml — Added overlay entries for 7 approval API endpoints

Generated (109 files, via speakeasy run)

  • 7 func implementations (src/funcs/approvals*.ts)
  • 7 MCP tool wrappers (src/mcp-server/tools/approvals*.ts)
  • 7 operation models, 22 component models (request/response types for the approvals API)
  • SDK client (src/sdk/approvals.ts), server registration, docs, examples

What I did

  1. Added approval endpoint entries to schemas/mcp-enable-tools.yaml
  2. Ran speakeasy run to regenerate — no manual edits to any generated file
  3. Built and smoke tested via stdio transport: server starts, all 26 tools register (19 existing + 7 new)
  4. Verified list-approval-requests returns real data

@nieblara nieblara force-pushed the support-approvals-in-local-mcp branch from d43c171 to f7a21c0 Compare March 2, 2026 05:18
Base automatically changed from REL-12444-update-speakeasy-version-and-mcp-sdk-dependencies to main March 2, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant