create-skybridge 0.0.0-dev.eea25a3 → 0.0.0-dev.f421483

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 (45) hide show
  1. package/dist/index.js +78 -12
  2. package/dist/index.test.js +2 -1
  3. package/package.json +1 -1
  4. package/template/README.md +31 -70
  5. package/template/_gitignore +2 -192
  6. package/template/node_modules/.bin/mcp-inspector +21 -0
  7. package/template/node_modules/.bin/nodemon +21 -0
  8. package/template/node_modules/.bin/shx +21 -0
  9. package/template/node_modules/.bin/tsc +21 -0
  10. package/template/node_modules/.bin/tsserver +21 -0
  11. package/template/node_modules/.bin/tsx +21 -0
  12. package/template/node_modules/.bin/vite +21 -0
  13. package/template/nodemon.json +5 -0
  14. package/template/package.json +29 -11
  15. package/template/server/src/index.ts +4 -3
  16. package/template/server/src/server.ts +45 -60
  17. package/template/tsconfig.json +23 -0
  18. package/template/tsconfig.server.json +11 -0
  19. package/template/web/src/helpers.ts +1 -1
  20. package/template/web/src/index.css +24 -113
  21. package/template/web/src/widgets/magic-8-ball.tsx +24 -0
  22. package/template/web/vite.config.ts +2 -3
  23. package/template/.cursor/mcp.json +0 -7
  24. package/template/.nvmrc +0 -1
  25. package/template/.vscode/launch.json +0 -16
  26. package/template/.vscode/settings.json +0 -3
  27. package/template/.vscode/tasks.json +0 -14
  28. package/template/docs/demo.gif +0 -0
  29. package/template/pnpm-lock.yaml +0 -317
  30. package/template/pnpm-workspace.yaml +0 -7
  31. package/template/server/nodemon.json +0 -5
  32. package/template/server/package.json +0 -36
  33. package/template/server/pnpm-lock.yaml +0 -3796
  34. package/template/server/src/env.ts +0 -12
  35. package/template/server/src/pokedex.ts +0 -148
  36. package/template/server/tsconfig.json +0 -17
  37. package/template/web/components.json +0 -22
  38. package/template/web/package.json +0 -32
  39. package/template/web/pnpm-lock.yaml +0 -2629
  40. package/template/web/src/components/ui/shadcn-io/spinner/index.tsx +0 -272
  41. package/template/web/src/utils.ts +0 -6
  42. package/template/web/src/widgets/pokemon.tsx +0 -203
  43. package/template/web/tsconfig.app.json +0 -34
  44. package/template/web/tsconfig.json +0 -13
  45. package/template/web/tsconfig.node.json +0 -26
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { spawnSync } from "node:child_process";
1
2
  import fs from "node:fs";
2
3
  import path from "node:path";
3
4
  import { fileURLToPath } from "node:url";
@@ -13,20 +14,22 @@ Create a new Skybridge project by copying the starter template.
13
14
  Options:
14
15
  -h, --help show this help message
15
16
  --overwrite remove existing files in target directory
17
+ --immediate install dependencies and start development server
16
18
 
17
19
  Examples:
18
20
  create-skybridge my-app
