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

Function createConnection

apps/host-selfhost/src/multi-user.test.ts:92–111  ·  view source on GitHub ↗
(
  token: string,
  body: {
    owner: "org" | "user";
    name: string;
    integration: string;
    template: string;
    value: string;
  },
)

Source from the content-addressed store, hash-verified

90 );
91
92const createConnection = (
93 token: string,
94 body: {
95 owner: "org" | "user";
96 name: string;
97 integration: string;
98 template: string;
99 value: string;
100 },
101) =>
102 handler(
103 new Request(`${BASE}/api/connections`, {
104 method: "POST",
105 headers: {
106 authorization: `Bearer ${token}`,
107 "content-type": "application/json",
108 },
109 body: JSON.stringify(body),
110 }),
111 );
112
113const connectionAddresses = async (token: string): Promise<string[]> => {
114 const res = await handler(

Callers 1

multi-user.test.tsFile · 0.70

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected