Commit d7d6376
committed
Add SEP-1034 elicitation defaults support to everything-server
Adds a new tool `test_elicitation_sep1034_defaults` that demonstrates elicitation with default values for all JSON Schema primitive types (string, integer, number, enum, boolean) as specified in SEP-1034.
This enables conformance testing of SEP-1034 against the Python SDK implementation. All 5 conformance checks pass:
- String default value support
- Integer default value support
- Number default value support
- Enum default value support
- Boolean default value support (regression test)
The implementation uses Pydantic Field defaults which are automatically included in the generated JSON schema passed to the elicitation request.1 parent da4fce2 commit d7d6376
File tree
1 file changed
+32
-0
lines changed- examples/servers/everything-server/mcp_everything_server
1 file changed
+32
-0
lines changedLines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
169 | 201 | | |
170 | 202 | | |
171 | 203 | | |
| |||
0 commit comments