- Notifications
You must be signed in to change notification settings - Fork907
Commit7b0422b
authored
fix(codersdk/toolsdk): fix tool schemata (#17365)
Fixes two issues with the MCP server:- Ensures we have a non-null schema, as the following schema was makingclaude-code unhappy: ``` "inputSchema": { "type": "object", "properties": null },```- Skip adding the coder_report_task tool if an agent client is notavailable. Otherwise the agent may try to report tasks and get confused.1 parent6330b0d commit7b0422b
2 files changed
+20
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
| 405 | + | |
405 | 406 |
| |
| 407 | + | |
406 | 408 |
| |
407 | 409 |
| |
408 | 410 |
| |
| |||
417 | 419 |
| |
418 | 420 |
| |
419 | 421 |
| |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
420 | 427 |
| |
421 | 428 |
| |
422 | 429 |
| |
| |||
689 | 696 |
| |
690 | 697 |
| |
691 | 698 |
| |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
692 | 704 |
| |
693 | 705 |
| |
694 | 706 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
259 | 259 |
| |
260 | 260 |
| |
261 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
262 | 266 |
| |
263 | 267 |
| |
264 | 268 |
| |
| |||
318 | 322 |
| |
319 | 323 |
| |
320 | 324 |
| |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
321 | 329 |
| |
322 | 330 |
| |
323 | 331 |
| |
|
0 commit comments
Comments
(0)