Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ vite.config.ts.timestamp-*
# Coding agents
CLAUDE.md
.claude/
.mcp.json
.mcp.json

/.yalc/
yalc.lock
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,33 @@ tidewave({
});
```

### HTTP MCP via Next.js Integration

Tidewave provides seamless integration with Next.js through a simple handler
function. Add the handler to your API routes:

**Pages Router** - Create `pages/api/tidewave/[...all].ts`:

```typescript
import { toNodeHandler } from 'tidewave/next-js';

// Optional tidewave internal config
export default toNodeHandler({
allowRemoteAccess: false,
allowedOrigins: [],
});

// Next.js specific config
export const config = {
runtime: 'nodejs',
api: {
bodyParser: false,
},
};
```

This exposes MCP endpoints at `/api/tidewave/mcp` and `/api/tidewave/shell`.
Comment thread
zoedsoupe marked this conversation as resolved.

### CLI Usage

Tidewave also provides the MCP features over a CLI tool. Use it directly via
Expand Down
104 changes: 103 additions & 1 deletion bun.lock

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@ export default [
'@typescript-eslint': tseslint,
},
rules: {
'no-unused-vars': 'off',
// TypeScript rules
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'after-used',
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-var-requires': 'error',
Expand Down
Loading