mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-07-03 19:19:25 +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/
|
||||
|
||||
#### 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": {
|
||||
"start": "node src/index.js",
|
||||
"dev": "vite dev",
|
||||
"tunnel": "vite dev -m tunnel",
|
||||
"build": "vite build",
|
||||
"build:mcp": "tsc --project tsconfig.build.json",
|
||||
"prepublishOnly": "pnpm build:mcp",
|
||||
|
||||
@@ -8,6 +8,12 @@ export default defineConfig(({ mode }) => {
|
||||
|
||||
return {
|
||||
plugins: [sveltekit(), devtoolsJson()],
|
||||
server:
|
||||
mode === 'tunnel'
|
||||
? {
|
||||
allowedHosts: true,
|
||||
}
|
||||
: undefined,
|
||||
test: {
|
||||
expect: { requireAssertions: true },
|
||||
projects: [
|
||||
|
||||
Reference in New Issue
Block a user