This commit is contained in:
bipproduction
2025-10-26 21:02:47 +08:00
parent 953a43039f
commit 48e4478d25

View File

@@ -1,7 +1,7 @@
import { Elysia } from "elysia";
import { t } from "elysia";
export const MCPRoute = new Elysia({ prefix: "/mcp-server" })
export const MCPRoute = new Elysia({ prefix: "/mcp-server", tags: ["mcp-server"] })
.post("/mcp", async ({ body, set }) => {
const { id, method, params } = body;
set.headers['Content-Type'] = 'application/json';