Repository navigation
release: 0.9.4 #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release: 0.9.4 #40
Changes from all commits
6edeae5
7facefa
a155d4c
4d3a03e
b64c1c5
98ad2e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -278,3 +278,57 @@ agents plugin import ../backend-stack | |
|
|
||
| Secrets never travel: the package carries the `${VAR}` placeholders from the committed | ||
| config, and the export prints which variables it needs. | ||
|
|
||
| ### OpenCode MCP options | ||
|
|
||
| OpenCode 1.x reads servers from `mcp.<name>`. OpenCode 2 reads `mcp.servers.<name>` and | ||
| still accepts the old shape. `agents sync` writes the old shape, so the file works with | ||
| both, and switches to `mcp.servers` when: | ||
|
|
||
| - `opencode.json` already has `mcp.servers`. To opt in, add `"servers": {}` under `"mcp"`. | ||
| - a server sets `opencode.codemode`, `opencode.pool`, `opencode.protocol`, or an | ||
| `opencode.timeout` that differs between `startup`, `catalog` and `execution`. The old | ||
| shape has no field for them. | ||
|
|
||
| Entries written by an earlier sync move to `mcp.servers` with the switch; entries you | ||
| wrote stay where they are. OpenCode 1.x cannot read `mcp.servers`, so switch only when | ||
| everyone on the project runs OpenCode 2. | ||
|
Comment on lines
+293
to
+295
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Укажите исключение для совпадающих имён серверов. Если ручная запись находится в одном формате, а синхронизация создаёт сервер с тем же именем в другом,
|
||
|
|
||
| The `opencode` block holds settings that apply to OpenCode only: | ||
|
|
||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "browser": { | ||
| "transport": "stdio", | ||
| "command": "npx", | ||
| "args": ["-y", "@playwright/mcp"], | ||
| "timeout": 60000, | ||
| "opencode": { "disabled": true } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| | Option | OpenCode field | Old shape | | ||
| | --- | --- | --- | | ||
| | `disabled: true` | `disabled` | `enabled: false` | | ||
| | `timeout.startup`, `timeout.catalog`, `timeout.execution` (ms) | `timeout` object | `timeout`, when all three are equal | | ||
| | `codemode`, `pool`, `protocol` | same names | none, switches to `mcp.servers` | | ||
| | `oauth: false` | `oauth: false` | `oauth: false` | | ||
|
|
||
| `opencode.disabled` keeps the server in OpenCode but off. The shared `enabled: false` | ||
| removes the server from every tool instead. | ||
|
|
||
| Shared fields map as follows: `timeout` sets all three OpenCode timeouts, which is how | ||
| OpenCode 2 itself reads a legacy `timeout`, so the shape sync writes does not change how | ||
| long OpenCode waits. `opencode.timeout` overrides single values, for example | ||
| `{ "startup": 45000 }`, and moves the file to `mcp.servers`. `oauth.clientId`, | ||
| `clientSecret` and `scopes` become `client_id`, `client_secret` and `scope`. | ||
| `oauth.authServerMetadataUrl` becomes | ||
| `auth_server_metadata_url` in `mcp.servers`; the old shape has no such field, and sync | ||
| warns that it was left out. | ||
|
|
||
| `agents mcp import` reads both OpenCode shapes. OpenCode `enabled: false` is imported as | ||
| `opencode.disabled`. OAuth `callback_port` and `redirect_uri` have no place in the shared | ||
| model, so import stops with an error instead of dropping them. | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ const FIELD_SUPPORT: Record<string, IntegrationName[]> = { | |
| connectTimeout: ['droid', 'codex', 'grok'], | ||
| tools: ['copilot_cli'], | ||
| disabledTools: ['droid'], | ||
| oauth: ['claude', 'droid', 'kilo'], | ||
| oauth: ['claude', 'droid', 'kilo', 'opencode'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Сохраните предупреждение до реализации поддержки Для удалённого сервера с непустым Настройки OAuth теряются без предупреждения, и подключение может завершиться ошибкой. Добавьте их в вывод Kilo и тест синхронизации либо удалите
|
||
| headersHelper: ['claude'], | ||
| bearerTokenEnvVar: ['codex', 'grok'], | ||
| envFile: ['cursor'], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уточните условие передачи URL метаданных OAuth.
Если синхронизация выбирает формат
mcp.<name>,authServerMetadataUrlне попадает вopencode.json: код выводит предупреждение и пропускает поле. Сейчас запись о выпуске обещает передачу URL без этого ограничения. Укажите, что URL передаётся только в форматеmcp.servers; иначе пользователь может рассчитывать на настройку OAuth, которой нет в созданном файле. (raw.githubusercontent.com)