Skip to content

Commit 8306ea1

Browse files
committed
Clarify GitHub PAT authentication options in docs
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 605e496 commit 8306ea1

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/guides/publishing/github-actions.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,25 @@ The workflow runs tests, builds your package, publishes to npm, and publishes to
9898

9999
### GitHub Personal Access Token
100100

101+
You can authenticate using a GitHub Personal Access Token in two ways:
102+
103+
**Option 1: Using the --token flag**
104+
105+
```yaml
106+
- name: Login to MCP Registry
107+
run: mcp-publisher login github --token ${{ secrets.MCP_GITHUB_TOKEN }}
108+
```
109+
110+
**Option 2: Using environment variable**
111+
101112
```yaml
102113
- name: Login to MCP Registry
103-
run: mcp-publisher login github --token ${{ secrets.GITHUB_TOKEN }}
114+
run: mcp-publisher login github
104115
env:
105-
GITHUB_TOKEN: ${{ secrets.MCP_GITHUB_TOKEN }}
116+
MCP_GITHUB_TOKEN: ${{ secrets.MCP_GITHUB_TOKEN }}
106117
```
107118

108-
Add `MCP_GITHUB_TOKEN` secret with a GitHub PAT that has repo access.
119+
**Note:** You must create a custom secret `MCP_GITHUB_TOKEN` with a GitHub Personal Access Token that has `read:org` and `read:user` scopes. The automatic `GITHUB_TOKEN` provided by GitHub Actions does not have these permissions and cannot be used.
109120

110121
### DNS Authentication
111122

0 commit comments

Comments
 (0)