delete_video_project
Remove a video project from the Magic Hour MCP Server to manage storage and organize media content. Specify the project ID to delete it.
Instructions
Delete a video project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The video project ID to delete |
Implementation Reference
- src/index.ts:602-629 (handler)The delete_video_project tool registration and handler. This tool deletes a video project by ID using the Magic Hour API. It includes the schema definition (id parameter), error handling, and the async handler that calls client.v1.videoProjects.delete().
server.tool( "delete_video_project", "Delete a video project.", { id: z.string().describe("The video project ID to delete"), }, async ({ id }) => { try { await client.v1.videoProjects.delete({ id }); return { content: [ { type: "text" as const, text: `Video project ${id} deleted.`, }, ], }; } catch (error: any) { return { content: [ { type: "text" as const, text: `Error: ${error.message}` }, ], isError: true, }; } } );