opencode_auth_set
Set authentication credentials for a provider by supplying its provider ID, credential type, and API key. Configure provider access before using OpenCode HTTP MCP.
Instructions
Set authentication credentials for a provider (API key).
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": {
"providerId": "<providerId>",
"type": "<type>",
"key": "<key>"
},
"name": "opencode_auth_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| type | Yes | ||
| providerId | Yes |