Skip to content

feat: standardize plugin operation invoke API#6

Merged
adityathebe merged 3 commits into
mainfrom
migrate-plugin-invoke-endpoint
Jun 10, 2026
Merged

feat: standardize plugin operation invoke API#6
adityathebe merged 3 commits into
mainfrom
migrate-plugin-invoke-endpoint

Conversation

@adityathebe

Copy link
Copy Markdown
Member

Plugin operation calls are moving to Mission Control's /invoke/ endpoint, but some HTTP-style operations still need the proxy path during the transition.

Update the invoke API to use POST /invoke/:operation by default and allow callers to opt into /proxy/:operation with { proxy: true }.

The second argument now represents the operation body for body-capable methods, or query params for GET/HEAD.

Plugin operation calls are moving to Mission Control's /invoke/ endpoint, while some HTTP-style operations still need the proxy path during the transition.

Default invoke calls now use POST /invoke/:operation and callers can opt into /proxy/:operation with { proxy: true }. The second argument is used as the operation body for body-capable methods or query params for GET and HEAD.
@adityathebe adityathebe force-pushed the migrate-plugin-invoke-endpoint branch from 00668b3 to f68a3d2 Compare June 10, 2026 07:10
Replace the generic Mission Control client and nested plugins API with a plugin client that creates scoped plugin instances.

Plugin instances carry pluginRef and configId, exposing invoke and stream methods that automatically include config_id while preserving invoke-by-default and proxy opt-in behavior.
@adityathebe adityathebe force-pushed the migrate-plugin-invoke-endpoint branch from f68a3d2 to 817bb1a Compare June 10, 2026 07:13
@adityathebe adityathebe merged commit 7cf16ea into main Jun 10, 2026
2 checks passed
@adityathebe adityathebe deleted the migrate-plugin-invoke-endpoint branch June 10, 2026 07:19
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