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: pkg/github/__toolsnaps__/get_file_contents.snap
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,6 @@
6
6
"description": "Get the contents of a file or directory from a GitHub repository",
7
7
"inputSchema": {
8
8
"properties": {
9
-
"branch": {
10
-
"description": "Branch to get contents from",
11
-
"type": "string"
12
-
},
13
9
"owner": {
14
10
"description": "Repository owner (username or organization)",
15
11
"type": "string"
@@ -18,9 +14,17 @@
18
14
"description": "Path to file/directory (directories must end with a slash '/')",
19
15
"type": "string"
20
16
},
17
+
"ref": {
18
+
"description": "Accepts optional git refs such as `refs/tags/\u003ctag\u003e`, `refs/heads/\u003cbranch\u003e` or `refs/pull/\u003cpr_number\u003e/head`",
19
+
"type": "string"
20
+
},
21
21
"repo": {
22
22
"description": "Repository name",
23
23
"type": "string"
24
+
},
25
+
"sha": {
26
+
"description": "Accepts optional git sha, if sha is specified it will be used instead of ref",
expectedResult: mcp.NewToolResultError("Failed to get file contents. The path does not point to a file or directory, or the file does not exist in the repository."),
0 commit comments