@jaypie/mcp 0.2.3 → 0.2.5
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/index.js +1 -1
- package/package.json +1 -1
- package/prompts/Jaypie_CDK_Constructs_and_Patterns.md +51 -0
- package/prompts/Jaypie_DynamoDB_Package.md +662 -0
- package/prompts/Jaypie_Express_Package.md +91 -0
- package/prompts/Jaypie_Init_Lambda_Package.md +134 -1
- package/prompts/Jaypie_Llm_Calls.md +77 -0
- package/prompts/Jaypie_Llm_Tools.md +26 -3
- package/prompts/Jaypie_Vocabulary_Commander.md +411 -0
- package/prompts/Jaypie_Vocabulary_LLM.md +312 -0
- package/prompts/Jaypie_Vocabulary_Lambda.md +310 -0
- package/prompts/Jaypie_Vocabulary_MCP.md +296 -0
- package/prompts/Jaypie_Vocabulary_Package.md +141 -183
package/dist/index.js
CHANGED
|
@@ -885,7 +885,7 @@ function listLlmProviders() {
|
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
const BUILD_VERSION_STRING = "@jaypie/mcp@0.2.
|
|
888
|
+
const BUILD_VERSION_STRING = "@jaypie/mcp@0.2.5#b58bafc3"
|
|
889
889
|
;
|
|
890
890
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
891
891
|
const __dirname$1 = path.dirname(__filename$1);
|
package/package.json
CHANGED
|
@@ -100,6 +100,57 @@ new JaypieExpressLambda(this, "ExpressApp", {
|
|
|
100
100
|
|
|
101
101
|
Preconfigured with API-optimized timeouts and role tags.
|
|
102
102
|
|
|
103
|
+
### Streaming Lambda Functions
|
|
104
|
+
|
|
105
|
+
Enable Lambda Response Streaming via Function URLs for real-time SSE responses:
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import { FunctionUrlAuthType, InvokeMode } from "aws-cdk-lib/aws-lambda";
|
|
109
|
+
|
|
110
|
+
const streamingLambda = new JaypieLambda(this, "StreamingFunction", {
|
|
111
|
+
code: "dist",
|
|
112
|
+
handler: "stream.handler",
|
|
113
|
+
timeout: Duration.minutes(5), // Longer timeout for streaming
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// Add Function URL with streaming enabled
|
|
117
|
+
const functionUrl = streamingLambda.addFunctionUrl({
|
|
118
|
+
authType: FunctionUrlAuthType.NONE, // Public access
|
|
119
|
+
// authType: FunctionUrlAuthType.AWS_IAM, // IAM authentication
|
|
120
|
+
invokeMode: InvokeMode.RESPONSE_STREAM, // Enable streaming
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// Output the URL
|
|
124
|
+
new cdk.CfnOutput(this, "StreamingUrl", {
|
|
125
|
+
value: functionUrl.url,
|
|
126
|
+
});
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Features:
|
|
130
|
+
- `RESPONSE_STREAM` invoke mode enables real-time streaming
|
|
131
|
+
- Works with `lambdaStreamHandler` from `@jaypie/lambda`
|
|
132
|
+
- Use `FunctionUrlAuthType.AWS_IAM` for authenticated endpoints
|
|
133
|
+
- Combine with API Gateway for custom domains via `JaypieApiGateway`
|
|
134
|
+
|
|
135
|
+
For Express-based streaming with custom domains:
|
|
136
|
+
```typescript
|
|
137
|
+
// Express app with streaming routes
|
|
138
|
+
const expressLambda = new JaypieExpressLambda(this, "ExpressStream", {
|
|
139
|
+
code: "dist",
|
|
140
|
+
handler: "app.handler",
|
|
141
|
+
timeout: Duration.minutes(5),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
// API Gateway handles the domain routing
|
|
145
|
+
new JaypieApiGateway(this, "Api", {
|
|
146
|
+
handler: expressLambda,
|
|
147
|
+
host: "api.example.com",
|
|
148
|
+
zone: "example.com",
|
|
149
|
+
});
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Note: API Gateway has a 29-second timeout limit. For longer streaming operations, use Function URLs directly.
|
|
153
|
+
|
|
103
154
|
### Stack Types
|
|
104
155
|
|
|
105
156
|
Use specialized stacks for different purposes:
|