Add mcp_MeServer mock and enhance calendar mock data#214
Merged
sellakumaran merged 2 commits intomicrosoft:mainfrom Feb 11, 2026
Merged
Add mcp_MeServer mock and enhance calendar mock data#214sellakumaran merged 2 commits intomicrosoft:mainfrom
sellakumaran merged 2 commits intomicrosoft:mainfrom
Conversation
This PR adds user directory mock tools and improves calendar mock responses for more realistic local agent testing. Changes: - Add mcp_MeServer.json with 5 user directory tools: - getMyProfile: Get current user's profile - listUsers: Search/list users in directory - getUser: Get specific user by ID - getManager: Get user's manager - getDirectReports: List user's direct reports - Update mcp_CalendarTools.json: - Add mock calendar events to listEvents and listCalendarView responses - Events include Team Sync, Product Roadmap Review, Board Presentation - Update README.md: - Document available mock servers (CalendarTools, MailTools, MeServer) - Add tool descriptions and use cases These enhancements enable comprehensive local testing of agents that need to look up users by name before scheduling meetings.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new mock MCP server for user/directory operations and enhances existing calendar mock tools to return realistic JSON responses matching Microsoft Graph API format.
Changes:
- Added
mcp_MeServer.jsonwith 5 user/directory lookup tools (getMyProfile, listUsers, getUser, getManager, getDirectReports) - Enhanced calendar tools to return structured JSON responses instead of simple text
- Added comprehensive documentation to README.md describing all available mock servers and their tools
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
mocks/mcp_MeServer.json |
New mock server with 5 user/directory tools for profile and directory lookup operations |
mocks/mcp_CalendarTools.json |
Enhanced getCalendarView and listEvents to return realistic JSON matching Graph API format |
README.md |
Added documentation table listing all available mock servers and their tools |
src/Microsoft.Agents.A365.DevTools.MockToolingServer/mocks/mcp_MeServer.json
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.MockToolingServer/mocks/mcp_MeServer.json
Outdated
Show resolved
Hide resolved
Replace {{mockUserName}}, {{mockUserEmail}}, {{mockManagerName}}, and
{{mockManagerEmail}} with static mock values since these placeholders
are not defined in inputSchema and would appear as literal text in
responses.
Addresses review feedback from PR microsoft#214.
rahuldevikar761
approved these changes
Feb 2, 2026
Collaborator
rahuldevikar761
left a comment
There was a problem hiding this comment.
Looks good to me. Thanks for contributing.
joratz
approved these changes
Feb 6, 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.
Add mcp_MeServer mock and enhance calendar mock data
Problem
Solution
**Added \mcp_MeServer.json**: New mock server with 5 user/directory tools:
**Enhanced \mcp_CalendarTools.json**: Updated \getCalendarView\ and \listEvents\ to return realistic JSON responses matching Graph API format (with event objects containing id, subject, start/end times, showAs status)
Updated README.md: Added comprehensive documentation of all available mock servers and their tools
Changes
Testing
Dependencies
This PR depends on #197 (gateway endpoint) being merged first, as it builds on the same mock server infrastructure.