You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-3Lines changed: 31 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,46 @@ just use your client to request. it servers on stdio
18
18
19
19
## Todo
20
20
21
+
- localCache
22
+
-[ ] use a local cache to avoid search every time(From reddit user)
21
23
- searchPackage
22
-
-[] imported by how many packages
24
+
-[x] imported by how many packages
23
25
- getPackageInfo
24
26
-[ ] get examples
25
27
- release
26
28
-[x] use github actions to release for multiple platforms
27
29
30
+
## Develop Experience
31
+
The description is very important, when describing the param should tell the client how
32
+
to use one tool's output and change the format to match another tool's input.
33
+
34
+
For example, the output of `searchPackage` contains subpackage's name, but do not contain
35
+
the package's name. So if want the llm to use `getPackageInfo` to get the subpackage's info,
36
+
I wrote the description for param `packageName` about how to use it to work with `searchPackage`:
37
+
38
+
> package name for search. if use searchPackages before, and user want to get the
39
+
subpackage info. you should plus them for example, when user query mcp, and it return
40
+
packageName: github.com/mark3labs/mcp-go/mcp and subpackage client, then if user want
41
+
to get the client package info, you should set the packageName to
42
+
github.com/mark3labs/mcp-go/mcp/client rather than client
43
+
44
+
45
+
When using this detail description, the llm will tell you some subpackage's name after
46
+
search. You can just tell it which package you want to get info, or which package and the
47
+
subpackage's name, it will combine them and call `getPackageInfo` to get the info.
48
+
49
+
50
+
So maybe we should make the description configurable by user, to make the tool more useful
51
+
and efficiency.
52
+
28
53
## Library Usage
29
54
30
-
The exported Go API of this module should currently be considered unstable, and subject to breaking changes. In the future, we may offer stability; please file an issue if there is a use case where this would be valuable.
55
+
The exported Go API of this module should currently be considered unstable, and subject to
56
+
breaking changes. In the future, we may offer stability; please file an issue if there is
57
+
a use case where this would be valuable.
31
58
32
59
33
60
## License
34
61
35
-
This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE) for the full terms.
62
+
This project is licensed under the terms of the MIT open source license. Please refer
0 commit comments