@jaypie/mcp 0.7.1 → 0.7.2
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/dist/suites/docs/index.js +1 -1
- package/package.json +1 -1
- package/release-notes/mcp/0.7.2.md +18 -0
- package/skills/cdk.md +18 -1
- package/skills/streaming.md +36 -0
|
@@ -9,7 +9,7 @@ import { gt } from 'semver';
|
|
|
9
9
|
/**
|
|
10
10
|
* Docs Suite - Documentation services (skill, version, release_notes)
|
|
11
11
|
*/
|
|
12
|
-
const BUILD_VERSION_STRING = "@jaypie/mcp@0.7.
|
|
12
|
+
const BUILD_VERSION_STRING = "@jaypie/mcp@0.7.2#5d947297"
|
|
13
13
|
;
|
|
14
14
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
15
15
|
const __dirname$1 = path.dirname(__filename$1);
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.7.2
|
|
3
|
+
date: 2026-01-30
|
|
4
|
+
summary: Document JaypieNextJs streaming configuration requirements
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Documentation
|
|
8
|
+
|
|
9
|
+
- Added JaypieNextJs streaming documentation to `streaming.md` skill
|
|
10
|
+
- Added JaypieNextJs construct to `cdk.md` skill
|
|
11
|
+
- Clarified that `streaming: true` requires `open-next.config.ts` with `aws-lambda-streaming` wrapper
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
|
|
15
|
+
Issue #171 reported that `JaypieNextJs` with `streaming: true` returns a JSON envelope instead of streamed HTML. This is expected behavior - Lambda response streaming requires both:
|
|
16
|
+
|
|
17
|
+
1. CDK: `streaming: true` (configures `InvokeMode: RESPONSE_STREAM`)
|
|
18
|
+
2. Next.js: `open-next.config.ts` with `wrapper: "aws-lambda-streaming"`
|
package/skills/cdk.md
CHANGED
|
@@ -139,7 +139,24 @@ const handler = new JaypieLambda(this, "Handler", {
|
|
|
139
139
|
});
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
+
## JaypieNextJs
|
|
143
|
+
|
|
144
|
+
Deploy Next.js applications:
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { JaypieNextJs } from "@jaypie/constructs";
|
|
148
|
+
|
|
149
|
+
new JaypieNextJs(this, "App", {
|
|
150
|
+
nextjsPath: "../nextjs",
|
|
151
|
+
domainName: "app.example.com",
|
|
152
|
+
hostedZone: "example.com",
|
|
153
|
+
streaming: true, // Optional: enables response streaming
|
|
154
|
+
});
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Streaming Note:** When `streaming: true`, also create `open-next.config.ts` in your Next.js app with `wrapper: "aws-lambda-streaming"`. See `skill("streaming")` for details.
|
|
158
|
+
|
|
142
159
|
## See Also
|
|
143
160
|
|
|
144
|
-
- **`skill("streaming")`** - JaypieDistribution
|
|
161
|
+
- **`skill("streaming")`** - JaypieDistribution and JaypieNextJs streaming configuration
|
|
145
162
|
- **`skill("websockets")`** - JaypieWebSocket and JaypieWebSocketTable constructs
|
package/skills/streaming.md
CHANGED
|
@@ -76,6 +76,8 @@ export const handler = lambdaStreamHandler(async (event, context) => {
|
|
|
76
76
|
|
|
77
77
|
## CDK Configuration
|
|
78
78
|
|
|
79
|
+
### JaypieDistribution
|
|
80
|
+
|
|
79
81
|
```typescript
|
|
80
82
|
import { JaypieLambda, JaypieDistribution } from "@jaypie/constructs";
|
|
81
83
|
|
|
@@ -90,6 +92,40 @@ new JaypieDistribution(this, "Api", {
|
|
|
90
92
|
});
|
|
91
93
|
```
|
|
92
94
|
|
|
95
|
+
### JaypieNextJs Streaming
|
|
96
|
+
|
|
97
|
+
For Next.js applications with `JaypieNextJs`, streaming requires **two** configurations:
|
|
98
|
+
|
|
99
|
+
1. **CDK** - Set `streaming: true` in the construct
|
|
100
|
+
2. **Next.js App** - Create `open-next.config.ts` with the streaming wrapper
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
// CDK Stack
|
|
104
|
+
import { JaypieNextJs } from "@jaypie/constructs";
|
|
105
|
+
|
|
106
|
+
new JaypieNextJs(this, "App", {
|
|
107
|
+
nextjsPath: "../nextjs",
|
|
108
|
+
streaming: true,
|
|
109
|
+
});
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
// nextjs/open-next.config.ts (required for streaming)
|
|
114
|
+
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
|
|
115
|
+
|
|
116
|
+
const config = {
|
|
117
|
+
default: {
|
|
118
|
+
override: {
|
|
119
|
+
wrapper: "aws-lambda-streaming",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
} satisfies OpenNextConfig;
|
|
123
|
+
|
|
124
|
+
export default config;
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Important:** Without `open-next.config.ts`, the Lambda returns a JSON envelope `{ statusCode, headers, body }` instead of streaming HTML. This is because `cdk-nextjs-standalone` configures the Lambda Function URL with `RESPONSE_STREAM` invoke mode, but OpenNext also needs to be configured to use the streaming wrapper.
|
|
128
|
+
|
|
93
129
|
## Error Handling
|
|
94
130
|
|
|
95
131
|
Errors are written to the stream in the configured format:
|