Add MCP tool naming guidance to security-fix-pr workflow#12022
Add MCP tool naming guidance to security-fix-pr workflow#12022
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot They workflows probably need to add these extra into toolset: github: [code_security]. Otherwise they wouldn't be acccessible? |
Smoke Test ResultsOverall: PARTIAL PASS (6/7 tests)
PRs: #12022, #12017
|
The tools:
github:
toolsets: [context, repos, code_security, pull_requests]The issue wasn't missing toolsets - it was that the workflow instructions referenced tools without the |
|
@copilot But other workflows don't need to mention their MCP tools so specifically? i.e. projects, etc. Why this one? |
Good question! The difference is in how the workflow instructions are written: Workflows like
The agent figures out which MCP tools to use on its own. Security workflows like
When instructions explicitly mention a tool name, they need the The guidance was added to prevent "required tools not available" errors when the instructions say |
The
security-fix-prworkflow referenced GitHub MCP tools without the requiredgithub___prefix, causing "required tools not available" errors at runtime.Changes
github___prefix requirement for GitHub MCP toolslist_code_scanning_alerts→github___list_code_scanning_alertsget_code_scanning_alert→github___get_code_scanning_alertget_file_contents→github___get_file_contentsExample
This matches the pattern established in
code-scanning-fixer.md(PR #12020) and ensures consistent MCP tool naming across security workflows using thecode_securitytoolset.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.