|
15 | 15 | :parameters {"type" "object" |
16 | 16 | :properties {"code" {:type "string"}}} |
17 | 17 | :origin :mcp}]) |
18 | | - (f.tools/all-tools {:mcp-clients {:clojureMCP |
| 18 | + (f.tools/all-tools "agent" |
| 19 | + {:mcp-clients {:clojureMCP |
19 | 20 | {:tools [{:name "eval" |
20 | 21 | :description "eval code" |
21 | 22 | :parameters {"type" "object" |
|
27 | 28 | :description string? |
28 | 29 | :parameters some? |
29 | 30 | :origin :native}]) |
30 | | - (f.tools/all-tools {} {:nativeTools {:filesystem {:enabled true}}})))) |
| 31 | + (f.tools/all-tools "agent" {} {:nativeTools {:filesystem {:enabled true}}})))) |
31 | 32 | (testing "Do not include disabled native tools" |
32 | 33 | (is (match? |
33 | 34 | (m/embeds [(m/mismatch {:name "eca_directory_tree"})]) |
34 | | - (f.tools/all-tools {} {:nativeTools {:filesystem {:enabled false}}})))) |
| 35 | + (f.tools/all-tools "agent" {} {:nativeTools {:filesystem {:enabled false}}})))) |
| 36 | + (testing "Do not include edit tool if plan behavior" |
| 37 | + (is (match? |
| 38 | + (m/embeds [{:name "eca_plan_edit_file"} |
| 39 | + (m/mismatch {:name "eca_edit_file"})]) |
| 40 | + (f.tools/all-tools "plan" {} {:nativeTools {:filesystem {:enabled true}}})))) |
| 41 | + (testing "Do not include plan edit tool if agent behavior" |
| 42 | + (is (match? |
| 43 | + (m/embeds [(m/mismatch {:name "eca_plan_edit_file"}) |
| 44 | + {:name "eca_edit_file"}]) |
| 45 | + (f.tools/all-tools "agent" {} {:nativeTools {:filesystem {:enabled true}}})))) |
35 | 46 | (testing "Replace special vars description" |
36 | 47 | (is (match? |
37 | 48 | (m/embeds [{:name "eca_directory_tree" |
|
40 | 51 | :origin :native}]) |
41 | 52 | (with-redefs [f.tools.filesystem/definitions {"eca_directory_tree" {:description "Only in $workspaceRoots" |
42 | 53 | :parameters {}}}] |
43 | | - (f.tools/all-tools {:workspace-folders [{:name "foo" :uri (h/file-uri "file:///path/to/project/foo")}]} |
| 54 | + (f.tools/all-tools "agent" {:workspace-folders [{:name "foo" :uri (h/file-uri "file:///path/to/project/foo")}]} |
44 | 55 | {:nativeTools {:filesystem {:enabled true}}})))))) |
0 commit comments