create-skybridge 0.16.2 → 0.16.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.
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"express": "^5.1.0",
|
|
20
20
|
"react": "^19.1.1",
|
|
21
21
|
"react-dom": "^19.1.1",
|
|
22
|
-
"skybridge": ">=0.16.
|
|
22
|
+
"skybridge": ">=0.16.2 <1.0.0",
|
|
23
23
|
"vite": "^7.1.11",
|
|
24
24
|
"zod": "^4.1.13"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@modelcontextprotocol/inspector": "^0.17.5",
|
|
28
|
+
"@skybridge/devtools": ">=0.16.2 <1.0.0",
|
|
28
29
|
"@types/express": "^5.0.3",
|
|
29
30
|
"@types/node": "^22.15.30",
|
|
30
31
|
"@types/react": "^19.1.16",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import express, { type Express } from "express";
|
|
2
|
-
|
|
3
|
-
import { widgetsDevServer } from "skybridge/server";
|
|
2
|
+
import { devtoolsStaticServer, widgetsDevServer } from "skybridge/server";
|
|
4
3
|
import type { ViteDevServer } from "vite";
|
|
5
4
|
import { mcp } from "./middleware.js";
|
|
6
5
|
import server from "./server.js";
|
|
@@ -14,6 +13,7 @@ app.use(mcp(server));
|
|
|
14
13
|
const env = process.env.NODE_ENV || "development";
|
|
15
14
|
|
|
16
15
|
if (env !== "production") {
|
|
16
|
+
app.use(await devtoolsStaticServer());
|
|
17
17
|
app.use(await widgetsDevServer());
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -27,6 +27,10 @@ app.listen(3000, (error) => {
|
|
|
27
27
|
console.log(
|
|
28
28
|
"Make your local server accessible with 'ngrok http 3000' and connect to ChatGPT with URL https://xxxxxx.ngrok-free.app/mcp",
|
|
29
29
|
);
|
|
30
|
+
|
|
31
|
+
if (env !== "production") {
|
|
32
|
+
console.log("Devtools available at http://localhost:3000");
|
|
33
|
+
}
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
process.on("SIGINT", async () => {
|