AI/MCPClient#572
Merged
Merged
Conversation
Co-authored-by: Copilot <copilot@github.com>
corinagum
approved these changes
May 14, 2026
Collaborator
corinagum
left a comment
There was a problem hiding this comment.
Sample looks great! Please add unit tests before merging.
I wasn't able to test it out myself but if you do a demo, I'd love to see it.
corinagum
approved these changes
May 18, 2026
|
Thanks for this new sample @MehakBindra! |
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.
This pull request introduces a new sample bot,
ai-mcp, which demonstrates integrating Azure OpenAI with the Model Context Protocol (MCP) in Microsoft Teams. The changes include a new codebase, updated documentation, and configuration to highlight streaming responses, per-conversation memory, clarification cards, MCP tool integration, inline citations, follow-up suggestions, and custom feedback. The sample replaces the previousaiexample with a more advanced, MCP-enabled version.Breaking Change:
PY and TS previously diverged in the way they added attachments, entities, etc to their final message activity in streaming. PY uses the final activity to build these (discarding any previous ones), introduced in this specific commit -microsoft/teams.py@7d5b445#diff-cfe4ab75f0e2e0cb406509120bf35f7f58362130916d7f08d85ac7d88de29b62. TS was previously accumulating it across all streaming activities but behavior now changes to reflect PY.
Key changes:
New ai-mcp Sample Implementation
examples/ai-mcpthat integrates Azure OpenAI and MCP, showcasing advanced Teams bot features such as streaming, tool-calling, inline citations, and feedback. The sample includes core files:agent.ts(agent logic and tool loop),citation-collector.ts(citation extraction and attachment),handlers.ts(Teams activity routing), and a detailedREADME.mdexplaining architecture and usage. [1] [2] [3] [4]Project and Manifest Updates
aitoai-mcp, updated bot name and descriptions inpackage.jsonandappPackage/manifest.jsonto reflect the new MCP-enabled sample.Dependency Changes
@modelcontextprotocol/sdkandopenai, which are required for MCP and Azure OpenAI integration.These changes collectively deliver a more feature-rich Teams bot sample that demonstrates modern AI and MCP integration patterns.