Configure OpenCode connection
opencode_configureSet or repair the OpenCode server address and password from inside the chat, with values validated before applying. Credentials stay in memory unless persist is enabled.
Instructions
Set or repair the OpenCode v2 server address and password from inside the chat. The values are validated against GET /api/info before they are applied; nothing changes on failure. The password is never echoed back, is kept in memory by default, and is only written to disk when persist=true. Prefer configuring OPENCODE_URL and OPENCODE_PASSWORD in the MCP client settings when possible.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_configure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | OpenCode server address, e.g. http://127.0.0.1:4096 | |
| test | No | Validate and report, without applying | |
| clear | No | Forget runtime credentials | |
| persist | No | Write the values to the 0600 config file (default false) | |
| password | No | OpenCode Basic-auth password (username is always 'opencode') | |
| removeFile | No | With clear=true, also delete the stored config file |