Commit c945265
Add configurable default for sampling MaxTokens (#923)
* Initial plan
* Add DefaultSamplingMaxTokens property to McpServerOptions
Co-authored-by: MackinnonBuck <[email protected]>
* Add test to verify DefaultSamplingMaxTokens is respected
Co-authored-by: MackinnonBuck <[email protected]>
* Merge test into existing SampleAsync_Messages_Forwards_To_McpServer_SendRequestAsync
Co-authored-by: MackinnonBuck <[email protected]>
* Update src/ModelContextProtocol.Core/Server/McpServerOptions.cs
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: MackinnonBuck <[email protected]>
Co-authored-by: Mackinnon Buck <[email protected]>1 parent f4cbc98 commit c945265
File tree
3 files changed
+31
-1
lines changed- src/ModelContextProtocol.Core/Server
- tests/ModelContextProtocol.Tests/Server
3 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
155 | 168 | | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
134 | 147 | | |
135 | 148 | | |
136 | 149 | | |
| |||
146 | 159 | | |
147 | 160 | | |
148 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
149 | 166 | | |
150 | 167 | | |
151 | 168 | | |
| |||
0 commit comments