Commit fdb1ebb
Add support for tools, add new tools, add mcp support (#466)
* web_fetch tool: convert html to markdown
* Fixes, tests
* Add write_file tool
* fix: guard MCP config errors, confirm write_file overwrites, and fix exec timeout/confirmation handling
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* Mcp fixes
* Proxy support for mcp, tool changes
* fix: mark cancelled tool calls with failure indicator instead of success
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* MCP headers, updated docs
* Add interactive mode to add mcp server
* fix: restrict MCP config file permissions and avoid overwrite on parse error
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* Don't stop when tool call reaches its limit
* fix: prevent depth-limit follow-up from re-entering tool-call branch
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* Add support to select local tools to use
* Add firecrawl web search tool
* fix: validate --tools names and cap firecrawl search output length
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* Tool call status formatting fixes
* fix: truncate search results on rune boundaries to avoid splitting UTF-8
Co-authored-by: Andrew <66430340+aandrew-me@users.noreply.github.com>
* Add mcp remove interactive menu
---------
Co-authored-by: Gitar <noreply@gitar.ai>1 parent 4fb749a commit fdb1ebb
26 files changed
Lines changed: 2758 additions & 201 deletions
File tree
- src
- client
- helper
- mcp
- providers
- anyapi
- deepseek
- gemini
- groq
- litellm
- ollama
- openai
- opencode
- pollinations
- search
- structs
- tools
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
29 | 33 | | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
| |||
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
| |||
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
97 | | - | |
98 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
99 | 121 | | |
100 | 122 | | |
101 | 123 | | |
| |||
104 | 126 | | |
105 | 127 | | |
106 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
107 | 133 | | |
108 | 134 | | |
109 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
35 | 76 | | |
36 | 77 | | |
37 | 78 | | |
| |||
346 | 387 | | |
347 | 388 | | |
348 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
349 | 398 | | |
350 | 399 | | |
351 | 400 | | |
352 | 401 | | |
353 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
354 | 427 | | |
355 | 428 | | |
356 | 429 | | |
| |||
380 | 453 | | |
381 | 454 | | |
382 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
383 | 498 | | |
384 | 499 | | |
385 | 500 | | |
| |||
391 | 506 | | |
392 | 507 | | |
393 | 508 | | |
| 509 | + | |
394 | 510 | | |
395 | 511 | | |
396 | 512 | | |
| |||
403 | 519 | | |
404 | 520 | | |
405 | 521 | | |
406 | | - | |
| 522 | + | |
407 | 523 | | |
408 | 524 | | |
409 | 525 | | |
| |||
747 | 863 | | |
748 | 864 | | |
749 | 865 | | |
750 | | - | |
| 866 | + | |
751 | 867 | | |
752 | 868 | | |
753 | 869 | | |
754 | 870 | | |
755 | 871 | | |
756 | | - | |
| 872 | + | |
757 | 873 | | |
758 | 874 | | |
759 | 875 | | |
| |||
770 | 886 | | |
771 | 887 | | |
772 | 888 | | |
773 | | - | |
| 889 | + | |
774 | 890 | | |
775 | 891 | | |
776 | 892 | | |
| |||
782 | 898 | | |
783 | 899 | | |
784 | 900 | | |
785 | | - | |
| 901 | + | |
786 | 902 | | |
787 | 903 | | |
788 | 904 | | |
| |||
0 commit comments