tambahan
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user