Skip to content

Commit 1b86b82

Browse files
author
zoedsoupe
committed
wip: failinf with module not found
1 parent 74a5701 commit 1b86b82

5 files changed

Lines changed: 195 additions & 4 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ tidewave({
5656
});
5757
```
5858

59+
### HTTP MCP via Next.js Integration
60+
61+
Tidewave provides seamless integration with Next.js through a simple handler
62+
function. Add the handler to your API routes:
63+
64+
**Pages Router** - Create `pages/api/tidewave/[...all].ts`:
65+
66+
```typescript
67+
import { toNodeHandler } from 'tidewave/next-js';
68+
69+
export default toNodeHandler({
70+
allowRemoteAccess: false,
71+
allowedOrigins: [],
72+
});
73+
```
74+
75+
This exposes MCP endpoints at `/api/tidewave/mcp` and `/api/tidewave/shell`.
76+
5977
### CLI Usage
6078

6179
Tidewave also provides the MCP features over a CLI tool. Use it directly via

0 commit comments

Comments
 (0)