fix(core): advertise the spec-shaped MCP elicitation capability (#53196)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Don Bowman
2026-10-15 02:19:35 -04:00
committed by GitHub
Unverified
parent a8fc567c5c
commit 3aa26f1676
+1 -1
View File
@@ -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: {},