-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add MCP sample with V2026_01_01_PREVIEW support #47710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds support for a new service version V2026_01_01_PREVIEW to the Azure VoiceLive SDK and includes an MCP (Model Context Protocol) sample demonstrating external tool integration with MCP servers. Note: The PR title contains a typo ("suppor" instead of "support").
Changes:
- Added
V2026_01_01_PREVIEWservice version enum toVoiceLiveServiceVersion.java - Created new
MCPSample.javademonstrating MCP server integration, approval workflows, and tool execution - The sample uses the new preview service version for MCP features
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| VoiceLiveServiceVersion.java | Adds V2026_01_01_PREVIEW enum value for the new preview API version |
| MCPSample.java | New comprehensive sample demonstrating MCP integration with voice conversations, tool calling, approval workflows, and audio processing |
Comments suppressed due to low confidence (1)
sdk/ai/azure-ai-voicelive/src/main/java/com/azure/ai/voicelive/VoiceLiveServiceVersion.java:47
- The
getLatest()method returnsV2025_10_01but a newer versionV2026_01_01_PREVIEWhas been added. Consider whether the latest should point to the newest version (even if it's preview) or if the current behavior is intentional to return the latest stable version. The JavaDoc should clarify this behavior.
public static VoiceLiveServiceVersion getLatest() {
return V2025_10_01;
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/MCPSample.java
Show resolved
Hide resolved
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/MCPSample.java
Show resolved
Hide resolved
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/MCPSample.java
Outdated
Show resolved
Hide resolved
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/MCPSample.java
Show resolved
Hide resolved
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/MCPSample.java
Show resolved
Hide resolved
…ive/MCPSample.java Co-authored-by: Copilot <[email protected]>
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines