Skip to content

Commit 0cb06d4

Browse files
committed
iac: switch to streamable-http in cloudrun example
Signed-off-by: Tuan Anh Tran <[email protected]>
1 parent b512644 commit 0cb06d4

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

iac/main.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ resource "google_secret_manager_secret_version" "hyper-mcp-config-version" {
3636
{
3737
"name": "qr-code",
3838
"path": "oci://ghcr.io/tuananh/qrcode-plugin:latest"
39+
},
40+
{
41+
"name": "meme-generator",
42+
"path": "oci://ghcr.io/tuananh/meme-generator-plugin:latest"
3943
}
4044
]
4145
}
@@ -57,8 +61,14 @@ resource "google_cloud_run_service" "my-app" {
5761
spec {
5862
service_account_name = google_service_account.my-app.email
5963
containers {
60-
image = "tuananhorg/hyper-mcp:latest"
61-
args = ["--transport", "sse", "--bind-address", "0.0.0.0:3001", "--config-file", "/app/config.json"]
64+
image = "tuananh/hyper-mcp:nightly"
65+
args = ["--transport", "streamable-http", "--bind-address", "0.0.0.0:3001", "--config-file", "/app/config.json"]
66+
resources {
67+
limits = {
68+
memory = "1Gi"
69+
cpu = "1"
70+
}
71+
}
6272
env {
6373
name = "NAME"
6474
value = "fooooo"

iac/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
output "url" {
2-
value = google_cloud_run_service.my-app.status[0].url
3-
}
2+
value = format("%s/mcp", google_cloud_run_service.my-app.status[0].url)
3+
}

0 commit comments

Comments
 (0)