feat: implement settings cache with load, save, clear, and status functions (#167)

This commit is contained in:
samanhappy
2025-06-07 20:36:52 +08:00
committed by GitHub
parent f8149c4b0b
commit 56c6447469
2 changed files with 45 additions and 3 deletions

View File

@@ -109,7 +109,10 @@ export const handleSseMessage = async (req: Request, res: Response): Promise<voi
export const handleMcpPostRequest = async (req: Request, res: Response): Promise<void> => {
const sessionId = req.headers['mcp-session-id'] as string | undefined;
const group = req.params.group;
console.log(`Handling MCP post request for sessionId: ${sessionId} and group: ${group}`);
const body = req.body;
console.log(
`Handling MCP post request for sessionId: ${sessionId} and group: ${group} with body: ${JSON.stringify(body)}`,
);
// Check bearer auth
if (!validateBearerAuth(req)) {
res.status(401).send('Bearer authentication required or invalid token');