You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-46
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,17 @@ The framework provides a powerful CLI for managing your MCP server projects:
46
46
```bash
47
47
# Create a new project
48
48
mcp create <your project name here>
49
+
50
+
# Create a new project with the new EXPERIMENTAL HTTP transport
51
+
Heads up: This will set cors allowed origin to "*", modify it in the index if you wish
52
+
mcp create <your project name here> --http --port 3000 --cors
49
53
```
50
54
55
+
# Options:
56
+
# --http: Use HTTP transport instead of default stdio
57
+
# --port <number>: Specify HTTP port (default: 8080)
58
+
# --cors: Enable CORS with wildcard (*) access
59
+
51
60
### Adding a Tool
52
61
53
62
```bash
@@ -250,47 +259,9 @@ const server = new MCPServer({
250
259
});
251
260
```
252
261
253
-
#### CORS Configuration
254
-
255
-
The SSE transport supports flexible CORS configuration. By default, it uses permissive settings suitable for development. For production, you should configure CORS according to your security requirements:
0 commit comments