expose mcp server in ontime

This commit is contained in:
Carlos Valente
2026-07-01 12:48:40 +02:00
committed by GitHub
parent ce8a4d230b
commit 48f9fb2609
19 changed files with 2291 additions and 77 deletions
@@ -16,7 +16,7 @@ import {
deleteAllEntries,
deleteEntries,
deleteRundown,
duplicateRundown,
duplicateExistingRundown,
editEntry,
groupEntries,
loadRundown,
@@ -107,7 +107,7 @@ router.post(
paramsWithId,
async (req: Request, res: Response<ProjectRundownsList | ErrorResponse>) => {
try {
const projectRundowns = await duplicateRundown(req.params.id);
const projectRundowns = await duplicateExistingRundown(req.params.id);
res.status(201).json({ loaded: getCurrentRundown().id, rundowns: normalisedToRundownArray(projectRundowns) });
} catch (error) {
const message = getErrorMessage(error);