MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makeCloudflarePlugins

Function makeCloudflarePlugins

apps/host-cloudflare/src/plugins.ts:26–39  ·  view source on GitHub ↗
(
  secretKey: string,
  options: { readonly activeToolkitSlug?: string; readonly allowLocalNetwork?: boolean } = {},
)

Source from the content-addressed store, hash-verified

24// ---------------------------------------------------------------------------
25
26export const makeCloudflarePlugins = (
27 secretKey: string,
28 options: { readonly activeToolkitSlug?: string; readonly allowLocalNetwork?: boolean } = {},
29) =>
30 [
31 openApiHttpPlugin({
32 presets: [...googleCatalog, ...microsoftCatalog],
33 specFormats: [googleDiscoveryAdapter, microsoftGraphAdapter],
34 }),
35 mcpHttpPlugin({ dangerouslyAllowStdioMCP: false }),
36 graphqlHttpPlugin(),
37 toolkitsPlugin({ activeToolkitSlug: options.activeToolkitSlug }),
38 encryptedSecretsPlugin({ key: secretKey }),
39 ] as const;
40
41export type CloudflarePlugins = ReturnType<typeof makeCloudflarePlugins>;

Callers 2

makeCloudflareAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected