Skip to content

Commit ba509f9

Browse files
committed
update readme
1 parent 0479ac8 commit ba509f9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,24 @@ steps:
8484
8585
This action now supports **read-only** integration with the GitHub-hosted Model
8686
Context Protocol (MCP) server, which provides access to GitHub tools like
87-
repository management, issue tracking, and pull request operations.
87+
repository management, issue tracking, and pull request operations
8888
8989
```yaml
9090
steps:
9191
- name: AI Inference with GitHub Tools
9292
id: inference
93-
uses: actions/ai-inference@v1
93+
uses: actions/ai-inference@v1.2
9494
with:
9595
prompt: 'List my open pull requests and create a summary'
9696
enable-github-mcp: true
97+
token: ${{ secrets.USER_PAT }}
9798
```
9899
99100
When MCP is enabled, the AI model will have access to GitHub tools and can
100101
perform actions like searching issues and PRs.
101102
102-
**Note:** MCP integration requires your workflow token to have appropriate
103-
GitHub permissions for the operations the AI will perform.
103+
**Note:** For now, MCP integration cannot be used with the built-in token. You
104+
must pass a GitHub PAT into `token:` instead.
104105

105106
## Inputs
106107

0 commit comments

Comments
 (0)