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
> The built-in `GITHUB_TOKEN` is **not** accepted by the MCP server.
172
+
> Using a **GitHub App installation token** is recommended in most CI environments because it is short-lived and least-privilege by design.
173
+
174
+
#### Enabling MCP in the action
175
+
176
+
Set `enable-github-mcp: true` and provide a token via `github-mcp-token`.
167
177
168
178
```yaml
169
179
steps:
@@ -173,7 +183,7 @@ steps:
173
183
with:
174
184
prompt: 'List my open pull requests and create a summary'
175
185
enable-github-mcp: true
176
-
token: ${{ secrets.USER_PAT }}
186
+
token: ${{ secrets.USER_PAT }} # or a ghs_ installation token
177
187
```
178
188
179
189
If you want, you can use separate tokens for the AI inference endpoint
@@ -188,7 +198,7 @@ steps:
188
198
prompt: 'List my open pull requests and create a summary'
189
199
enable-github-mcp: true
190
200
token: ${{ secrets.GITHUB_TOKEN }}
191
-
github-mcp-token: ${{ secrets.USER_PAT }}
201
+
github-mcp-token: ${{ secrets.USER_PAT }} # or a ghs_ installation token
192
202
```
193
203
194
204
When MCP is enabled, the AI model will have access to GitHub tools and can
@@ -212,7 +222,7 @@ the action:
212
222
| `endpoint` | The endpoint to use for inference. If you're running this as part of an org, you should probably use the org-specific Models endpoint | `https://models.github.ai/inference` |
213
223
| `max-tokens` | The max number of tokens to generate | 200 |
214
224
| `enable-github-mcp` | Enable Model Context Protocol integration with GitHub tools | `false` |
215
-
| `github-mcp-token` | Token to use for GitHub MCP server (defaults to the main token if not specified). This must be a PAT in order for MCP to work | `""` |
225
+
| `github-mcp-token` | Token to use for GitHub MCP server (defaults to the main token if not specified). | `""` |
0 commit comments