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

Function mcp

apps/host-selfhost/src/integrations-mcp.test.ts:124–136  ·  view source on GitHub ↗
(body: unknown, sessionId?: string)

Source from the content-addressed store, hash-verified

122 await addOrgIntegration(organizationId);
123
124 const mcp = (body: unknown, sessionId?: string) =>
125 handler(
126 new Request(`${BASE}/mcp`, {
127 method: "POST",
128 headers: {
129 authorization: `Bearer ${token}`,
130 "content-type": "application/json",
131 accept: "application/json, text/event-stream",
132 ...(sessionId ? { "mcp-session-id": sessionId } : {}),
133 },
134 body: JSON.stringify(body),
135 }),
136 );
137
138 const init = await mcp({
139 jsonrpc: "2.0",

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected