fix: allow optional blog image URLs
CI / Build & Test (push) Successful in 18s

This commit is contained in:
Space-Banane
2026-07-02 12:22:55 +02:00
parent bc42508849
commit c6efac0159
+1 -1
View File
@@ -37,7 +37,7 @@ export function registerBlogTools(server: McpServer, client: BetterNewsClient) {
title: z.string().min(1).max(150).describe("Post title"),
content: z.string().min(1).describe("Post body (markdown supported)"),
excerpt: z.string().max(300).optional().describe("Short excerpt shown in listings"),
imageUrl: z.string().url().optional().describe("Hero image URL"),
imageUrl: z.string().url().nullable().optional().describe("Hero image URL"),
},
handleTool(async (body) => {
const data = await client.post<unknown>("/api/blog", body);