Clarify form elicitation requests with no input fields

Offen Anfängerfreundlich
#3,571 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
json, typescript
Bereich
documentation

Rechercherichtung

Lies die Elicitation-Seite am angegebenen Anker (docs/specification/2026-07-28/client/elicitation auf der Website, passende Datei im Repo) neben schema/2026-07-28/schema.ts etwa in den Zeilen 2818-2825, wo properties: {} bereits erlaubt ist. Vergleiche dann den im Issue verlinkten vorgeschlagenen Branch auf die vom Reporter gewünschte Formulierung. Fertig bedeutet, dass der Abschnitt zum Form-Modus festhält, dass ein leeres properties-Objekt eine gültige Bestätigungs-/Genehmigungsanfrage ist, und die Beispiel-Payload enthält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
What's broken?

The spec doesn't cover a case it clearly should

Where in the spec or docs?

https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation#form-mode-elicitation-requests

What should happen?

A form elicitation requestedSchema with no properties specified can still be a useful mechanism for confirmation/approval interactions where the server needs a user decision without additional data. For example, if the server wants to confirm the user wants to use default settings, they could create an elicitation with the following details:

{
  "method": "elicitation/create",
  "params": {
    "mode": "form",
    "message": "Continue with the default settings?",
    "requestedSchema": {
      "type": "object",
      "properties": {}
    }
  }
}

The spec should clarify that this behavior is permitted and include confirmation as an example use case.

What actually happens?

The 2026-07-28 schema permits properties: {}, but the elicitation spec doesn't explicitly address how this case should be handled.

Anything else?

View my proposed clarification at https://github.com/staubman-stripe/modelcontextprotocol/compare/main...docs/empty-form-elicitation

AI disclosure: I used AI assistance to investigate existing implementations, review this report, and draft the proposed clarification.

Vorherrschende Sprache
TypeScript
Sterne
9.8k
Forks
1.9k
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
73

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modelcontextprotocol/modelcontextprotocol

Alle Issues in modelcontextprotocol/modelcontextprotocol

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.