19
- create-skybridge . --overwrite
21
+ create-skybridge . --overwrite --immediate
20
22
  `;
21
23
  export async function init(args = process.argv.slice(2)) {
22
24
  const argv = mri(args, {
23
- boolean: ["help", "overwrite"],
25
+ boolean: ["help", "overwrite", "immediate"],
24
26
  alias: { h: "help" },
25
27
  });
26
28
  const argTargetDir = argv._[0]
27
29
  ? sanitizeTargetDir(String(argv._[0]))
28
30
  : undefined;
29
31
  const argOverwrite = argv.overwrite;
32
+ const argImmediate = argv.immediate;
30
33
  const help = argv.help;
31
34
  if (help) {
32
35
  console.log(helpMessage);
@@ -48,8 +51,9 @@ export async function init(args = process.argv.slice(2)) {
48
51
  : "Invalid project name";
49
52
  },
50
53
  });
51
- if (prompts.isCancel(projectName))
54
+ if (prompts.isCancel(projectName)) {
52
55
  return cancel();
56
+ }
53
57
  targetDir = sanitizeTargetDir(projectName);
54
58
  }
55
59
  else {
@@ -77,8 +81,9 @@ export async function init(args = process.argv.slice(2)) {
77
81
  },
78
82
  ],
79
83
  });
80
- if (prompts.isCancel(res))
84
+ if (prompts.isCancel(res)) {
81
85
  return cancel();
86
+ }
82
87
  overwrite = res;
83
88
  }
84
89
  else {
@@ -100,25 +105,86 @@ export async function init(args = process.argv.slice(2)) {
100
105
  try {
101
106
  const templateDir = fileURLToPath(new URL("../template", import.meta.url));
102
107
  // Copy template to target directory
103
- fs.cpSync(templateDir, root, { recursive: true });
108
+ fs.cpSync(templateDir, root, {
109
+ recursive: true,
110
+ filter: (src) => [".npmrc"].every((file) => !src.endsWith(file)),
111
+ });
104
112
  // Rename _gitignore to .gitignore
105
113
  fs.renameSync(path.join(root, "_gitignore"), path.join(root, ".gitignore"));
106
114
  // Update project name in package.json
107
115
  const name = path.basename(root);
108
- for (const dir of ["", "server", "web"]) {
109
- const pkgPath = path.join(root, dir, "package.json");
110
- const pkg = fs.readFileSync(pkgPath, "utf-8");
111
- const fixed = pkg.replace(/apps-sdk-template/g, name);
112
- fs.writeFileSync(pkgPath, fixed);
113
- }
116
+ const pkgPath = path.join(root, "package.json");
117
+ const pkg = fs.readFileSync(pkgPath, "utf-8");
118
+ const fixed = pkg.replace(/apps-sdk-template/g, name);
119
+ fs.writeFileSync(pkgPath, fixed);
114
120
  prompts.log.success(`Project created in ${root}`);
115
- prompts.outro(`Done! Next steps:\n\n cd ${targetDir}\n pnpm install\n pnpm dev`);
116
121
  }
117
122
  catch (error) {
118
123
  prompts.log.error("Failed to copy repository");
119
124
  console.error(error);
120
125
  process.exit(1);
121
126
  }
127
+ const userAgent = process.env.npm_config_user_agent;
128
+ const pkgManager = userAgent?.split(" ")[0]?.split("/")[0] || "npm";
129
+ // 4. Ask about immediate installation
130
+ let immediate = argImmediate;
131
+ if (immediate === undefined) {
132
+ if (interactive) {
133
+ const immediateResult = await prompts.confirm({
134
+ message: `Install with ${pkgManager} and start now?`,
135
+ });
136
+ if (prompts.isCancel(immediateResult)) {
137
+ return cancel();
138
+ }
139
+ immediate = immediateResult;
140
+ }
141
+ else {
142
+ immediate = false;
143
+ }
144
+ }
145
+ const installCmd = [pkgManager, "install"];
146
+ const runCmd = [pkgManager];
147
+ switch (pkgManager) {
148
+ case "yarn":
149
+ case "pnpm":
150
+ case "bun":
151
+ break;
152
+ case "deno":
153
+ runCmd.push("task");
154
+ break;
155
+ default:
156
+ runCmd.push("run");
157
+ }
158
+ runCmd.push("dev");
159
+ if (!immediate) {
160
+ prompts.outro(`Done! Next steps:
161
+ cd ${targetDir}
162
+ ${installCmd.join(" ")}
163
+ ${runCmd.join(" ")}
164
+ `);
165
+ return;
166
+ }
167
+ prompts.log.step(`Installing dependencies with ${pkgManager}...`);
168
+ run(installCmd, {
169
+ stdio: "inherit",
170
+ cwd: root,
171
+ });
172
+ prompts.log.step("Starting dev server...");
173
+ run(runCmd, {
174
+ stdio: "inherit",
175
+ cwd: root,
176
+ });
177
+ }
178
+ function run([command, ...args], options) {
179
+ const { status, error } = spawnSync(command, args, options);
180
+ if (status != null && status > 0) {
181
+ process.exit(status);
182
+ }
183
+ if (error) {
184
+ console.error(`\n${command} ${args.join(" ")} error!`);
185
+ console.error(error);
186
+ process.exit(1);
187
+ }
122
188
  }
123
189
  function sanitizeTargetDir(targetDir) {
124
190
  return (targetDir
@@ -1,7 +1,7 @@
1
1
  import { randomBytes } from "node:crypto";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
- import { afterEach, beforeEach, describe, it } from "vitest";
4
+ import { afterEach, beforeEach, describe, expect, it } from "vitest";
5
5
  import { init } from "./index.js";
6
6
  describe("create-skybridge", () => {
7
7
  let tempDirName;
@@ -18,5 +18,6 @@ describe("create-skybridge", () => {
18
18
  const name = `../../${tempDirName}//project$`;
19
19
  await init([name]);
20
20
  await fs.access(path.join(process.cwd(), tempDirName, "project", ".gitignore"));
21
+ expect(fs.access(path.join(process.cwd(), tempDirName, "project", ".npmrc"))).rejects.toThrowError();
21
22
  });
22
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skybridge",
3
- "version": "0.0.0-dev.eea25a3",
3
+ "version": "0.0.0-dev.f421483",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Alpic",
@@ -1,114 +1,75 @@
1
1
  # ChatGPT Apps SDK Alpic Starter
2
2
 
3
- This repository is a minimal Typescript application demonstrating how to build an OpenAI Apps SDK compatible MCP server with widget rendering in ChatGPT.
4
-
5
- ![Demo](docs/demo.gif)
6
-
7
- ## Overview
8
-
9
- This project shows how to integrate a Typescript express application with the ChatGPT Apps SDK using the Model Context Protocol (MCP). It includes a working MCP server that exposes tools and resources that can be called from ChatGPT, with responses rendered natively in ChatGPT. It also includes MCP tools without UI widgets.
3
+ A minimal TypeScript template for building OpenAI Apps SDK compatible MCP servers with widget rendering in ChatGPT.
10
4
 
11
5
  ## Getting Started
12
6
 
13
7
  ### Prerequisites
14
8
 
