Compare commits

...

2 Commits

Author SHA1 Message Date
Paolo Ricciuti
06b3100600 Update README.md
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>
2025-09-20 09:21:43 +02:00
paoloricciuti
107731b720 fix: add tunnel mode to test the http mcp with cloudflare tunnels 2025-09-19 12:22:21 +02:00
3 changed files with 13 additions and 0 deletions

View File

@@ -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).

View File

@@ -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",

View File

@@ -8,6 +8,12 @@ export default defineConfig(({ mode }) => {
return {
plugins: [sveltekit(), devtoolsJson()],
server:
mode === 'tunnel'
? {
allowedHosts: true,
}
: undefined,
test: {
expect: { requireAssertions: true },
projects: [