@sudomock/mcp 1.0.0 → 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 (2) hide show
  1. package/README.md +48 -66
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,19 +1,23 @@
1
- # @sudomock/mcp
1
+ # SudoMock MCP Server
2
2
 
3
- Official [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for [SudoMock](https://sudomock.com) -- the mockup generation API that renders photorealistic product mockups from Photoshop PSD templates.
3
+ > Generate photorealistic product mockups from Claude, Cursor, Windsurf, and VS Code.
4
4
 
5
- This is a local **stdio** MCP server. It runs as a subprocess of your AI editor and communicates with the SudoMock API over HTTPS.
5
+ [Model Context Protocol](https://modelcontextprotocol.io/introduction) server for the [SudoMock](https://sudomock.com) mockup generation API. Upload PSD templates, place artwork onto smart objects, and get CDN-hosted renders -- all through natural language.
6
6
 
7
- ## Prerequisites
7
+ ## Quick Start
8
8
 
9
- - Node.js 18+
10
- - A SudoMock API key ([get one here](https://sudomock.com/dashboard/api-keys))
9
+ ### Option 1: Local (npx)
11
10
 
12
- ## Installation
11
+ ```bash
12
+ claude mcp add sudomock \
13
+ -e SUDOMOCK_API_KEY=sm_your_key_here \
14
+ -- npx -y @sudomock/mcp
15
+ ```
13
16
 
14
- ### Claude Desktop
17
+ Get your API key at [sudomock.com/dashboard/api-keys](https://sudomock.com/dashboard/api-keys).
15
18
 
16
- Add to your `claude_desktop_config.json`:
19
+ <details>
20
+ <summary>JSON config for other clients (Cursor, Windsurf, VS Code)</summary>
17
21
 
18
22
  ```json
19
23
  {
@@ -22,96 +26,74 @@ Add to your `claude_desktop_config.json`:
22
26
  "command": "npx",
23
27
  "args": ["-y", "@sudomock/mcp"],
24
28
  "env": {
25
- "SUDOMOCK_API_KEY": "sm_your_key"
29
+ "SUDOMOCK_API_KEY": "sm_your_key_here"
26
30
  }
27
31
  }
28
32
  }
29
33
  }
30
34
  ```
31
35
 
32
- ### Claude Code
36
+ </details>
33
37
 
34
- ```bash
35
- claude mcp add sudomock -- npx -y @sudomock/mcp
38
+ ### Option 2: Remote (OAuth)
36
39
 
37
- # Then set the environment variable:
38
- export SUDOMOCK_API_KEY="sm_your_key"
39
- ```
40
+ No API key needed. Your client opens a browser for login.
40
41
 
41
- ### Cursor
42
+ ```bash
43
+ claude mcp add --transport http sudomock https://mcp.sudomock.com
44
+ ```
42
45
 
43
- Add to your Cursor MCP settings (`.cursor/mcp.json`):
46
+ <details>
47
+ <summary>JSON config for other clients</summary>
44
48
 
45
49
  ```json
46
50
  {
47
51
  "mcpServers": {
48
52
  "sudomock": {
49
- "command": "npx",
50
- "args": ["-y", "@sudomock/mcp"],
51
- "env": {
52
- "SUDOMOCK_API_KEY": "sm_your_key"
53
- }
53
+ "type": "http",
54
+ "url": "https://mcp.sudomock.com"
54
55
  }
55
56
  }
56
57
  }
57
58
  ```
58
59
 
59
- ### VS Code
60
+ </details>
60
61
 
61
- Add to your VS Code MCP settings (`.vscode/mcp.json`):
62
-
63
- ```json
64
- {
65
- "servers": {
66
- "sudomock": {
67
- "command": "npx",
68
- "args": ["-y", "@sudomock/mcp"],
69
- "env": {
70
- "SUDOMOCK_API_KEY": "sm_your_key"
71
- }
72
- }
73
- }
74
- }
75
- ```
76
-
77
- ## Available Tools
62
+ ## Tools
78
63
 
79
64
  | Tool | Description | Credits |
80
65
  |------|-------------|---------|
81
66
  | `list_mockups` | List your uploaded mockup templates | 0 |
82
- | `get_mockup_details` | Get full details of a mockup (smart object UUIDs, layers, dimensions) | 0 |
83
- | `update_mockup` | Rename a mockup template | 0 |
84
- | `delete_mockup` | Permanently delete a mockup template | 0 |
85
- | `render_mockup` | Render a mockup by placing artwork onto a PSD template | 1 |
67
+ | `get_mockup_details` | Get smart object UUIDs, dimensions, blend modes | 0 |
68
+ | `render_mockup` | Render a mockup with your artwork | 1 |
86
69
  | `ai_render` | AI-powered render without a PSD template | 5 |
87
- | `upload_psd` | Upload a PSD/PSB file as a new mockup template | 0 |
88
- | `get_account` | Get account info, credit balance, and usage stats | 0 |
89
- | `create_studio_session` | Create an embedded studio session for interactive editing | 0 |
90
-
91
- ## Quick Start
92
-
93
- Once installed, ask your AI assistant:
94
-
95
- > "List my SudoMock mockups"
96
-
97
- > "Render my t-shirt mockup with this artwork: https://example.com/design.png"
70
+ | `upload_psd` | Upload a Photoshop PSD/PSB template | 0 |
71
+ | `get_account` | Check plan, credits, and usage | 0 |
72
+ | `update_mockup` | Rename a mockup template | 0 |
73
+ | `delete_mockup` | Delete a mockup template | 0 |
74
+ | `create_studio_session` | Create an embedded editor session | 0 |
98
75
 
99
- > "Check my SudoMock credit balance"
76
+ ## Example Prompts
100
77
 
101
- > "Upload this PSD as a new mockup template: https://example.com/mockup.psd"
78
+ - "List my mockup templates"
79
+ - "Render the t-shirt mockup with this design: https://example.com/logo.png"
80
+ - "Upload this PSD as a new template: https://example.com/mockup.psd"
81
+ - "How many credits do I have left?"
102
82
 
103
- The typical workflow is:
83
+ ## Resources
104
84
 
105
- 1. `list_mockups` - find your mockup template UUID
106
- 2. `get_mockup_details` - find the smart object UUID within the template
107
- 3. `render_mockup` - render with your artwork URL
108
- 4. `get_account` - check remaining credits
85
+ The server provides built-in documentation:
109
86
 
110
- ## API Reference
87
+ - **Quick Start Guide** -- How to use the tools step by step
88
+ - **Pricing** -- Live plan and credit information
89
+ - **Formats** -- Supported output formats, blend modes, and PSD requirements
111
90
 
112
- Base URL: `https://api.sudomock.com`
91
+ ## Links
113
92
 
114
- Full API documentation: [sudomock.com/docs](https://sudomock.com/docs)
93
+ - [Dashboard](https://sudomock.com/dashboard) -- Manage mockups and API keys
94
+ - [API Docs](https://sudomock.com/docs) -- Full REST API reference
95
+ - [Pricing](https://sudomock.com/pricing)
96
+ - [Status](https://sudomock.statuspage.io) -- Service uptime
115
97
 
116
98
  ## License
117
99
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@sudomock/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
+ "mcpName": "io.github.sudomock/mcp",
4
5
  "description": "SudoMock MCP server for Claude, Cursor, and VS Code. Generate photorealistic product mockups from Photoshop PSD templates.",
5
6
  "keywords": [
6
7
  "mcp",