(self, code_str)
| 379 | raise Exception(_(f"Process execution timed out after {_process_limit_timeout_seconds} seconds.")) |
| 380 | |
| 381 | def validate_mcp_transport(self, code_str): |
| 382 | servers = json.loads(code_str) |
| 383 | for server, config in servers.items(): |
| 384 | if config.get("transport") not in ["sse", "streamable_http"]: |
| 385 | raise Exception(_("Only support transport=sse or transport=streamable_http")) |
| 386 | |
| 387 | |
| 388 | @contextmanager |