11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
import { defineEventHandler, readBody } from 'h3';
|
|||
import { markClientActive } from '../../utils/mcp-sync-state';
|
|||
|
|||
export default defineEventHandler(async (event) => {
|
|||
const body = (await readBody(event)) as { clientId?: string };
|
|||
if (body.clientId) {
|
|||
markClientActive(body.clientId);
|
|||
}
|
|||
return { ok: true };
|
|||
});
|