microsoft / microsoft/GitHub-Copilot-for-Azure
azure-prepare: MCP recipe not discovered when user asks to create MCP server
@paulyuk is already working on this.
Since Feb 23, 2026.
- Dominant language
- Python
- Stars
- 250
- Forks
- 204
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 67
Description
Problem
When a user asks to "make this an MCP server", the agent does not automatically discover and use the MCP recipe at references/services/functions/templates/recipes/mcp/.
What Happened
- User asked: "make this an MCP server and redeploy"
- Agent installed external
@modelcontextprotocol/sdkpackage and improvised implementation - Agent did NOT consult the existing MCP recipe with documented JSON-RPC 2.0 pattern
- Only after user questioned the approach did agent search and find the recipe
Expected Behavior
Agent should automatically route to the MCP recipe when user mentions:
- "MCP server"
- "MCP tools"
- "Model Context Protocol"
- "AI agent tools"
Root Cause
The MCP recipe exists and is comprehensive, but there's no explicit routing in the main SKILL.md to direct agents to it based on keywords. The guidance is buried in:
references/services/functions/templates/recipes/mcp/README.mdreferences/services/functions/templates/selection.md(line 10-13)
Suggested Fix
Add a Quick Routing table near the top of azure-prepare/SKILL.md that maps keywords to specific recipes:
## Quick Routing (Check FIRST)
| User Mentions | Go Directly To |
|---------------|----------------|
| MCP, MCP server, AI agent tools | [MCP Recipe](references/services/functions/templates/recipes/mcp/README.md) |
| Event Hubs, stream processing | [Event Hubs Recipe](references/services/functions/templates/recipes/eventhubs/README.md) |
| Service Bus, queues, topics | [Service Bus Recipe](references/services/functions/templates/recipes/servicebus/README.md) |
| Durable Functions, orchestration | [Durable Recipe](references/services/functions/templates/recipes/durable/README.md) |
This would catch keyword-triggered scenarios BEFORE the agent starts the full planning workflow.
Impact
- Agents improvise solutions instead of using tested patterns
- Users get non-standard implementations
- Wasted deployment cycles fixing mistakes
Files Involved
plugin/skills/azure-prepare/SKILL.md- needs routing additionplugin/skills/azure-prepare/references/services/functions/templates/recipes/mcp/README.md- existing recipe (good)plugin/skills/azure-prepare/references/services/functions/templates/selection.md- has MCP detection logic but not prominently linked
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.