You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- veFaaS Application is the top-level collection that contains veFaaS function, api-gateway and other production.
80
-
- After all steps done, provide veFaaS Application infos like application_id, name, region and platform link if these info can get from context directly.
81
-
- veFaaS platform link template: https://console.volcengine.com/vefaas/region:vefaas+`region`/application/detail/`application_id`?tab=detail
82
80
83
81
Error Handle Tips:
84
82
- If there is **any authentication** error about vefaas application(create/release/get), let user apply auth by link: https://console.volcengine.com/iam/service/attach_custom_role?ServiceName=vefaas&policy1_1=APIGFullAccess&policy1_2=VeFaaSFullAccess&role1=ServerlessApplicationRole, then retry.
- veFaaS Application status **NOT** related to veFaaS function release status.
236
234
- Usually use this tool to check application deployment status after application release.
235
+
- **MUST** provide some important info for user after application deployment finished: application_id, region, deployment status, access_url and app_platform_url. (can get these info from tool return value)
errLogs.append("Failed to release application due to an authentication error. Please visit https://console.volcengine.com/iam/service/attach_custom_role?ServiceName=vefaas&policy1_1=APIGFullAccess&policy1_2=VeFaaSFullAccess&role1=ServerlessApplicationRole to grant the required permissions and then try again.")
292
291
exceptExceptionase:
293
292
logger.error(f"Failed to get application log: {str(e)}")
- command **MUST** be a runnable script, e.g., `./run.sh`.
320
329
- region **MUST** be `cn-beijing`, `cn-shanghai`, `cn-guangzhou`, or `ap-southeast-1`.
321
330
- Supplying `enable_vpc=true` requires `vpc_id`, `subnet_ids`, and `security_group_ids`.
322
-
- Declare every framework/server dependency in `requirements.txt` / `package.json`; do not bundle virtualenvs.
323
-
- Module CLIs are not on PATH. Invoke them with `python -m module_name ...` or start the server in code—running `gunicorn ...` or `uvicorn ...` directly will fail.
324
-
- Keep startup scripts focused on launching the app; skip extra installs/build once `upload_code` has run.
325
-
- Store templates/static assets as files and sanity-check imports before uploading.
326
331
- After all steps done, provide veFaaS function infos like function_id, name, region, runtime and platfrom link if these infos can get from context directly.
327
332
- veFaaS platform link template: https://console.volcengine.com/vefaas/region:vefaas+`region`/function/detail/`function_id`?tab=config
" - Rule 4: Python/Node deps: put them in 'requirements.txt'/'package.json'; veFaaS installs them as needed.\n"
923
931
" - Rule 5: HTTP server **MUST** listen on IP: 0.0.0.0, PORT: 8000.\n"
924
932
" - Rule 6: Store templates/static assets as files and sanity-check imports before uploading.\n"
925
-
" - Rule 7: When uploading code, exclude local deps and noise (e.g., `.venv`, `site-packages`, `node_modules`, `.git`, build artifacts) via `local_folder_exclude`.\n\n"
933
+
" - Rule 7: Declare every framework/server dependency in `requirements.txt` / `package.json`; do not bundle virtualenvs.\n"
934
+
" - Rule 8: Module CLIs are not on PATH. Invoke them with `python -m module_name ...` or start the server in code—running `gunicorn ...` or `uvicorn ...` directly will fail.\n"
935
+
" - Rule 9: Keep startup scripts focused on launching the app; skip extra installs/build once `upload_code` has run.\n"
936
+
" - Rule 10: Store templates/static assets as files and sanity-check imports before uploading.\n"
937
+
" - Rule 11: When uploading code, exclude local deps and noise (e.g., `.venv`, `site-packages`, `node_modules`, `.git`, build artifacts) via `local_folder_exclude`.\n\n"
926
938
)
927
939
928
940
# Detect run mode via FASTMCP_* environment variables.
0 commit comments