yaaif_api_key_bind_deployment
Bind an API key credential to a deployment's secret env (YAAIF_MCP_PLATFORM_API_KEY) and optionally redeploy to apply it, avoiding direct platform S2S keys in MCP pods.
Instructions
Bind an API key Credentials record to an MCP deployment secret_env as YAAIF_MCP_PLATFORM_API_KEY (process fallback for ambient/desktop). Optionally redeploy so the pod picks up the env. Prefer this over putting platform S2S into MCP pods.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"credential_id": "<credential_id>",
"deployment_id": "<deployment_id>"
},
"name": "yaaif_api_key_bind_deployment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_name | No | ||
| redeploy | No | ||
| credential_id | Yes | ||
| deployment_id | Yes |