Skip to content

Commit 11f18d8

Browse files
Add test_elicitation_sep1034_defaults to SERVER_REQUIREMENTS.md
Addresses comment from PR #14 to document the new tool that tests SEP-1034 elicitation with default values for all primitive types. This ensures SDK implementers know to include this tool in their conformance test servers.
1 parent 0e8f13b commit 11f18d8

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

SERVER_REQUIREMENTS.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,72 @@ If no progress token provided, just execute with delays.
397397

398398
**Implementation Note**: If the client doesn't support elicitation (no `elicitation` capability), return an error.
399399

400+
#### `test_elicitation_sep1034_defaults`
401+
402+
**Arguments**: None
403+
404+
**Behavior**: Request user input from the client using `elicitation/create` with default values for all primitive types (SEP-1034)
405+
406+
**Elicitation Request**:
407+
408+
```json
409+
{
410+
"method": "elicitation/create",
411+
"params": {
412+
"message": "Please review and update the form fields with defaults",
413+
"requestedSchema": {
414+
"type": "object",
415+
"properties": {
416+
"name": {
417+
"type": "string",
418+
"description": "User name",
419+
"default": "John Doe"
420+
},
421+
"age": {
422+
"type": "integer",
423+
"description": "User age",
424+
"default": 30
425+
},
426+
"score": {
427+
"type": "number",
428+
"description": "User score",
429+
"default": 95.5
430+
},
431+
"status": {
432+
"type": "string",
433+
"description": "User status",
434+
"enum": ["active", "inactive", "pending"],
435+
"default": "active"
436+
},
437+
"verified": {
438+
"type": "boolean",
439+
"description": "Verification status",
440+
"default": true
441+
}
442+
},
443+
"required": []
444+
}
445+
}
446+
}
447+
```
448+
449+
**Returns**: Text content with the elicitation result
450+
451+
```json
452+
{
453+
"content": [
454+
{
455+
"type": "text",
456+
"text": "Elicitation completed: action=<accept/decline/cancel>, content={...}"
457+
}
458+
]
459+
}
460+
```
461+
462+
**Implementation Note**: This tool tests SEP-1034 support for default values across all primitive types (string, integer, number, enum, boolean). If the client doesn't support elicitation (no `elicitation` capability), return an error.
463+
464+
**Reference**: [SEP-1034](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1034)
465+
400466
---
401467

402468
## 3. Resources Requirements

0 commit comments

Comments
 (0)