{"_id":"@a2c-j1/edit-image-mcp","name":"@a2c-j1/edit-image-mcp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a2c-j1/edit-image-mcp","version":"1.0.0","description":"MCP server for adding speech bubbles to images","main":"dist/index.js","types":"dist/index.d.ts","bin":{"edit-image-server":"dist/index.js"},"scripts":{"build":"tsc","prepublishOnly":"npm run build","start":"ts-node src/index.ts","test":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage","dev":"ts-node --watch src/index.ts"},"keywords":["mcp","model-context-protocol","image-editing","speech-bubble","image-manipulation","typescript"],"author":{"name":"a2c-j1"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/a2c-j1/edit-image.git"},"bugs":{"url":"https://github.com/a2c-j1/edit-image/issues"},"homepage":"https://github.com/a2c-j1/edit-image#readme","type":"commonjs","dependencies":{"@modelcontextprotocol/sdk":"^1.16.0","canvas":"^3.1.2"},"devDependencies":{"@types/jest":"^30.0.0","@types/node":"^24.1.0","jest":"^30.0.5","ts-jest":"^29.4.0","ts-node":"^10.9.2","typescript":"^5.8.3"},"engines":{"node":">=16.0.0"},"publishConfig":{"access":"public"},"_id":"@a2c-j1/edit-image-mcp@1.0.0","gitHead":"29f22927c976a0cc6f451ec5ac713434a34c56c5","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Txku842fGAHXQBKWiNnBBuv9xzbhNAHfO00FDYqd3a/7pjbPayxxgBYfC+/GYLtXpfyu6qXlIG0Hd8x3o2HK/w==","shasum":"0e94805e636df65cce4a70fc80728b7a2c4575d6","tarball":"https://registry.npmjs.org/@a2c-j1/edit-image-mcp/-/edit-image-mcp-1.0.0.tgz","fileCount":15,"unpackedSize":46279,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB9WkQ9HJIp4K9HzX4T9e7TeDTTT369QWAKvVOaPqRVUAiEAqXA9JRx8Q1ZKTuKQsBwMpwn3htJwFI9XKqxsFfzxwZQ="}]},"_npmUser":{"name":"a2c-j1","email":"atoc.10o6.derfreischutz@gmail.com"},"directories":{},"maintainers":[{"name":"a2c-j1","email":"atoc.10o6.derfreischutz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/edit-image-mcp_1.0.0_1753278410499_0.3341607430575244"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-23T13:46:50.392Z","1.0.0":"2025-07-23T13:46:51.051Z","modified":"2025-07-23T13:46:51.315Z"},"maintainers":[{"name":"a2c-j1","email":"atoc.10o6.derfreischutz@gmail.com"}],"description":"MCP server for adding speech bubbles to images","homepage":"https://github.com/a2c-j1/edit-image#readme","keywords":["mcp","model-context-protocol","image-editing","speech-bubble","image-manipulation","typescript"],"repository":{"type":"git","url":"git+https://github.com/a2c-j1/edit-image.git"},"author":{"name":"a2c-j1"},"bugs":{"url":"https://github.com/a2c-j1/edit-image/issues"},"license":"MIT","readme":"# Edit Image MCP Server\n\n画像に吹き出しを追加するMCP（Model Context Protocol）サーバーです。\n\n## インストール\n\n```bash\nnpm install @a2c-j1/edit-image-mcp\n```\n\n## 機能\n\n- 画像に吹き出し（スピーチバブル）を追加\n- 複数の吹き出し形状をサポート（長方形、楕円、雲形）\n- カスタマイズ可能なスタイル設定\n- 矢印付き吹き出し\n- 自動テキスト折り返し\n- タイムスタンプ付きファイル出力\n\n## 開発者向けセットアップ\n\n```bash\ngit clone https://github.com/a2c-j1/edit-image.git\ncd edit-image\nnpm install\nnpm run build\n```\n\n## 使用方法\n\n---\n\n## MCPサーバー導入例\n\n本プロジェクトをMCPサーバーとして利用するには、`mcp.config.json`やMCPクライアントの設定ファイルに以下のようなエントリを追加してください。\n\n### 設定例（settings.json）\n\n```json\n{\n  \"mcpServers\": {\n    \"edit-image\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"node_modules/@a2c-j1/edit-image-mcp/dist/index.js\"\n      ],\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\nまたは、グローバルにインストールした場合：\n\n```json\n{\n  \"mcpServers\": {\n    \"edit-image\": {\n      \"command\": \"edit-image-server\",\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n## API\n\n### add_speech_bubble ツール\n\n画像に吹き出しを追加します。\n\n#### パラメータ\n\n- `imagePath` (string): 入力画像ファイルのパス\n- `text` (string): 吹き出し内のテキスト\n- `position` (object): 吹き出しの配置座標\n  - `x` (number): X座標\n  - `y` (number): Y座標\n- `properties` (object): 吹き出しのプロパティ\n  - `shape` (string): 形状 (`'rectangle'` | `'ellipse'` | `'cloud'`)\n  - `style` (object): スタイル設定\n    - `backgroundColor` (string): 背景色（16進数）\n    - `borderColor` (string): 境界線色（16進数）\n    - `borderWidth` (number): 境界線幅（ピクセル）\n    - `cornerRadius` (number): 角の丸み（長方形用）\n    - `fontSize` (number): フォントサイズ（ピクセル）\n    - `fontFamily` (string): フォントファミリー\n    - `textColor` (string): テキスト色（16進数）\n    - `padding` (number): 内側の余白（ピクセル）\n    - `maxWidth` (number, optional): テキスト折り返し最大幅\n    - `opacity` (number, optional): 透明度（0-1）\n  - `arrow` (object, optional): 矢印設定\n    - `direction` (string): 矢印の向き\n    - `length` (number): 矢印の長さ（ピクセル）\n    - `width` (number): 矢印の幅（ピクセル）\n  - `autoSize` (boolean, optional): 自動サイズ調整\n\n#### 出力\n\n編集された画像は元ファイル名にタイムスタンプを付けた形式で保存されます：\n`元ファイル名_{タイムスタンプ}.{拡張子}`\n\n## サポートされる画像形式\n\n- JPEG (.jpg, .jpeg)\n- PNG (.png)\n- GIF (.gif)\n- BMP (.bmp)\n- WebP (.webp)\n","readmeFilename":"README.md","_rev":"1-5eaaea854bd62684222cd740a7730e29"}