-
Notifications
You must be signed in to change notification settings - Fork 712
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Version 0.3.0
I followed the instructions to deploy my MCP Toolbox to cloud run (which deploys latest anyhow)
https://googleapis.github.io/genai-toolbox/how-to/deploy_toolbox/
but it wrongly responds with the http instead of https URL of the cloud-run URL on the SSE endpoint
https://toolbox-xxx-uc.a.run.app/mcp/sse
event: endpoint
data: http://toolbox-xxx-uc.a.run.app/mcp?sessionId=15874a2a-2487-4cdc-926e-5fe0989da075
which then fails with an 405 error when the client is trying to call it
even when you try to call the https URL
From cloudrun logs
{
insertId: "67f5acf80003defd38d3e05d"
labels: {1}
logName: "projects/PROJECT/logs/run.googleapis.com%2Fstdout"
payload: "textPayload"
receiveLocation: "us-central1"
receiveTimestamp: "2025-04-08T23:10:48.266441782Z"
resource: {2}
severity: "DEFAULT"
textPayload: "2025-04-08T23:10:48.254806668Z INFO Response: 405 Client Error service: "httplog" httpRequest: {url: "http://toolbox-xxx-uc.a.run.app/mcp?sessionId=e1acd118-eec0-46a3-9371-01e9ee857526" method: "GET" path: "/mcp" remoteIP: "xxxxxxx:56224" proto: "HTTP/1.1" requestID: "localhost/xrtwL8um0d-000004" scheme: "http" header: {x-forwarded-proto: "https" forwarded: "for=\"xxxxx\";proto=https" x-forwarded-for: "xxxxxxx" request-id: "|85bd8dfe96569651061683e7660ceb24.eb6cf93fa413353e." traceparent: "00-85bd8dfe96569651061683e7660ceb24-21ec919a3088ee31-00" x-cloud-trace-context: "85bd8dfe96569651061683e7660ceb24/2444488789180608049"}} httpResponse: {status: 405 bytes: 0 elapsed: 0.013929} "
timestamp: "2025-04-08T23:10:48.253693Z"
traceSampled: false
}
the api/toolset endpoint returns properly the deployed tools.yaml configuration
{"serverVersion":"0.3.0+container.12222fe27ae070f2689a0632d60fda45412d1f97","tools":{"article":{"description":"Single Article details (article_id, author, title, date, sentiment, site, summary, content) by article id","parameters":[{"name":"article_id","type":"string","description":"ID of the article to retrieve","authSources":[]}]},"articles_in_month":{"description":"List of Articles (article_id, author, title, date, sentiment) in a month timeframe from the given date","parameters":[{"name":"date","type":"string","description":"Start date in yyyy-mm-dd format","authSources":[]}]},"companies":{"description":"List of Companies (company_id, name, summary) by fulltext search","parameters":[{"name":"search","type":"string","description":"Part of a name of a company to search for","authSources":[]}]},"companies_in_articles":{"description":"Companies (company_id, name, summary) mentioned in articles by article id","parameters":[{"name":"article_id","type":"string","description":"Article id to find companies mentioned in","authSources":[]}]},"companies_in_industry":{"description":"Companies (company_id, name, summary) in a given industry by industry","parameters":[{"name":"industry","type":"string","description":"Industry name to filter companies by","authSources":[]}]},"industries":{"description":"List of Industry names","parameters":[]},"people_at_company":{"description":"People (person_name, role, company_id, company_name) associated with a company by company id","parameters":[{"name":"company_id","type":"string","description":"Company id to find associated people for","authSources":[]}]}}}
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.