corent-mcp 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/server.js +6 -2
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -209,13 +209,17 @@ export function createCorentServer(config = {}) {
209
209
  preference: z.enum(["fast", "cheap", "quality", "balanced"]).default("balanced"),
210
210
  aspect_ratio: z.enum(["16:9", "9:16", "1:1"]).default("16:9"),
211
211
  duration_s: z.number().int().min(1).max(30).optional().describe("Requested duration in seconds"),
212
+ resolution: z
213
+ .enum(["720p", "1080p", "4k"])
214
+ .optional()
215
+ .describe("Pixel resolution (default 720p). Tier-capped: premium/pro allow up to 1080p, max_pro up to 4k; above the tier's cap it is clamped down, never rejected. Higher resolutions cost more (1080p ~2.5x, 4k ~5.5x). GET /v1/tiers lists each tier's menu with prices."),
212
216
  image_url: z.string().url().optional().describe("If set, animates this image instead of pure text-to-video"),
213
217
  },
214
218
  outputSchema: jobOutput,
215
219
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
216
- }, wrap(async ({ prompt, tier, preference, aspect_ratio, duration_s, image_url }) => corent("/v1/videos/generate", {
220
+ }, wrap(async ({ prompt, tier, preference, aspect_ratio, duration_s, resolution, image_url }) => corent("/v1/videos/generate", {
217
221
  method: "POST",
218
- body: JSON.stringify({ prompt, tier, preference, aspect_ratio, duration_s, image_url }),
222
+ body: JSON.stringify({ prompt, tier, preference, aspect_ratio, duration_s, resolution, image_url }),
219
223
  })));
220
224
  server.registerTool("get_job", {
221
225
  title: "Check job status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corent-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "MCP server for the Corent media generation API — give any AI agent the ability to generate images and videos.",
5
5
  "mcpName": "io.github.gg13121/corent-mcp",
6
6
  "license": "MIT",