@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.
- package/README.md +48 -66
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SudoMock MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Generate photorealistic product mockups from Claude, Cursor, Windsurf, and VS Code.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
##
|
|
7
|
+
## Quick Start
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- A SudoMock API key ([get one here](https://sudomock.com/dashboard/api-keys))
|
|
9
|
+
### Option 1: Local (npx)
|
|
11
10
|
|
|
12
|
-
|
|
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
|
-
|
|
17
|
+
Get your API key at [sudomock.com/dashboard/api-keys](https://sudomock.com/dashboard/api-keys).
|
|
15
18
|
|
|
16
|
-
|
|
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": "
|
|
29
|
+
"SUDOMOCK_API_KEY": "sm_your_key_here"
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
```
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
</details>
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
claude mcp add sudomock -- npx -y @sudomock/mcp
|
|
38
|
+
### Option 2: Remote (OAuth)
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
export SUDOMOCK_API_KEY="sm_your_key"
|
|
39
|
-
```
|
|
40
|
+
No API key needed. Your client opens a browser for login.
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
```bash
|
|
43
|
+
claude mcp add --transport http sudomock https://mcp.sudomock.com
|
|
44
|
+
```
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
<details>
|
|
47
|
+
<summary>JSON config for other clients</summary>
|
|
44
48
|
|
|
45
49
|
```json
|
|
46
50
|
{
|
|
47
51
|
"mcpServers": {
|
|
48
52
|
"sudomock": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
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
|
-
|
|
60
|
+
</details>
|
|
60
61
|
|
|
61
|
-
|
|
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
|
|
83
|
-
| `
|
|
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
|
|
88
|
-
| `get_account` |
|
|
89
|
-
| `
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
76
|
+
## Example Prompts
|
|
100
77
|
|
|
101
|
-
|
|
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
|
-
|
|
83
|
+
## Resources
|
|
104
84
|
|
|
105
|
-
|
|
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
|
-
|
|
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
|
-
|
|
91
|
+
## Links
|
|
113
92
|
|
|
114
|
-
|
|
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.
|
|
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",
|