Skip to content

Add Mock MCP Server#74

Merged
JesuTerraz merged 11 commits intomainfrom
users/jterrazas/move-mock-mcp
Dec 11, 2025
Merged

Add Mock MCP Server#74
JesuTerraz merged 11 commits intomainfrom
users/jterrazas/move-mock-mcp

Conversation

@JesuTerraz
Copy link
Contributor

No description provided.

@abdulanu0 abdulanu0 marked this pull request as ready for review December 8, 2025 21:09
@abdulanu0 abdulanu0 requested review from a team as code owners December 8, 2025 21:09
Copilot AI review requested due to automatic review settings December 8, 2025 21:09
Copy link
Contributor

Copilot AI left a 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 a Mock MCP (Model Context Protocol) Server to the Agent365-dotnet repository. The server enables testing and development of MCP tools by providing mock implementations that simulate real tool behavior with configurable responses, delays, and error rates.

Key Changes

  • Mock Server Infrastructure: New ASP.NET Core application (MockToolingServer) with MCP support via SSE and HTTP transports
  • Tool Management System: File-based storage system for mock tool definitions with hot-reload capability
  • Pre-configured Mock Tools: JSON files containing mock definitions for Mail and Calendar tools from Microsoft Graph API

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 21 comments.

Show a summary per file
File Description
mcp/Program.cs Main entry point configuring MCP server, admin endpoints, and tool execution routing
mcp/MockTools/MockToolModels.cs Data models for mock tool definitions and configuration options
mcp/MockTools/MockToolExecutor.cs Core logic for listing and executing mock tools with template rendering
mcp/MockTools/IMockToolStore.cs Interface defining tool storage operations
mcp/MockTools/FileMockToolStore.cs File-based implementation of tool storage with filesystem watching
mcp/mocks/mcp_MailTools.json Mock tool definitions for Microsoft 365 mail operations
mcp/mocks/mcp_CalendarTools.json Mock tool definitions for Microsoft 365 calendar operations
mcp/MockToolingServer.csproj Project file defining dependencies and build configuration
mcp/MockToolingServer.sln Solution file for Visual Studio
mcp/README.md Documentation for using the mock server and managing mock tools
mcp/appsettings.json Application configuration for logging
mcp/Properties/launchSettings.json Development environment settings for debugging

pontemonti
pontemonti previously approved these changes Dec 8, 2025
sellakumaran
sellakumaran previously approved these changes Dec 9, 2025
@JesuTerraz JesuTerraz dismissed stale reviews from sellakumaran and pontemonti via 456730b December 9, 2025 18:14
Copilot AI review requested due to automatic review settings December 9, 2025 18:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 12 comments.

Comments suppressed due to low confidence (2)

mcp/MockTools/FileMockToolStore.cs:56

  • Poor error handling: empty catch block.
        catch (Exception ex)
        {
            Console.WriteLine($"Failed to initialize FileSystemWatcher: {ex.Message}");

mcp/MockTools/FileMockToolStore.cs:61

  • Poor error handling: empty catch block.
    {

Copilot AI review requested due to automatic review settings December 9, 2025 19:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 21 comments.

Copilot AI review requested due to automatic review settings December 9, 2025 22:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 22 comments.

@JesuTerraz JesuTerraz enabled auto-merge (squash) December 11, 2025 18:31
@JesuTerraz JesuTerraz merged commit a830958 into main Dec 11, 2025
11 checks passed
@JesuTerraz JesuTerraz deleted the users/jterrazas/move-mock-mcp branch December 11, 2025 18:32
sellakumaran pushed a commit that referenced this pull request Feb 27, 2026
* initial commit

* remove non utf-8 chars

* add copyright headers and fix endpoints

* remove admin endpoints

* updated mock mcps to use updated mcp descriptions

* copilot comments

* copilot comments

* copilot comments 3x

* Update tool defs

* update to readme

---------

Co-authored-by: Jesus Terrazas <jterrazas@microsoft.com>
Co-authored-by: abdulanu0 <abdulanu0@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants