Skip to content

Commit 8627885

Browse files
committed
improve instructions
1 parent 8a5aa6f commit 8627885

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/github/server.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ func NewServer(version string, opts ...server.ServerOption) *server.MCPServer {
1818
• "owner" - Repository owner (username or organization)
1919
• "repo" - Repository name
2020
• "page" - Page number for pagination (min: 1)
21-
• "perPage" - Results per page (min: 1, max: 100)`
21+
• "perPage" - Results per page (min: 1, max: 100)
22+
If you need information about the user to use a tool and you are not sure what to provide, you can use the "get_current_user" tool to get details about the authenticated user. `
2223
// Add default options
2324
defaultOpts := []server.ServerOption{
2425
server.WithInstructions(instructions),
@@ -201,12 +202,10 @@ func OptionalStringArrayParam(r mcp.CallToolRequest, p string) ([]string, error)
201202
func WithPagination() mcp.ToolOption {
202203
return func(tool *mcp.Tool) {
203204
mcp.WithNumber("page",
204-
mcp.Description("Page number for pagination (min 1)"),
205205
mcp.Min(1),
206206
)(tool)
207207

208208
mcp.WithNumber("perPage",
209-
mcp.Description("Results per page for pagination (min 1, max 100)"),
210209
mcp.Min(1),
211210
mcp.Max(100),
212211
)(tool)
@@ -218,12 +217,10 @@ func WithPagination() mcp.ToolOption {
218217
func WithUnifiedPagination() mcp.ToolOption {
219218
return func(tool *mcp.Tool) {
220219
mcp.WithNumber("page",
221-
mcp.Description("Page number for pagination (min 1)"),
222220
mcp.Min(1),
223221
)(tool)
224222

225223
mcp.WithNumber("perPage",
226-
mcp.Description("Results per page for pagination (min 1, max 100)"),
227224
mcp.Min(1),
228225
mcp.Max(100),
229226
)(tool)
@@ -238,7 +235,6 @@ func WithUnifiedPagination() mcp.ToolOption {
238235
func WithCursorPagination() mcp.ToolOption {
239236
return func(tool *mcp.Tool) {
240237
mcp.WithNumber("perPage",
241-
mcp.Description("Results per page for pagination (min 1, max 100)"),
242238
mcp.Min(1),
243239
mcp.Max(100),
244240
)(tool)

0 commit comments

Comments
 (0)