This commit is contained in:
bipproduction
2025-10-27 10:00:34 +08:00
parent 37e58df4f5
commit 648ea0cf56
2 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import { Elysia } from "elysia";
import { v4 as uuidv4 } from "uuid";
const API_KEY = process.env.MCP_API_KEY ?? "change-me";
const API_KEY = process.env.MCP_API_KEY ?? "super-secret-key";
const PORT = Number(process.env.PORT ?? 3000);
const PING_INTERVAL_MS = 25_000;

6
x.sh
View File

@@ -1,2 +1,6 @@
curl -N -v -X GET "https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp/test-session-id"
# curl -N -v -X GET "https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp/test-session-id"
curl -X POST http://localhost:3000/mcp/test-room \
-H "Content-Type: application/json" \
-H "X-API-Key: super-secret-key" \
-d '{"event":"notice","data":{"msg":"hello world"}}'