Skip to content

Commit a2f9858

Browse files
shinprclaude
andcommitted
chore: bump version to 0.3.0
- Update package.json, package-lock.json, and server.json to version 0.3.0 - Add aspectRatio parameter support to image generation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9f23830 commit a2f9858

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mcp-image",
33
"mcpName": "io.github.shinpr/mcp-image",
4-
"version": "0.2.3",
4+
"version": "0.3.0",
55
"description": "MCP server for AI image generation",
66
"main": "dist/index.js",
77
"bin": {

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"url": "https://github.com/shinpr/mcp-image",
1010
"source": "github"
1111
},
12-
"version": "0.2.3",
12+
"version": "0.3.0",
1313
"packages": [
1414
{
1515
"registry_type": "npm",
1616
"registry_base_url": "https://registry.npmjs.org",
1717
"identifier": "mcp-image",
18-
"version": "0.2.3",
18+
"version": "0.3.0",
1919
"transport": {
2020
"type": "stdio"
2121
},

src/server/mcpServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class MCPServerImpl {
121121
},
122122
aspectRatio: {
123123
type: 'string' as const,
124-
description: 'Aspect ratio for the generated image (default: "1:1")',
124+
description: 'Aspect ratio for the generated image',
125125
enum: ['1:1', '2:3', '3:2', '3:4', '4:3', '4:5', '5:4', '9:16', '16:9', '21:9'],
126126
},
127127
},
@@ -256,6 +256,7 @@ export class MCPServerImpl {
256256
const generationResult = await this.geminiClient.generateImage({
257257
prompt: structuredPrompt,
258258
...(inputImageData && { inputImage: inputImageData }),
259+
...(params.aspectRatio && { aspectRatio: params.aspectRatio }),
259260
})
260261

261262
if (!generationResult.success) {

0 commit comments

Comments
 (0)