Add MCP sample with V2026_01_01_PREVIEW support#47710
Merged
Merged
Conversation
Contributor
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Contributor
There was a problem hiding this comment.
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;
Contributor
…ive/MCPSample.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
rhurey
reviewed
Jan 16, 2026
rhurey
approved these changes
Jan 16, 2026
added 2 commits
January 16, 2026 16:53
amber-yujueWang
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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