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
> **Important**: Please open your pull request against the `next` branch, not `main`. The `next` branch is where we integrate new features and changes before they are merged to `main`.
23
-
24
22
1.[Fork][fork] and clone the repository
25
-
1. Make sure the tests pass on your machine: `go test -v ./...`
26
-
1. Make sure linter passes on your machine: `golangci-lint run`
27
-
1. Create a new branch: `git checkout -b my-branch-name`
28
-
1. Make your change, add tests, and make sure the tests and linter still pass
29
-
1. Push to your fork and [submit a pull request][pr] targeting the `next` branch
30
-
1. Pat yourself on the back and wait for your pull request to be reviewed and merged.
23
+
2. Make sure the tests pass on your machine: `go test -v ./...`
24
+
3. Make sure linter passes on your machine: `golangci-lint run`
25
+
4. Create a new branch: `git checkout -b my-branch-name`
26
+
5. Add your changes and tests, and make sure the Action workflows still pass
27
+
- Run linter: `script/lint`
28
+
- Update snapshots and run tests: `UPDATE_TOOLSNAPS=true go test ./...`
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -550,7 +550,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
550
550
<summary>Context</summary>
551
551
552
552
-**get_me** - Get my user profile
553
-
-`reason`: Optional: the reason for requesting the user information (string, optional)
553
+
-No parameters required
554
554
555
555
</details>
556
556
@@ -871,7 +871,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
871
871
-`owner`: Repository owner (username or organization) (string, required)
872
872
-`path`: Path where to create/update the file (string, required)
873
873
-`repo`: Repository name (string, required)
874
-
-`sha`: SHA of file being replaced (for updates) (string, optional)
874
+
-`sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
875
875
876
876
-**create_repository** - Create repository
877
877
-`autoInit`: Initialize with README (boolean, optional)
@@ -903,7 +903,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
903
903
-`path`: Path to file/directory (directories must end with a slash '/') (string, required)
904
904
-`ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
905
905
-`repo`: Repository name (string, required)
906
-
-`sha`: Accepts optional git sha, if sha is specified it will be used instead of ref (string, optional)
906
+
-`sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
907
907
908
908
-**get_tag** - Get tag details
909
909
-`owner`: Repository owner (string, required)
@@ -917,12 +917,12 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
917
917
-`repo`: Repository name (string, required)
918
918
919
919
-**list_commits** - List commits
920
-
-`author`: Author username or email address (string, optional)
920
+
-`author`: Author username or email address to filter commits by (string, optional)
921
921
-`owner`: Repository owner (string, required)
922
922
-`page`: Page number for pagination (min 1) (number, optional)
923
923
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
924
924
-`repo`: Repository name (string, required)
925
-
-`sha`: The commit SHA, branch name, or tag name to list commits from. If not specified, defaults to the repository's default branch. (string, optional)
925
+
-`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)
Copy file name to clipboardExpand all lines: docs/host-integration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ flowchart LR
64
64
-**Local MCP Server**: An MCP Server running locally, side-by-side with the Application.
65
65
-**Remote MCP Server**: An MCP Server running remotely, accessed via the internet. Most Remote MCP Servers require authentication via OAuth.
66
66
67
-
For more detail, see the [official MCP specification](https://modelcontextprotocol.io/specification/draft).
67
+
For more detail, see the [official MCP specification](https://modelcontextprotocol.io/specification/2025-06-18).
68
68
69
69
> [!NOTE]
70
70
> GitHub offers both a Local MCP Server and a Remote MCP Server.
@@ -84,7 +84,7 @@ For the Remote GitHub MCP Server, the recommended way to obtain a valid access t
84
84
> The Remote GitHub MCP Server itself does not provide Authentication services.
85
85
> Your client application must obtain valid GitHub access tokens through one of the supported methods.
86
86
87
-
The expected flow for obtaining a valid access token via OAuth is depicted in the [MCP Specification](https://modelcontextprotocol.io/specification/draft/basic/authorization#authorization-flow-steps). For convenience, we've embedded a copy of the authorization flow below. Please study it carefully as the remainder of this document is written with this flow in mind.
87
+
The expected flow for obtaining a valid access token via OAuth is depicted in the [MCP Specification](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization#authorization-flow-steps). For convenience, we've embedded a copy of the authorization flow below. Please study it carefully as the remainder of this document is written with this flow in mind.
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_me.snap
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,9 @@
3
3
"title": "Get my user profile",
4
4
"readOnlyHint": true
5
5
},
6
-
"description": "Get details of the authenticated GitHub user. Use this when a request includes \"me\", \"my\". The output will not change unless the user changes their profile, so only call this once.",
6
+
"description": "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls.",
7
7
"inputSchema": {
8
-
"properties": {
9
-
"reason": {
10
-
"description": "Optional: the reason for requesting the user information",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/list_commits.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
"inputSchema": {
8
8
"properties": {
9
9
"author": {
10
-
"description": "Author username or email address",
10
+
"description": "Author username or email address to filter commits by",
11
11
"type": "string"
12
12
},
13
13
"owner": {
@@ -30,7 +30,7 @@
30
30
"type": "string"
31
31
},
32
32
"sha": {
33
-
"description": "The commit SHA, branch name, or tag name to list commits from. If not specified, defaults to the repository's default branch.",
33
+
"description": "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.",
// GetMe creates a tool to get details of the authenticated user.
13
36
funcGetMe(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
14
37
tool:=mcp.NewTool("get_me",
15
-
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request includes \"me\", \"my\". The output will not change unless the user changes their profile, so only call this once.")),
38
+
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls.")),
16
39
mcp.WithToolAnnotation(mcp.ToolAnnotation{
17
40
Title: t("TOOL_GET_ME_USER_TITLE", "Get my user profile"),
18
41
ReadOnlyHint: ToBoolPtr(true),
19
42
}),
20
-
mcp.WithString("reason",
21
-
mcp.Description("Optional: the reason for requesting the user information"),
22
-
),
23
43
)
24
44
25
45
typeargsstruct{}
@@ -38,7 +58,34 @@ func GetMe(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Too
38
58
), nil
39
59
}
40
60
41
-
returnMarshalledTextResult(user), nil
61
+
// Create minimal user representation instead of returning full user object
0 commit comments