update readme

This commit is contained in:
Sean Goedecke
2025-07-16 07:51:13 +00:00
parent 0479ac822e
commit ba509f9275
+5 -4
View File
@@ -84,23 +84,24 @@ steps:
This action now supports **read-only** integration with the GitHub-hosted Model This action now supports **read-only** integration with the GitHub-hosted Model
Context Protocol (MCP) server, which provides access to GitHub tools like Context Protocol (MCP) server, which provides access to GitHub tools like
repository management, issue tracking, and pull request operations. repository management, issue tracking, and pull request operations
```yaml ```yaml
steps: steps:
- name: AI Inference with GitHub Tools - name: AI Inference with GitHub Tools
id: inference id: inference
uses: actions/ai-inference@v1 uses: actions/ai-inference@v1.2
with: with:
prompt: 'List my open pull requests and create a summary' prompt: 'List my open pull requests and create a summary'
enable-github-mcp: true enable-github-mcp: true
token: ${{ secrets.USER_PAT }}
``` ```
When MCP is enabled, the AI model will have access to GitHub tools and can When MCP is enabled, the AI model will have access to GitHub tools and can
perform actions like searching issues and PRs. perform actions like searching issues and PRs.
**Note:** MCP integration requires your workflow token to have appropriate **Note:** For now, MCP integration cannot be used with the built-in token. You
GitHub permissions for the operations the AI will perform. must pass a GitHub PAT into `token:` instead.
## Inputs ## Inputs