Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,7 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat

- **search_commits** - Search commits
- **OAuth Challenge Scopes**: `repo`
- `fields`: Subset of fields to return for each commit search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'commit' in particular drops the largest per-result data. (string[], optional)
- `order`: Sort order (string, optional)
- `page`: Page number for pagination (min 1) (number, optional)
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
Expand All @@ -1592,6 +1593,7 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat

- **search_repositories** - Search repositories
- **OAuth Challenge Scopes**: `repo`
- `fields`: Subset of fields to return for each repository search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields (e.g. 'full_name', 'html_url', 'language'). (string[], optional)
- `minimal_output`: Return minimal repository information (default: true). When false, modern clients receive additional curated repository details, not the complete GitHub API object. Legacy clients retain full GitHub API repository objects. (boolean, optional)
- `order`: Sort order (string, optional)
- `page`: Page number for pagination (min 1) (number, optional)
Expand Down
70 changes: 18 additions & 52 deletions pkg/github/__toolsnaps__/search_commits.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
"description": "Search for commits across GitHub repositories using GitHub's commit search syntax. Useful for finding specific changes, authors, or messages across one or many repositories. Searches the default branch only.",
"inputSchema": {
"properties": {
"fields": {
"description": "Subset of fields to return for each commit search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'commit' in particular drops the largest per-result data.",
"items": {
"enum": [
"sha",
"html_url",
"commit",
"author",
"committer",
"repository"
],
"type": "string"
},
"type": "array"
},
"order": {
"description": "Sort order",
"enum": [
Expand Down Expand Up @@ -294,42 +309,12 @@
"object"
]
},
"files": {
"items": {
"additionalProperties": false,
"properties": {
"additions": {
"type": "integer"
},
"changes": {
"type": "integer"
},
"deletions": {
"type": "integer"
},
"filename": {
"type": "string"
},
"patch": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"filename"
],
"type": "object"
},
"html_url": {
"type": [
"null",
"array"
"string"
]
},
"html_url": {
"type": "string"
},
"repository": {
"additionalProperties": false,
"properties": {
Expand All @@ -352,31 +337,12 @@
]
},
"sha": {
"type": "string"
},
"stats": {
"additionalProperties": false,
"properties": {
"additions": {
"type": "integer"
},
"deletions": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"type": [
"null",
"object"
"string"
]
}
},
"required": [
"sha",
"html_url"
],
"type": "object"
},
"type": [
Expand Down
87 changes: 65 additions & 22 deletions pkg/github/__toolsnaps__/search_repositories.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@
"description": "Find GitHub repositories by name, description, readme, topics, or other metadata. Perfect for discovering projects, finding examples, or locating specific repositories across GitHub.",
"inputSchema": {
"properties": {
"fields": {
"description": "Subset of fields to return for each repository search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields (e.g. 'full_name', 'html_url', 'language').",
"items": {
"enum": [
"id",
"name",
"full_name",
"description",
"html_url",
"language",
"stargazers_count",
"forks_count",
"open_issues_count",
"updated_at",
"created_at",
"topics",
"private",
"fork",
"archived",
"default_branch"
],
"type": "string"
},
"type": "array"
},
"minimal_output": {
"default": true,
"description": "Return minimal repository information (default: true). When false, modern clients receive additional curated repository details, not the complete GitHub API object. Legacy clients retain full GitHub API repository objects.",
Expand Down Expand Up @@ -63,7 +88,10 @@
"additionalProperties": false,
"properties": {
"archived": {
"type": "boolean"
"type": [
"null",
"boolean"
]
},
"created_at": {
"type": "string"
Expand All @@ -82,13 +110,22 @@
]
},
"fork": {
"type": "boolean"
"type": [
"null",
"boolean"
]
},
"forks_count": {
"type": "integer"
"type": [
"null",
"integer"
]
},
"full_name": {
"type": "string"
"type": [
"null",
"string"
]
},
"has_discussions": {
"type": [
Expand Down Expand Up @@ -119,10 +156,16 @@
"type": "string"
},
"html_url": {
"type": "string"
"type": [
"null",
"string"
]
},
"id": {
"type": "integer"
"type": [
"null",
"integer"
]
},
"is_template": {
"description": "Whether the repository is a template",
Expand Down Expand Up @@ -155,10 +198,16 @@
]
},
"name": {
"type": "string"
"type": [
"null",
"string"
]
},
"open_issues_count": {
"type": "integer"
"type": [
"null",
"integer"
]
},
"permissions": {
"additionalProperties": false,
Expand Down Expand Up @@ -201,7 +250,10 @@
]
},
"private": {
"type": "boolean"
"type": [
"null",
"boolean"
]
},
"pushed_at": {
"description": "Last push time as an ISO 8601 UTC timestamp",
Expand All @@ -215,7 +267,10 @@
]
},
"stargazers_count": {
"type": "integer"
"type": [
"null",
"integer"
]
},
"topics": {
"items": {
Expand Down Expand Up @@ -246,18 +301,6 @@
]
}
},
"required": [
"id",
"name",
"full_name",
"html_url",
"stargazers_count",
"forks_count",
"open_issues_count",
"private",
"fork",
"archived"
],
"type": "object"
},
"type": [
Expand Down
Loading