tambahan
This commit is contained in:
@@ -2,7 +2,7 @@ import { Elysia } from "elysia";
|
||||
import { t } from "elysia";
|
||||
|
||||
export const MCPRoute = new Elysia({ prefix: "/mcp-server", tags: ["mcp-server"] })
|
||||
.post("/mcp", async ({ body, set }) => {
|
||||
.all("/mcp", async ({ body, set }) => {
|
||||
const { id, method, params } = body;
|
||||
set.headers['Content-Type'] = 'application/json';
|
||||
set.headers['Transfer-Encoding'] = 'chunked'; // ✅ Streaming-required for n8n
|
||||
|
||||
Reference in New Issue
Block a user