@inliner/mcp-server 1.0.2 → 1.0.3

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/README.md +21 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,7 +39,23 @@ Add to `~/.gemini/settings.json`:
39
39
  ```
40
40
 
41
41
  ### VS Code / Cursor / Windsurf
42
- Add to MCP settings:
42
+
43
+ **Project-specific (Recommended):**
44
+ Create `.cursor/mcp.json` (or `.vscode/mcp.json`) in your project root:
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "inliner": {
49
+ "command": "npx",
50
+ "args": ["@inliner/mcp-server"],
51
+ "env": { "INLINER_API_KEY": "your-key" }
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ **Global setup:**
58
+ Add to Cursor Settings > Features > MCP, or VS Code MCP settings:
43
59
  ```json
44
60
  {
45
61
  "mcpServers": {
@@ -52,6 +68,8 @@ Add to MCP settings:
52
68
  }
53
69
  ```
54
70
 
71
+ **Note:** Using the `env` field is recommended over `--api-key` command-line arguments for better compatibility with MCP clients.
72
+
55
73
  ## Tools
56
74
 
57
75
  | Tool | Description |
@@ -90,8 +108,8 @@ The agent calls `get_usage` and reports your remaining credits by type.
90
108
  Generate an API key from **Account > API Keys** in the [Inliner dashboard](https://app.inliner.ai/account). Only account owners can create and revoke keys.
91
109
 
92
110
  Pass it via:
93
- - Environment variable: `INLINER_API_KEY`
94
- - Command-line argument: `--api-key=YOUR_KEY`
111
+ - **Environment variable** (recommended): `INLINER_API_KEY` — Use the `env` field in MCP configuration files
112
+ - **Command-line argument**: `--api-key=YOUR_KEY` — Works for standalone testing, but may have parsing issues with some MCP clients
95
113
 
96
114
  ## Links
97
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inliner/mcp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server for Inliner.ai — gives AI coding agents live access to your image projects, credits, and generation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {