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
+57-4Lines changed: 57 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ automation and interaction capabilities for developers and tools.
15
15
##Prerequisites
16
16
17
17
1. To run the server in a container, you will need to have[Docker](https://www.docker.com/) installed.
18
-
2.[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new).
18
+
2. Once Docker is installed, you will also need to ensure Docker is running.
19
+
3. Lastly you will need to[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new).
19
20
The MCP server can use many of the GitHub APIs, so enable the permissions that you feel comfortable granting your AI tools (to learn more about access tokens, please check out the[documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)).
20
21
21
22
@@ -153,6 +154,12 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
153
154
-`repo`: Repository name (string, required)
154
155
-`issue_number`: Issue number (number, required)
155
156
157
+
-**get_issue_comments** - Get comments for a GitHub issue
158
+
159
+
-`owner`: Repository owner (string, required)
160
+
-`repo`: Repository name (string, required)
161
+
-`issue_number`: Issue number (number, required)
162
+
156
163
-**create_issue** - Create a new issue in a GitHub repository
157
164
158
165
-`owner`: Repository owner (string, required)
@@ -198,7 +205,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
198
205
-`sort`: Sort field (string, optional)
199
206
-`order`: Sort order (string, optional)
200
207
-`page`: Page number (number, optional)
201
-
-`per_page`: Results per page (number, optional)
208
+
-`perPage`: Results per page (number, optional)
202
209
203
210
###Pull Requests
204
211
@@ -266,7 +273,9 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
-**create_or_update_file** - Create or update a single file in a repository
@@ -291,6 +326,13 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
291
326
-`branch`: Branch name (string, optional)
292
327
-`sha`: File SHA if updating (string, optional)
293
328
329
+
-**list_branches** - List branches in a GitHub repository
330
+
331
+
-`owner`: Repository owner (string, required)
332
+
-`repo`: Repository name (string, required)
333
+
-`page`: Page number (number, optional)
334
+
-`perPage`: Results per page (number, optional)
335
+
294
336
-**push_files** - Push multiple files in a single commit
295
337
296
338
-`owner`: Repository owner (string, required)
@@ -334,14 +376,21 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
334
376
-`branch`: New branch name (string, required)
335
377
-`sha`: SHA to create branch from (string, required)
336
378
337
-
-**list_commits** -Gets commits of a branch in a repository
379
+
-**list_commits** -Get a list of commits of a branch in a repository
338
380
-`owner`: Repository owner (string, required)
339
381
-`repo`: Repository name (string, required)
340
382
-`sha`: Branch name, tag, or commit SHA (string, optional)
341
383
-`path`: Only commits containing this file path (string, optional)
342
384
-`page`: Page number (number, optional)
343
385
-`perPage`: Results per page (number, optional)
344
386
387
+
-**get_commit** - Get details for a commit from a repository
388
+
-`owner`: Repository owner (string, required)
389
+
-`repo`: Repository name (string, required)
390
+
-`sha`: Commit SHA, branch name, or tag name (string, required)
391
+
-`page`: Page number, for files in the commit (number, optional)
392
+
-`perPage`: Results per page, for files in the commit (number, optional)
393
+
345
394
###Search
346
395
347
396
-**search_code** - Search for code across GitHub repositories
@@ -427,6 +476,10 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
427
476
-`prNumber`: Pull request number (string, required)
428
477
-`path`: File or directory path (string, optional)
429
478
479
+
##Library Usage
480
+
481
+
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.
482
+
430
483
##License
431
484
432
485
This project is licensed under the terms of the MIT open source license. Please refer to[MIT](./LICENSE) for the full terms.