Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions servers/Azure.Mcp.Server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The Azure MCP Server updates automatically by default whenever a new release com
### Breaking Changes

### Bugs Fixed
- Updated Azure Function code generation best practices instrunctions to include Azure examples to help LLM not generating undesiable patterns. [[#1267](https://github.com/microsoft/mcp/pull/1267)]

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Azure Functions code generation best practices:
- Learn the coding best practices from Azure examples listed at https://github.com/Azure-Samples
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting from https://github.com/Azure-Samples returns an html page that is not agent friendly. Have you considered using GitHub API to fetch the code samples? Instead of just giving the agent a root to navigate, the API call can scope down further.

For example,
https://api.github.com/search/repositories?q=org:Azure-Samples%20language:Python

This will give json response for repos in Azure-Samles organization that has Python files.

Here is the documentation of this API
https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-repositories

- Use the latest programming models (v4 for JavaScript, v2 for Python)
- If the project runtime is Python or Node.js, do not create a function.json file
- Only if the project runtime is .NET, PowerShell or Java create a function.json file with the required bindings and triggers.
Expand Down