emitter-mcp 1.0.1

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 (3) hide show
  1. package/README.md +81 -0
  2. package/dist/server.js +2071 -0
  3. package/package.json +29 -0
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # emitter-mcp
2
+
3
+ Make and edit images with [Emitter](https://emitter.sh) via agent
4
+
5
+ Emitter is an image generator with an API built for agents. This package provides agents with its set of tools for rendering, editing, and reviewing images. It runs on your own computer and talks to Emitter for you. No images are stored on the server
6
+
7
+ ## Prerequisites
8
+
9
+ 1. Bring your own agent
10
+ 2. Node.js 20 or newer
11
+ 3. A [fal](https://fal.ai/dashboard/keys) API key. fal runs the image models (OpenAI, Google, xAI, FLUX) and bills them under one key
12
+ 4. The connect text from Emitter. Open [emitter.sh](https://emitter.sh), click **Agent** in the bottom bar, and press **Copy**. The copied text contains a token that lets your agent render on your fal account without ever seeing your fal key
13
+
14
+ ## How to use
15
+
16
+ 1. Paste the connect text from step 4 into your agent, which adds the MCP server:
17
+
18
+ ```json
19
+ {
20
+ "mcpServers": {
21
+ "emitter": {
22
+ "command": "npx",
23
+ "args": ["-y", "emitter-mcp"],
24
+ "env": { "EMITTER_TOKEN": "your token" }
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ 2. Start prompting
31
+
32
+ ## Agent tools
33
+
34
+ | Tool call | Use case |
35
+ |---|---|
36
+ | `guide` | Reads how to write prompts and which models and options exist |
37
+ | `generate` | Makes images from a prompt, or edits part of an existing image |
38
+ | `batch` | Makes several different images in one go |
39
+ | `job` | Keeps waiting on a render that is still running, or cancels it |
40
+ | `look` | Shows images to the agent so it can check its own work |
41
+ | `feedback` | Records what you said about a result and which images you kept |
42
+ | `context` | Reports what has been made so far and whether the connection works |
43
+ | `show` | Opens a result in Emitter so you can look at it and pick |
44
+ | `call` | Reaches any other part of the Emitter API |
45
+
46
+ (The same features are also available in the Emitter UI)
47
+
48
+ ## Storage
49
+
50
+ - **Images** are saved to `~/Downloads/emitter`
51
+ - **Everything else** lives in `~/.emitter` on your computer: your render history with the images you kept, the reference images you've uploaded, and what the agent has learned about your preferences
52
+
53
+ Emitter's server is stateless and retains nothing. Images and references are hosted on fal. Delete `~/.emitter` to reset
54
+
55
+ ## Settings
56
+
57
+ | Setting | Description | Default value |
58
+ |---|---|---|
59
+ | `EMITTER_TOKEN` | Authentication | none |
60
+ | `EMITTER_IMAGES` | Save images to another directory | `~/Downloads/emitter` |
61
+ | `EMITTER_HOME` | Store local state in another directory | `~/.emitter` |
62
+ | `EMITTER_URL` | Connect to a self-hosted Emitter | `https://emitter.sh` |
63
+ | `EMITTER_ENV_FILE` | Load settings from a file of `NAME=value` lines | `~/.emitter/env` |
64
+
65
+ Settings are environment variables, read on every tool call
66
+
67
+ ### Custom GPT Image deployment
68
+
69
+ Renders run on fal by default. GPT Image 2.5 Sunburst can run on your own deployment by setting:
70
+
71
+ | Setting | Description |
72
+ |---|---|
73
+ | `EMITTER_DIRECT_KEY` | The API key for your resource |
74
+ | `EMITTER_DIRECT_RESOURCE` | The resource's name |
75
+ | `EMITTER_DIRECT_DEPLOYMENT` | The name of the image deployment on it |
76
+
77
+ While set, only that model is available. Set `EMITTER_DIRECT_ONLY=false` to also allow fal models
78
+
79
+ ## Errors
80
+
81
+ - **"Unauthorized" or a 401:** the token is missing or wrong. Copy it from [emitter.sh](https://emitter.sh)