Repository navigation
Skip redundant gh-aw extension installation when provided by imports - #6111
Conversation
…ported Co-authored-by: mnkiefer <[email protected]>
|
@copilot, we no longer need imports: - shared/mcp/gh-aw.md if we have tools: agentic-workflows:? What is the preferred pattern? |
Co-authored-by: mnkiefer <[email protected]>
Good question! After my changes, there are now two patterns: Pattern 1: Just
Pattern 2: Import
Currently portfolio-analyst.md has BOTH (line 15 + line 31), which creates duplicate MCP servers. The import is needed because line 23 uses Recommendation: Keep the import for portfolio-analyst since it uses Should we remove the redundant |
|
@copilot Yes, remove the redundant agentic-workflows: tool declaration from portfolio-analyst since the import already provides it. |
Co-authored-by: mnkiefer <[email protected]>
Done in c12dc2d. Removed the redundant |
Workflows using the
agentic-workflowstool that importshared/mcp/gh-aw.mdwere getting duplicate installation steps: one from the import (viamake install) and one auto-generated by the compiler (viagh extension install githubnext/gh-aw).Changes
ImportedFilesforshared/mcp/gh-aw.mdbefore generating installation stepagentic-workflows:tool declaration since the import already provides itRecommended Patterns
After these changes, there are two recommended patterns:
Pattern 1: Just
tools: agentic-workflows:Pattern 2: Import
shared/mcp/gh-aw.mdmake install)gh awcommands in pre-download steps OR testing local changesExample
Before (portfolio-analyst.lock.yml):
After:
Workflows without the import continue to get the auto-generated installation step as before.
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.