mcp-new 1.6.0 → 1.7.0
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 +25 -0
- package/dist/{chunk-LJNMSDBU.js → chunk-7GFRSRGU.js} +1733 -28
- package/dist/cli.js +390 -107
- package/dist/index.d.ts +209 -1
- package/dist/index.js +25 -1
- package/package.json +6 -5
- package/templates/python/README.md.ejs +26 -0
- package/templates/python/src/server.py.ejs +193 -31
- package/templates/typescript/README.md.ejs +26 -0
- package/templates/typescript/src/index.ts.ejs +218 -37
package/README.md
CHANGED
|
@@ -42,9 +42,11 @@ mcp-new my-server
|
|
|
42
42
|
| 🧙 **Interactive Wizard** | Step-by-step prompts to configure your MCP server |
|
|
43
43
|
| 🌍 **Multi-Language** | TypeScript, Python, Go, Rust, Java, Kotlin, C#, Elixir |
|
|
44
44
|
| 📦 **Preset Templates** | Ready-to-use templates for common use cases |
|
|
45
|
+
| 🧩 **Prompts & Sampling** | Scaffold MCP prompts and sampling/createMessage helper tool |
|
|
45
46
|
| 🗂️ **Monorepo Support** | Manage multiple MCP servers in one workspace |
|
|
46
47
|
| 📄 **OpenAPI Import** | Auto-generate tools from OpenAPI/Swagger specs |
|
|
47
48
|
| 🤖 **AI Generation** | Create tools from natural language using Claude |
|
|
49
|
+
| 🌐 **Web UI** | Visual project generator at `mcp-new web` |
|
|
48
50
|
| 📚 **Rich Documentation** | Generated README with examples and Claude Desktop config |
|
|
49
51
|
|
|
50
52
|
---
|
|
@@ -63,6 +65,8 @@ mcp-new my-project --preset <name> -y
|
|
|
63
65
|
| `rest-api` | HTTP client wrapper | `http_get` `http_post` `http_put` `http_delete` `set_base_url` |
|
|
64
66
|
| `filesystem` | File system operations | `read_file` `write_file` `list_directory` `search_files` `file_info` |
|
|
65
67
|
|
|
68
|
+
Each preset also ships with prompt templates and enables the sampling helper tool so you can request model output from within your server.
|
|
69
|
+
|
|
66
70
|
<details>
|
|
67
71
|
<summary>📋 Example: Database preset</summary>
|
|
68
72
|
|
|
@@ -138,6 +142,20 @@ mcp-new monorepo add data-service -p
|
|
|
138
142
|
mcp-new monorepo list
|
|
139
143
|
```
|
|
140
144
|
|
|
145
|
+
### Web UI
|
|
146
|
+
|
|
147
|
+
Launch a visual project generator in your browser:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Start the web generator
|
|
151
|
+
mcp-new web
|
|
152
|
+
|
|
153
|
+
# Custom port
|
|
154
|
+
mcp-new web --port 8080
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
The web UI provides a multi-step wizard for configuring project name, language, transport, tools, resources, and presets — with live file preview and tar.gz download.
|
|
158
|
+
|
|
141
159
|
### Additional Commands
|
|
142
160
|
|
|
143
161
|
```bash
|
|
@@ -150,6 +168,10 @@ mcp-new add-tool
|
|
|
150
168
|
# List all available presets
|
|
151
169
|
mcp-new list-presets
|
|
152
170
|
|
|
171
|
+
# Dev mode with hot reload and MCP Inspector
|
|
172
|
+
mcp-new dev
|
|
173
|
+
mcp-new dev --project ./packages/my-server --no-inspector
|
|
174
|
+
|
|
153
175
|
# Validate current MCP server project
|
|
154
176
|
mcp-new validate
|
|
155
177
|
|
|
@@ -192,6 +214,8 @@ Commands:
|
|
|
192
214
|
init Initialize in current directory
|
|
193
215
|
add-tool Add tool to existing project
|
|
194
216
|
list-presets List all available preset templates
|
|
217
|
+
web Start web-based project generator UI
|
|
218
|
+
dev Run dev mode with hot reload and inspector
|
|
195
219
|
validate Validate current MCP server project
|
|
196
220
|
upgrade Upgrade MCP SDK to latest version
|
|
197
221
|
monorepo init Create a monorepo workspace
|
|
@@ -315,6 +339,7 @@ For detailed documentation, see the [docs](./docs) folder:
|
|
|
315
339
|
| [Templates](./docs/templates.md) | Language-specific guides |
|
|
316
340
|
| [OpenAPI Integration](./docs/openapi.md) | Generate from specs |
|
|
317
341
|
| [AI Generation](./docs/ai-generation.md) | Create with Claude |
|
|
342
|
+
| [Web UI](./docs/web-ui.md) | Visual project generator |
|
|
318
343
|
| [Contributing](./docs/contributing.md) | How to contribute |
|
|
319
344
|
|
|
320
345
|
## 🔗 Resources
|