tidewave 0.1.0 → 0.2.4
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/README.md +27 -1
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +14049 -955
- package/dist/core.d.ts +71 -0
- package/dist/core.js +64 -0
- package/dist/evaluation/code_executor.d.ts +2 -0
- package/dist/evaluation/code_executor.js +81 -0
- package/dist/evaluation/eval_worker.d.ts +1 -0
- package/dist/evaluation/eval_worker.js +24 -0
- package/dist/http/handlers/mcp.d.ts +2 -0
- package/dist/http/handlers/shell.d.ts +6 -0
- package/dist/http/index.d.ts +18 -0
- package/dist/http/index.js +33923 -0
- package/dist/http/security.d.ts +11 -0
- package/dist/http/security.js +120 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +94 -231
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +13945 -945
- package/dist/resolution/formatters.d.ts +5 -0
- package/dist/resolution/formatters.js +2 -0
- package/dist/resolution/index.d.ts +6 -0
- package/dist/resolution/index.js +18 -219
- package/dist/resolution/module-resolver.d.ts +8 -0
- package/dist/resolution/module-resolver.js +10 -213
- package/dist/resolution/symbol-finder.d.ts +4 -0
- package/dist/resolution/symbol-finder.js +32 -237
- package/dist/resolution/utils.d.ts +5 -0
- package/dist/resolution/utils.js +5 -211
- package/dist/tools.d.ts +58 -0
- package/dist/tools.js +4099 -0
- package/dist/vite-plugin.d.ts +3 -0
- package/dist/vite-plugin.js +33942 -0
- package/package.json +20 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Simply configure your editor to run `tidewave` in the same directory as your
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npx tidewave mcp
|
|
23
|
-
# or
|
|
23
|
+
# or with Bun
|
|
24
24
|
bunx tidewave mcp
|
|
25
25
|
# or with Deno
|
|
26
26
|
deno run npm:tidewave mcp
|
|
@@ -30,6 +30,32 @@ Available MCP options:
|
|
|
30
30
|
|
|
31
31
|
- `--prefix path` - Specify the directory to find the `package.json` file
|
|
32
32
|
|
|
33
|
+
### HTTP MCP via Vite Plugin
|
|
34
|
+
|
|
35
|
+
Tidewave also provides HTTP-based MCP access through a Vite plugin for
|
|
36
|
+
development environments. Add the plugin to your `vite.config.js`:
|
|
37
|
+
|
|
38
|
+
```javascript
|
|
39
|
+
import { defineConfig } from 'vite';
|
|
40
|
+
import tidewave from 'tidewave/vite-plugin';
|
|
41
|
+
|
|
42
|
+
export default defineConfig({
|
|
43
|
+
plugins: [tidewave()],
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This exposes MCP endpoints at `/tidewave/mcp` and `/tidewave/shell` during
|
|
48
|
+
development.
|
|
49
|
+
|
|
50
|
+
Configuration options:
|
|
51
|
+
|
|
52
|
+
```javascript
|
|
53
|
+
tidewave({
|
|
54
|
+
allowRemoteAccess: false, // Allow access from remote IPs
|
|
55
|
+
allowedOrigins: ['localhost'], // Allowed origins: defaults to the Vite's host+port
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
33
59
|
### CLI Usage
|
|
34
60
|
|
|
35
61
|
Tidewave also provides the MCP features over a CLI tool. Use it directly via
|