Repository navigation
add get automation tag tool - #3562
Open
notapopsicle wants to merge 3 commits into
Open
notapopsicle wants to merge 3 commits into
notapopsicle wants to merge 3 commits into
Conversation
5 of 7 tasks
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Direct/library handler calls bypass schema validation, allowing missing identifiers to reach HTTP and an empty tag ID to target the collection route.
1 open issue
What changed in this PR
Adds get_automation_tag to inspect a tag selected from the repository catalog, complementing list_automation_tags in the opt-in copilot_automations toolset.
Changes:
- Registers a read-only tag lookup with the
reposcope requirement. - Escapes path segments, rejects exact-dot inputs, filters returned fields, and preserves REST errors.
- Adds discovery and mocked API tests across both protocol modes, plus documentation and a schema snapshot.
| File | Description |
|---|---|
| README.md | Documents the new tool, parameters, and required scope. |
| pkg/github/tools.go | Registers GetAutomationTag in the tool inventory. |
| pkg/github/automation_tags.go | Implements the schema, validation, and REST lookup. |
| pkg/github/automation_tags_test.go | Adds lookup coverage and adjusts list-tool discovery assertions. |
| pkg/github/__toolsnaps__/get_automation_tag.snap | Records the new tool’s schema and metadata. |
Review effort: Max
notapopsicle
added this pull request to stack #3570
October 23, 2026 19:44
notapopsicle
removed this pull request from stack #3570
October 23, 2026 20:04
Calls through ServerTool.Handler skip input schema validation, so check owner, repo and tag_id before sending the request.
Apply the same filters as list results, since the tag comes back from the same user-authored data.
notapopsicle
force-pushed
the
notapopsicle/get-automation-tag
branch
from
October 23, 2026 20:52
50ac966 to
4a60242
Compare
Copilot started work to fix failing Actions workflows on behalf of
notapopsicle
October 23, 2026 21:05
notapopsicle
added this pull request to stack #3571
October 23, 2026 21:26
notapopsicle
marked this pull request as ready for review
October 23, 2026 23:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Add
get_automation_tagto retrieve one caller-visible automation tag by ID through public REST.Why
Agents need to inspect a tag they've selected from a repository's catalog. The tool is read-only and stays in the opt-in
copilot_automationstoolset. Live REST availability and permission behavior still need integration testing.What changed
MCP impact
get_automation_tag, available in read-only mode.Prompts tested (tool changes only)
No natural-language prompts or live API calls were tested. Automated tests exercise MCP discovery and
CallToolwith mocked REST responses in both supported protocol modes.Security / limits
reposcope filter.Tool renaming
Lint & tests
./script/lint./script/testPassed
env -u UPDATE_TOOLSNAPS go test ./pkg/github -run '^Test_GetAutomationTag$' -count=1 -json(package: 0.899s). The named test ran, including snapshot, discovery, HTTP, response filtering and exact-dot regression assertions. Full lint and the full suite were left for CI.Docs
Related
Depends on github/github-mcp-server#3561 for the automation tag model and toolset.