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

Function toResponse

packages/core/api/src/handlers/connections.ts:18–33  ·  view source on GitHub ↗
(c: Connection)

Source from the content-addressed store, hash-verified

16import { ExecutorService } from "../services";
17
18const toResponse = (c: Connection) => ({
19 owner: c.owner,
20 name: c.name,
21 integration: c.integration,
22 template: c.template,
23 provider: c.provider,
24 address: c.address,
25 identityLabel: c.identityLabel ?? null,
26 description: c.description ?? null,
27 expiresAt: c.expiresAt ?? null,
28 oauthClient: c.oauthClient ?? null,
29 oauthClientOwner: c.oauthClientOwner ?? null,
30 oauthScope: c.oauthScope ?? null,
31 missingOAuthScopes: c.missingOAuthScopes ?? [],
32 lastHealth: c.lastHealth ?? null,
33});
34
35const toolToResponse = (t: Tool) => ({
36 address: String(t.address),

Callers 1

connections.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected