mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-07-06 04:47:12 +08:00
Compare commits
2 Commits
@sveltejs/
...
tunnel-mod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06b3100600 | ||
|
|
107731b720 |
@@ -32,3 +32,9 @@ pnpm run db:studio
|
|||||||
```
|
```
|
||||||
|
|
||||||
https://local.drizzle.studio/
|
https://local.drizzle.studio/
|
||||||
|
|
||||||
|
#### Try the MCP server
|
||||||
|
|
||||||
|
To try the mcp server you can run `pnpm build:mcp`...the local `mpc.json` file it's already using the output of that folder so you can use it automatically in VSCode/Cursor.
|
||||||
|
|
||||||
|
To try the MCP over HTTP and/or remotely, you can use Cloudflare tunnels to expose it via `cloudflared tunnel --url http://localhost:[port]` and then running the server with `pnpm tunnel` (pay attention as this will expose your dev server to the world wide web).
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node src/index.js",
|
"start": "node src/index.js",
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
"tunnel": "vite dev -m tunnel",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"build:mcp": "tsc --project tsconfig.build.json",
|
"build:mcp": "tsc --project tsconfig.build.json",
|
||||||
"prepublishOnly": "pnpm build:mcp",
|
"prepublishOnly": "pnpm build:mcp",
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ export default defineConfig(({ mode }) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: [sveltekit(), devtoolsJson()],
|
plugins: [sveltekit(), devtoolsJson()],
|
||||||
|
server:
|
||||||
|
mode === 'tunnel'
|
||||||
|
? {
|
||||||
|
allowedHosts: true,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
test: {
|
test: {
|
||||||
expect: { requireAssertions: true },
|
expect: { requireAssertions: true },
|
||||||
projects: [
|
projects: [
|
||||||
|
|||||||
Reference in New Issue
Block a user