Add links-mode embed thumbnails, item metadata, and media filters

This commit is contained in:
Fisto
2026-09-16 11:44:09 +02:00
parent 1fe204b91e
commit 973b9cff92
23 changed files with 863 additions and 82 deletions
+27 -2
View File
@@ -829,12 +829,37 @@ function buildServer(): McpServer {
.describe("Where the item came from"),
scrapeId: z.string().optional().describe("Restrict to one scrape"),
channelId: z.string().optional().describe("Restrict to one source channel"),
authorId: z.string().optional().describe("Restrict to one poster"),
aspect: z
.enum(["vertical", "square", "wide43", "wide169", "ultrawide", "other"])
.optional()
.describe("Aspect-ratio bucket"),
resolution: z
.enum(["sd", "hd", "fhd", "qhd", "uhd", "unknown"])
.optional()
.describe("Resolution bucket by shortest side"),
after: z.string().optional().describe("Only items posted at or after this ISO time"),
before: z.string().optional().describe("Only items posted at or before this ISO time"),
limit: z.number().int().min(1).max(500).optional(),
offset: z.number().int().min(0).optional()
}
},
async ({ kind, source, scrapeId, channelId, limit, offset }) =>
jsonText(media.queryMedia({ kind, source, scrapeId, channelId, limit, offset }))
async ({ kind, source, scrapeId, channelId, authorId, aspect, resolution, after, before, limit, offset }) =>
jsonText(
media.queryMedia({
kind,
source,
scrapeId,
channelId,
authorId,
aspect,
resolution,
after,
before,
limit,
offset
})
)
);
server.registerTool(