mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-15 04:27:20 +03:00
fix(core): advertise the spec-shaped MCP elicitation capability (#53196)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
a8fc567c5c
commit
3aa26f1676
@@ -185,7 +185,7 @@ export const connect = Effect.fnUntraced(function* (
|
||||
const runFork = Effect.runForkWith(yield* Effect.context())
|
||||
const client = new Client(clientInfo, {
|
||||
capabilities: {
|
||||
...(elicitation ? { elicitation: { form: { applyDefaults: true }, url: {} } } : {}),
|
||||
...(elicitation ? { elicitation: { form: {}, url: {} } } : {}),
|
||||
// Legacy era only: roots are deprecated as of 2026-07-28 and modern servers cannot request them.
|
||||
// Some legacy servers refuse to run without one (https://github.com/anomalyco/opencode/issues/2308).
|
||||
roots: {},
|
||||
|
||||
Reference in New Issue
Block a user