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

Function plugin

packages/core/sdk/src/provider-call-timeout.test.ts:44–53  ·  view source on GitHub ↗
(provider: CredentialProvider)

Source from the content-addressed store, hash-verified

42});
43
44const plugin = (provider: CredentialProvider) =>
45 definePlugin(() => ({
46 id: "acme" as const,
47 credentialProviders: [provider],
48 storage: () => ({}),
49 extension: (ctx) => ({
50 seed: () => ctx.core.integrations.register({ slug: INTEG, description: "Acme", config: {} }),
51 read: () => ctx.connections.resolveValue({ owner: "org", integration: INTEG, name: CONN }),
52 }),
53 }))();
54
55const executorWithConnection = (provider: CredentialProvider) =>
56 Effect.gen(function* () {

Callers 2

executorWithConnectionFunction · 0.70

Calls 1

definePluginFunction · 0.90

Tested by

no test coverage detected