This commit is contained in:
bipproduction
2025-10-27 02:14:09 +08:00
parent 2d9dd46ab9
commit db55abd0f0

View File

@@ -26,7 +26,7 @@ const tools = [
}
];
export const MCPRoute = new Elysia({ prefix: "/mcp" })
const MCPRoute = new Elysia({ prefix: "/mcp" })
.post("/", async ({ body, set }) => {
set.headers["Content-Type"] = "application/json; charset=utf-8";
@@ -38,3 +38,5 @@ export const MCPRoute = new Elysia({ prefix: "/mcp" })
return { error: "Unsupported method" };
});
export default MCPRoute;