MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / handleMcpGet

Function handleMcpGet

packages/mcp/src/handler.ts:199–206  ·  view source on GitHub ↗
(
  _sessionManager: SessionManager,
  _req: IncomingMessage,
  res: ServerResponse,
)

Source from the content-addressed store, hash-verified

197 * SSE is not supported in stateless mode — all communication happens over POST.
198 */
199export async function handleMcpGet(
200 _sessionManager: SessionManager,
201 _req: IncomingMessage,
202 res: ServerResponse,
203): Promise<void> {
204 res.writeHead(405, { 'Content-Type': 'application/json', Allow: 'POST, DELETE' });
205 res.end(JSON.stringify({ error: 'SSE not supported — use POST for all requests' }));
206}

Callers 1

mcpRouterFunction · 0.90

Calls 2

endMethod · 0.45
stringifyMethod · 0.45

Tested by

no test coverage detected