Rename package to mcpimg, ignore .mcp.json
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
README.md
18
README.md
@@ -19,7 +19,7 @@ MCP server for AI image generation. Works with <b>Claude Code</b>, <b>Cursor</b>
|
||||
No install needed — just use `npx`:
|
||||
|
||||
```bash
|
||||
OPENROUTER_API_KEY="sk-or-v1-..." npx -y mcp-image-generator
|
||||
OPENROUTER_API_KEY="sk-or-v1-..." npx -y mcpimg
|
||||
```
|
||||
|
||||
## Tools
|
||||
@@ -54,7 +54,7 @@ List all configured providers and their available image models.
|
||||
```bash
|
||||
claude mcp add --scope user --transport stdio image-gen \
|
||||
--env OPENROUTER_API_KEY=sk-or-v1-xxx \
|
||||
-- npx -y mcp-image-generator
|
||||
-- npx -y mcpimg
|
||||
```
|
||||
|
||||
Or create `.mcp.json` in your project root:
|
||||
@@ -63,7 +63,7 @@ Or create `.mcp.json` in your project root:
|
||||
"mcpServers": {
|
||||
"image-gen": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "mcp-image-generator"],
|
||||
"args": ["-y", "mcpimg"],
|
||||
"env": {
|
||||
"OPENROUTER_API_KEY": "sk-or-v1-..."
|
||||
}
|
||||
@@ -80,7 +80,7 @@ Edit `~/.cursor/mcp.json`:
|
||||
"mcpServers": {
|
||||
"image-gen": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "mcp-image-generator"],
|
||||
"args": ["-y", "mcpimg"],
|
||||
"env": {
|
||||
"OPENROUTER_API_KEY": "sk-or-v1-..."
|
||||
}
|
||||
@@ -101,7 +101,7 @@ Edit the config file:
|
||||
"mcpServers": {
|
||||
"image-gen": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "mcp-image-generator"],
|
||||
"args": ["-y", "mcpimg"],
|
||||
"env": {
|
||||
"OPENROUTER_API_KEY": "sk-or-v1-..."
|
||||
}
|
||||
@@ -118,7 +118,7 @@ Edit `~/.config/opencode/opencode.json` or `opencode.json` in project root:
|
||||
"mcp": {
|
||||
"image-gen": {
|
||||
"type": "local",
|
||||
"command": ["npx", "-y", "mcp-image-generator"],
|
||||
"command": ["npx", "-y", "mcpimg"],
|
||||
"environment": {
|
||||
"OPENROUTER_API_KEY": "sk-or-v1-..."
|
||||
},
|
||||
@@ -138,7 +138,7 @@ Add to `crush.json` in your project root:
|
||||
"image-gen": {
|
||||
"type": "stdio",
|
||||
"command": "npx",
|
||||
"args": ["-y", "mcp-image-generator"],
|
||||
"args": ["-y", "mcpimg"],
|
||||
"env": {
|
||||
"OPENROUTER_API_KEY": "sk-or-v1-..."
|
||||
}
|
||||
@@ -156,7 +156,7 @@ mcp-servers:
|
||||
command: [npx]
|
||||
args:
|
||||
- -y
|
||||
- mcp-image-generator
|
||||
- mcpimg
|
||||
env:
|
||||
- OPENROUTER_API_KEY=sk-or-v1-...
|
||||
```
|
||||
@@ -166,7 +166,7 @@ mcp-servers:
|
||||
This server uses **stdio transport** (JSON-RPC over stdin/stdout). Any agent that supports MCP stdio can use it:
|
||||
|
||||
```bash
|
||||
npx -y mcp-image-generator
|
||||
npx -y mcpimg
|
||||
|
||||
# Required environment variables (at least one)
|
||||
OPENROUTER_API_KEY=... # OpenRouter (default)
|
||||
|
||||
Reference in New Issue
Block a user