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
{{ message }}
Repository navigation
Commit 4c57450
Browse filesBrowse the repository at this point in the historyBrowse files
`src/index.ts` is the MCP server entry point (`bun run start`, bundled to `dist/index.js` by `bun run build`); it builds on the `delegate`, `resolveModel`, `buildArgs` and `EventCollector` modules, which also document how `opencode run` is invoked and its JSON stream parsed. Changing `src/` changes the MCP tools, so rebuild and commit `dist/`. The provider preference (direct provider over an aggregator, `OPENCODE_DELEGATE_PREFERRED_PROVIDERS` first) applies to the MCP server only, not to the worker. Variables read by `src/config.ts`:
|`OPENCODE_BIN`| auto-detected | Path to `opencode`|
149
+
|`OPENCODE_DELEGATE_DEFAULT_MODEL`|unset| Model when none given;unset or empty means OpenCode's configured default |
150
+
| `OPENCODE_DELEGATE_READ_MODEL` | unset | Model when none given and `auto` is false; unset or empty falls back to `OPENCODE_DELEGATE_DEFAULT_MODEL`, then OpenCode's default|
0 commit comments