style: fix formatting in MCP server

This commit is contained in:
2026-01-23 11:56:54 -05:00
parent f7372612fb
commit ee0fca826d

View File

@@ -8,9 +8,12 @@ const server = Bun.serve({
idleTimeout: 0,
routes: {
// MCP metadata discovery endpoint
"/.well-known/mcp/server-card.json": new Response(JSON.stringify(serverCard), {
"/.well-known/mcp/server-card.json": new Response(
JSON.stringify(serverCard),
{
headers: { "Content-Type": "application/json" },
}),
},
),
// MCP JSON-RPC 2.0 protocol endpoint
"/mcp": async (req: Request) => {
@@ -19,13 +22,13 @@ const server = Bun.serve({
}
return Response.json(
{ message: "MCP endpoint requires POST request" },
{ status: 405 }
{ status: 405 },
);
},
},
// Fallback for all other routes
fetch(req: Request) {
fetch(_req: Request) {
return new Response("Not Found", { status: 404 });
},
});