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
+22-58Lines changed: 22 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -983,101 +983,65 @@ Possible options:
983
983
984
984
<summary>Repositories</summary>
985
985
986
+
-**commit_read** - Read commits
987
+
-`author`: For 'list' method: Author username or email address to filter commits by (string, optional)
988
+
-`include_diff`: For 'get' method: Whether to include file diffs and stats in the response. Default is true. (boolean, optional)
989
+
-`method`: Method to use: 'get' for getting a single commit, 'list' for listing commits (string, required)
990
+
-`owner`: Repository owner (string, required)
991
+
-`page`: Page number for pagination (min 1) (number, optional)
992
+
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
993
+
-`repo`: Repository name (string, required)
994
+
-`sha`: For 'get': Commit SHA, branch name, or tag name (required). For 'list': Commit SHA, branch or tag name to list commits of (optional). (string, optional)
995
+
986
996
-**create_branch** - Create branch
987
997
-`branch`: Name for new branch (string, required)
988
998
-`from_branch`: Source branch (defaults to repo default) (string, optional)
989
999
-`owner`: Repository owner (string, required)
990
1000
-`repo`: Repository name (string, required)
991
1001
992
-
-**create_or_update_file** - Create or update file
993
-
-`branch`: Branch to create/update the file in (string, required)
994
-
-`content`: Content of the file (string, required)
995
-
-`message`: Commit message (string, required)
996
-
-`owner`: Repository owner (username or organization) (string, required)
997
-
-`path`: Path where to create/update the file (string, required)
998
-
-`repo`: Repository name (string, required)
999
-
-`sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
1000
-
1001
1002
-**create_repository** - Create repository
1002
1003
-`autoInit`: Initialize with README (boolean, optional)
-`branch`: Branch to perform the operation on (string, required)
1011
+
-`content`: Content of the file (required for create and update methods) (string, optional)
1012
+
-`files`: Array of file objects to push (required for push_files method), each object with path (string) and content (string) (object[], optional)
1010
1013
-`message`: Commit message (string, required)
1014
+
-`method`: The write operation to perform on repository files. (string, required)
1011
1015
-`owner`: Repository owner (username or organization) (string, required)
1012
-
-`path`: Path to the file to delete (string, required)
1016
+
-`path`: Path to the file (required for create, update, delete methods) (string, optional)
1013
1017
-`repo`: Repository name (string, required)
1018
+
-`sha`: Blob SHA of the file being replaced (required for update method) (string, optional)
1014
1019
1015
1020
-**fork_repository** - Fork repository
1016
1021
-`organization`: Organization to fork to (string, optional)
1017
1022
-`owner`: Repository owner (string, required)
1018
1023
-`repo`: Repository name (string, required)
1019
1024
1020
-
-**get_commit** - Get commit details
1021
-
-`include_diff`: Whether to include file diffs and stats in the response. Default is true. (boolean, optional)
1022
-
-`owner`: Repository owner (string, required)
1023
-
-`page`: Page number for pagination (min 1) (number, optional)
1024
-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1025
-
-`repo`: Repository name (string, required)
1026
-
-`sha`: Commit SHA, branch name, or tag name (string, required)
1027
-
1028
1025
-**get_file_contents** - Get file or directory contents
1029
1026
-`owner`: Repository owner (username or organization) (string, required)
1030
1027
-`path`: Path to file/directory (directories must end with a slash '/') (string, optional)
1031
1028
-`ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
1032
1029
-`repo`: Repository name (string, required)
1033
1030
-`sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
1034
1031
1035
-
-**get_latest_release** - Get latest release
1036
-
-`owner`: Repository owner (string, required)
1037
-
-`repo`: Repository name (string, required)
1038
-
1039
-
-**get_release_by_tag** - Get a release by tag name
1040
-
-`owner`: Repository owner (string, required)
1041
-
-`repo`: Repository name (string, required)
1042
-
-`tag`: Tag name (e.g., 'v1.0.0') (string, required)
1043
-
1044
-
-**get_tag** - Get tag details
1045
-
-`owner`: Repository owner (string, required)
1046
-
-`repo`: Repository name (string, required)
1047
-
-`tag`: Tag name (string, required)
1048
-
1049
1032
-**list_branches** - List branches
1050
1033
-`owner`: Repository owner (string, required)
1051
1034
-`page`: Page number for pagination (min 1) (number, optional)
1052
1035
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1053
1036
-`repo`: Repository name (string, required)
1054
1037
1055
-
-**list_commits** - List commits
1056
-
-`author`: Author username or email address to filter commits by (string, optional)
1057
-
-`owner`: Repository owner (string, required)
1058
-
-`page`: Page number for pagination (min 1) (number, optional)
1059
-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1060
-
-`repo`: Repository name (string, required)
1061
-
-`sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
1062
-
1063
-
-**list_releases** - List releases
1064
-
-`owner`: Repository owner (string, required)
1065
-
-`page`: Page number for pagination (min 1) (number, optional)
1066
-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1067
-
-`repo`: Repository name (string, required)
1068
-
1069
-
-**list_tags** - List tags
1070
-
-`owner`: Repository owner (string, required)
1071
-
-`page`: Page number for pagination (min 1) (number, optional)
1072
-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1073
-
-`repo`: Repository name (string, required)
1074
-
1075
-
-**push_files** - Push files to repository
1076
-
-`branch`: Branch to push to (string, required)
1077
-
-`files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
1078
-
-`message`: Commit message (string, required)
1038
+
-**release_read** - Read operations for releases and tags
1039
+
-`method`: The read operation to perform on releases/tags. (string, required)
1079
1040
-`owner`: Repository owner (string, required)
1041
+
-`page`: Page number for pagination (min 1) (for list_tags and list_releases methods) (number, optional)
1042
+
-`perPage`: Results per page for pagination (min 1, max 100) (for list_tags and list_releases methods) (number, optional)
1080
1043
-`repo`: Repository name (string, required)
1044
+
-`tag`: Tag name (required for get_tag and get_release_by_tag methods) (string, optional)
1081
1045
1082
1046
-**search_code** - Search code
1083
1047
-`order`: Sort order for results (string, optional)
"description": "Read commit data from a GitHub repository. Supports getting a single commit or listing commits.",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"author": {
10
+
"description": "For 'list' method: Author username or email address to filter commits by",
11
+
"type": "string"
12
+
},
13
+
"include_diff": {
14
+
"default": true,
15
+
"description": "For 'get' method: Whether to include file diffs and stats in the response. Default is true.",
16
+
"type": "boolean"
17
+
},
18
+
"method": {
19
+
"description": "Method to use: 'get' for getting a single commit, 'list' for listing commits",
20
+
"enum": [
21
+
"get",
22
+
"list"
23
+
],
24
+
"type": "string"
25
+
},
26
+
"owner": {
27
+
"description": "Repository owner",
28
+
"type": "string"
29
+
},
30
+
"page": {
31
+
"description": "Page number for pagination (min 1)",
32
+
"minimum": 1,
33
+
"type": "number"
34
+
},
35
+
"perPage": {
36
+
"description": "Results per page for pagination (min 1, max 100)",
37
+
"maximum": 100,
38
+
"minimum": 1,
39
+
"type": "number"
40
+
},
41
+
"repo": {
42
+
"description": "Repository name",
43
+
"type": "string"
44
+
},
45
+
"sha": {
46
+
"description": "For 'get': Commit SHA, branch name, or tag name (required). For 'list': Commit SHA, branch or tag name to list commits of (optional).",
"title": "Write operations (create, update, delete, push_files) on repository files",
4
+
"readOnlyHint": false
5
+
},
6
+
"description": "Write operations (create, update, delete, push_files) on repository files.\n\nAvailable methods:\n- create: Create a new file in a repository.\n- update: Update an existing file in a repository. Requires the SHA of the file being replaced.\n- delete: Delete a file from a repository.\n- push_files: Push multiple files to a repository in a single commit.\n",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"branch": {
10
+
"description": "Branch to perform the operation on",
11
+
"type": "string"
12
+
},
13
+
"content": {
14
+
"description": "Content of the file (required for create and update methods)",
15
+
"type": "string"
16
+
},
17
+
"files": {
18
+
"description": "Array of file objects to push (required for push_files method), each object with path (string) and content (string)",
19
+
"items": {
20
+
"additionalProperties": false,
21
+
"properties": {
22
+
"content": {
23
+
"description": "file content",
24
+
"type": "string"
25
+
},
26
+
"path": {
27
+
"description": "path to the file",
28
+
"type": "string"
29
+
}
30
+
},
31
+
"required": [
32
+
"path",
33
+
"content"
34
+
],
35
+
"type": "object"
36
+
},
37
+
"type": "array"
38
+
},
39
+
"message": {
40
+
"description": "Commit message",
41
+
"type": "string"
42
+
},
43
+
"method": {
44
+
"description": "The write operation to perform on repository files.",
45
+
"enum": [
46
+
"create",
47
+
"update",
48
+
"delete",
49
+
"push_files"
50
+
],
51
+
"type": "string"
52
+
},
53
+
"owner": {
54
+
"description": "Repository owner (username or organization)",
55
+
"type": "string"
56
+
},
57
+
"path": {
58
+
"description": "Path to the file (required for create, update, delete methods)",
59
+
"type": "string"
60
+
},
61
+
"repo": {
62
+
"description": "Repository name",
63
+
"type": "string"
64
+
},
65
+
"sha": {
66
+
"description": "Blob SHA of the file being replaced (required for update method)",
0 commit comments