15
- - Node.js 22+ (see `.nvmrc` for exact version)
16
- - pnpm (install with `npm install -g pnpm`)
17
- - Ngrok
9
+ - Node.js 22+
10
+ - HTTP tunnel such as [ngrok](https://ngrok.com/download)
18
11
 
19
- ### Local Development with Hot Module Replacement (HMR)
20
-
21
- This project uses Vite for React widget development with full HMR support, allowing you to see changes in real-time, directly within ChatGPT conversation, without restarting the server.
12
+ ### Local Development
22
13
 
23
14
  #### 1. Install
24
15
 
25
16
  ```bash
17
+ npm install
18
+ # or
19
+ yarn install
20
+ # or
26
21
  pnpm install
22
+ # or
23
+ bun install
27
24
  ```
28
25
 
29
- #### 2. Start the Development Server
26
+ #### 2. Start your local server
30
27
 
31
28
  Run the development server from the root directory:
32
29
 
33
30
  ```bash
31
+ npm run dev
32
+ # or
33
+ yarn dev
34
+ # or
34
35
  pnpm dev
36
+ # or
37
+ bun dev
35
38
  ```
36
39
 
37
40
  This command starts an Express server on port 3000. This server packages:
38
41
 
39
- - an MCP endpoint on `/mcp` - aka the ChatGPT App Backend
40
- - a React application on Vite HMR dev server - aka the ChatGPT App Frontend
41
-
42
- #### 3. Expose Your Local Server
42
+ - an MCP endpoint on `/mcp` (the app backend)
43
+ - a React application on Vite HMR dev server (the UI elements to be displayed in ChatGPT)
43
44
 
44
- In a separate terminal, expose your local server using ngrok:
45
+ #### 3. Connect to ChatGPT
45
46
 
47
+ - ChatGPT requires connectors to be publicly accessible. To expose your server on the Internet, run:
46
48
  ```bash
47
49
  ngrok http 3000
48
50
  ```
51
+ - In ChatGPT, navigate to **Settings → Connectors → Create** and add the forwarding URL provided by ngrok suffixed with `/mcp` (e.g. `https://3785c5ddc4b6.ngrok-free.app/mcp`)
49
52
 
50
- Copy the forwarding URL from ngrok output:
51
-
52
- ```bash
53
- Forwarding https://3785c5ddc4b6.ngrok-free.app -> http://localhost:3000
54
- ```
55
-
56
- #### 4. Connect to ChatGPT
57
-
58
- - Enable **Settings → Connectors → Advanced → Developer mode** in the ChatGPT client
59
- - Navigate to **Settings → Connectors → Create**
60
- - Enter your ngrok URL with the `/mcp` path (e.g., `https://3785c5ddc4b6.ngrok-free.app/mcp`)
61
- - Click **Create**
62
-
63
- #### 5. Test Your Integration
53
+ ### Create your first widget
64
54
 
65
- - Start a new conversation in ChatGPT
66
- - Select your newly created connector using **the + button → Your connector**
67
- - Try prompting the model (e.g., "Show me pikachu details")
55
+ #### 1. Add a new widget
68
56
 
69
- #### 6. Develop with HMR
57
+ - Register a widget in `server/server.ts` with a unique name (e.g., `my-widget`)
58
+ - Create a matching React component at `web/src/widgets/my-widget.tsx`. The file name must match the widget name exactly
70
59
 
71
- Now you can edit React components in `web` and see changes instantly:
60
+ #### 2. Edit widgets with Hot Module Replacement (HMR)
72
61
 
73
- - Make changes to any component
74
- - Save the file
75
- - The widget will automatically update in ChatGPT without refreshing or reconnecting
76
- - The Express server and MCP server continue running without interruption
62
+ Edit and save components in `web/src/widgets/` — changes appear instantly in ChatGPT
77
63
 
78
- **Note:** When you modify widget components, changes will be reflected immediately. If you modify MCP server code (in `src/`), you may need to reload your connector in **Settings → Connectors → [Your connector] → Reload**.
64
+ #### 3. Edit server code
79
65
 
80
- ## Widget Naming Convention
81
-
82
- **Important:** For a widget to work properly, the name of the endpoint in your MCP server must match the file name of the corresponding React component in `web/src/widgets/`.
83
-
84
- For example:
85
-
86
- - If you create a widget endpoint named `pokemon-card`, you must create a corresponding React component file at `web/src/widgets/pokemon-card.tsx`
87
- - The endpoint name and the widget file name (without the `.tsx` extension) must be identical
88
-
89
- This naming convention allows the system to automatically map widget requests to their corresponding React components.
66
+ Modify files in `server/` and reload your ChatGPT connector in **Settings → Connectors → [Your connector] → Reload**
90
67
 
91
68
  ## Deploy to Production
92
69
 
93
- Use Alpic to deploy your OpenAI App to production.
94
-
95
- [![Deploy on Alpic](https://assets.alpic.ai/button.svg)](https://app.alpic.ai/new/clone?repositoryUrl=https%3A%2F%2Fgithub.com%2Falpic-ai%2Fapps-sdk-template)
96
-
70
+ - Use [Alpic](https://alpic.ai/) to deploy your OpenAI App to production
97
71
  - In ChatGPT, navigate to **Settings → Connectors → Create** and add your MCP server URL (e.g., `https://your-app-name.alpic.live`)
98
72
 
99
- ## Project Structure
100
-
101
- ```
102
- .
103
- ├── server/
104
- │ ├── app.ts # OpenAI App extension class with widget API implementation
105
- │ ├── server.ts # MCP server with tool/resource/prompt registration
106
- │ └── index.ts # Express server definition
107
- └── web/
108
- └── src/
109
- └── widgets/ # React widget components (must match endpoint names)
110
- ```
111
-
112
73
  ## Resources
113
74
 
114
75
  - [Apps SDK Documentation](https://developers.openai.com/apps-sdk)
@@ -1,194 +1,4 @@
1
- # =============================================================================
2
- # OPERATING SYSTEM FILES
3
- # =============================================================================
4
- .DS_Store
5
- .DS_Store?
6
- ._*
7
- .Spotlight-V100
8
- .Trashes
9
- ehthumbs.db
10
- Thumbs.db
11
-
12
- # =============================================================================
13
- # NODE.JS & PACKAGE MANAGERS
14
- # =============================================================================
15
1
  node_modules/
16
- npm-debug.log*
17
- yarn-debug.log*
18
- yarn-error.log*
19
- .pnpm-debug.log*
20
- .npm
21
- .pnp.js
22
- .pnp.cjs
23
- .pnp.mjs
24
- .pnp.json
25
- .pnp.ts
26
-
27
- # =============================================================================
28
- # TYPESCRIPT & JAVASCRIPT
29
- # =============================================================================
30
- *.tsbuildinfo
31
- .tscache/
32
- *.js.map
33
- *.mjs.map
34
- *.cjs.map
35
- *.d.ts.map
36
- *.d.ts
37
- !*.d.ts.template
38
- *.tgz
39
- .eslintcache
40
- .rollup.cache
41
-
42
- # =============================================================================
43
- # PYTHON
44
- # =============================================================================
45
- __pycache__/
46
- *.py[cod]
47
- *$py.class
48
- *.so
49
- .Python
50
- develop-eggs/
51
- eggs/
52
- .eggs/
53
- lib/
54
- lib64/
55
- parts/
56
- sdist/
57
- var/
58
- wheels/
59
- *.egg-info/
60
- .installed.cfg
61
- *.egg
62
- .pytest_cache/
63
- .coverage
64
- htmlcov/
65
- .tox/
66
- .venv
67
- venv/
68
- ENV/
69
-
70
- # =============================================================================
71
- # JAVA
72
- # =============================================================================
73
- *.class
74
- *.jar
75
- *.war
76
- *.nar
77
- *.ear
78
- hs_err_pid*
79
- target/
80
- .gradle/
81
-
82
- # =============================================================================
83
- # RUBY
84
- # =============================================================================
85
- *.gem
86
- *.rbc
87
- /.config
88
- /coverage/
89
- /InstalledFiles
90
- /pkg/
91
- /spec/reports/
92
- /spec/examples.txt
93
- /test/tmp/
94
- /test/version_tmp/
95
- /tmp/
96
- .byebug_history
97
-
98
- # =============================================================================
99
- # BUILD & DISTRIBUTION
100
- # =============================================================================
101
- build/
102
2
  dist/
103
- dist-ssr/
104
- out/
105
-
106
- # =============================================================================
107
- # COMPILED FILES
108
- # =============================================================================
109
- *.com
110
- *.dll
111
- *.exe
112
- *.o
113
-
114
- # =============================================================================
115
- # PACKAGE & ARCHIVE FILES
116
- # =============================================================================
117
- *.7z
118
- *.dmg
119
- *.gz
120
- *.iso
121
- *.rar
122
- *.tar
123
- *.tar.gz
124
- *.zip
125
-
126
- # =============================================================================
127
- # LOGS & DATABASES
128
- # =============================================================================
129
- *.log
130
- *.sql
131
- *.sqlite
132
- *.sqlite3
133
- logs/
134
-
135
- # =============================================================================
136
- # TESTING & COVERAGE
137
- # =============================================================================
138
- coverage/
139
- .nyc_output/
140
-
141
- # =============================================================================
142
- # CACHE & TEMPORARY FILES
143
- # =============================================================================
144
- .cache/
145
- .parcel-cache/
146
- *.bak
147
-
148
- # =============================================================================
149
- # ENVIRONMENT & CONFIGURATION
150
- # =============================================================================
151
- .env
152
- .env.local
153
- .env.development.local
154
- .env.test.local
155
- .env.production.local
156
- .sample-env
157
- sample.*
158
- !sample.template.*
159
- *.local
160
- mcp-servers.json
161
- mcp-config.json
162
-
163
- # =============================================================================
164
- # DEMO & EXAMPLE DIRECTORIES
165
- # =============================================================================
166
- demo/
167
- demos/
168
- example/
169
- examples/
170
- samples/
171
-
172
- # =============================================================================
173
- # GENERATED DOCUMENTATION
174
- # =============================================================================
175
- docs/api/
176
-
177
- # =============================================================================
178
- # EDITOR DIRECTORIES AND FILES
179
- # =============================================================================
180
- .vscode/*
181
- !.vscode/extensions.json
182
- .idea
183
- *.suo
184
- *.ntvs*
185
- *.njsproj
186
- *.sln
187
- *.sw?
188
-
189
- # =============================================================================
190
- # APPLICATION SPECIFIC
191
- # =============================================================================
192
- repomix-output*
193
- duckdata/
194
- .claude
3
+ .env*
4
+ .DS_store
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/cli/build/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/cli/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/cli/build/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/cli/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/inspector/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules/@modelcontextprotocol/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/@modelcontextprotocol+inspector@0.17.5_@types+node@22.18.12_@types+react-dom@19.2.3_@ty_960011790b33063d7255347351a0cc44/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../@modelcontextprotocol/inspector/cli/build/cli.js" "$@"
19
+ else
20
+ exec node "$basedir/../@modelcontextprotocol/inspector/cli/build/cli.js" "$@"
21
+ fi
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules/nodemon/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules/nodemon/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules/nodemon/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules/nodemon/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/nodemon@3.1.11/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../nodemon/bin/nodemon.js" "$@"
19
+ else
20
+ exec node "$basedir/../nodemon/bin/nodemon.js" "$@"
21
+ fi
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules/shx/lib/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules/shx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules/shx/lib/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules/shx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/shx@0.3.4/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../shx/lib/cli.js" "$@"
19
+ else
20
+ exec node "$basedir/../shx/lib/cli.js" "$@"
21
+ fi
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
19
+ else
20
+ exec node "$basedir/../typescript/bin/tsc" "$@"
21
+ fi
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
19
+ else
20
+ exec node "$basedir/../typescript/bin/tsserver" "$@"
21
+ fi
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../tsx/dist/cli.mjs" "$@"
19
+ else
20
+ exec node "$basedir/../tsx/dist/cli.mjs" "$@"
21
+ fi