Skip to main content
Glama
+server.ts644 B
import { json, error } from '@sveltejs/kit' import { Effect } from 'effect' import * as session from '$lib/server/session' import type { RequestHandler } from './$types' export const POST: RequestHandler = async ({ request }) => { const body = await request.json() const { project, sessionId, messageUuid } = body as { project?: string sessionId?: string messageUuid?: string } if (!project || !sessionId || !messageUuid) { throw error(400, 'project, sessionId, and messageUuid are required') } const result = await Effect.runPromise(session.splitSession(project, sessionId, messageUuid)) return json(result) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrumRobot/claude-sessions-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server