tambahan
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { Elysia } from "elysia";
|
import { Elysia } from "elysia";
|
||||||
import { t } 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 }) => {
|
.post("/mcp", async ({ body, set }) => {
|
||||||
const { id, method, params } = body;
|
const { id, method, params } = body;
|
||||||
set.headers['Content-Type'] = 'application/json';
|
set.headers['Content-Type'] = 'application/json';
|
||||||
|
|||||||
Reference in New Issue
Block a user