Skip to content

Commit 2e59910

Browse files
[instructions] Document mcp-scripts dependencies field (#40275)
1 parent 07a1ca9 commit 2e59910

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/aw/syntax-agentic.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ description: Agentic workflow specific frontmatter fields for GitHub Agentic Wor
465465
- `py:` - Python script implementation
466466
- `go:` - Go script implementation (executed via `go run`, receives inputs as JSON via stdin)
467467
- `env:` - Environment variables for secrets (supports `${{ secrets.* }}`)
468+
- `dependencies:` - Runtime packages installed before first invocation (list of strings). Manager inferred from script type: `script`→npm, `py`→pip, `go`→`go get`, `run`→apt. Must be exact-version-pinned (`name@1.2.3`, `name==1.2.3`, `module@v1.2.3`, `name=1.6`); floating refs are rejected.
468469
- `timeout:` - Execution timeout in seconds (default: 60)
469470
- Example:
470471

@@ -484,11 +485,10 @@ description: Agentic workflow specific frontmatter fields for GitHub Agentic Wor
484485
script: |
485486
const { Octokit } = require('@octokit/rest');
486487
const octokit = new Octokit({ auth: process.env.GH_TOKEN });
487-
const result = await octokit.search.issuesAndPullRequests({
488-
q: inputs.query,
489-
per_page: inputs.limit
490-
});
491-
return result.data.items;
488+
const r = await octokit.search.issuesAndPullRequests({ q: inputs.query, per_page: inputs.limit });
489+
return r.data.items;
490+
dependencies:
491+
- "@octokit/rest@21.0.2"
492492
env:
493493
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
494494
```

0 commit comments

Comments
 (0)