Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion packages/cdk/lib/construct/mcp-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Duration } from 'aws-cdk-lib';
import { Duration, Size } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import {
DockerImageFunction,
Expand Down Expand Up @@ -31,6 +31,7 @@ export class McpApi extends Construct {
: NetworkMode.DEFAULT,
}),
memorySize: 1024,
ephemeralStorageSize: Size.mebibytes(1024),
timeout: Duration.minutes(15),
architecture: Architecture.X86_64,
environment: {
Expand Down
3 changes: 2 additions & 1 deletion packages/cdk/mcp-api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- You are running on AWS Lambda. Therefore, when writing files, always write them under `{WORKSPACE_DIR}`.
- Similarly, if you need a workspace, please use the `{WORKSPACE_DIR}` directory. Do not ask the user about their current workspace. It's always `{WORKSPACE_DIR}`.
- Also, users cannot directly access files written under `{WORKSPACE_DIR}`. So when submitting these files to users, *always upload them to S3 using the `upload_file_to_s3_and_retrieve_s3_url` tool and provide the S3 URL*. The S3 URL must be included in the final output.
- If the output file is an image file, the S3 URL output must be in Markdown format.
"""

def stream_chunk(text, trace):
Expand Down Expand Up @@ -168,8 +169,8 @@ def spawn():
command=server['command'],
args=server['args'],
env={
**server['env'],
**UV_ENV,
**server['env'],
Comment on lines 172 to +173
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mcp.jsonの設定を優先するように修正しました。
例えば、Nova Canvasのenvで別リージョンを指定したい場合に現状の実装では問題がありました。

},
)
)
Expand Down
Loading