Adding a command to generate MCP server package for submission on Mic…#12
Merged
nagupta123 merged 2 commits intomainfrom Nov 15, 2025
Merged
Adding a command to generate MCP server package for submission on Mic…#12nagupta123 merged 2 commits intomainfrom
nagupta123 merged 2 commits intomainfrom
Conversation
…rosoft admin center
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new package-mcp-server command to generate MCP server packages for submission to the Microsoft admin center. The command fetches server information from the MCP management endpoint, downloads an icon, and creates a ZIP package containing a manifest.json and icon files.
- Introduces a new
PackageMCPServerHelperclass to handle manifest generation and ZIP package creation - Adds
GetServerInfoAsyncmethod to fetch MCP server details from the management endpoint - Creates the
package-mcp-serversubcommand with required options for server name, developer name, icon URL, and output path
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs |
New helper class for generating manifests and building ZIP packages from MCP server information |
src/Microsoft.Agents.A365.DevTools.Cli/Services/IAgent365ToolingService.cs |
Added interface method GetServerInfoAsync to retrieve MCP server details |
src/Microsoft.Agents.A365.DevTools.Cli/Services/Agent365ToolingService.cs |
Implemented GetServerInfoAsync to query the MCP management endpoint and parse server information |
src/Microsoft.Agents.A365.DevTools.Cli/Commands/DevelopMcpCommand.cs |
Added CreatePackageMCPServerSubCommand to register the new package-mcp-server command |
src/Microsoft.Agents.A365.DevTools.Cli/Constants/McpConstants.cs |
Added PackageMCPServer constants including file names and manifest template |
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/DevelopMcpCommandTests.cs |
Updated tests to verify the new subcommand structure and options |
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Services/IAgent365ToolingService.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Services/Agent365ToolingService.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Services/IAgent365ToolingService.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Services/Agent365ToolingService.cs
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Helpers/PackageMCPServerHelper.cs
Show resolved
Hide resolved
juliomenendez
approved these changes
Nov 15, 2025
|
|
||
|
|
||
| // PackageMCPServer constants | ||
| public static class PackageMCPServer |
Contributor
There was a problem hiding this comment.
Can you move this to its own file?
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.
Testing:
Commanddevelop-mcp package-mcp-server --server-name "mcp_MailTools" --developer-name ABCCorp --icon-url "https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/v1.0.1778/1.0.1778.4417/commondataserviceforapps/icon.png" --output-path "C:\Users\nakulgupta\Ignite\output"
Output[14:06:17 INF] Starting package creation...
[14:06:32 INF] Calling get MCP server for mcp_MailTools
[14:06:35 INF] Environment: test
[14:06:35 INF] Endpoint URL: https://test.agent365.svc.cloud.dev.microsoft/agents/servers/MCPManagement
[14:06:35 INF] Acquiring access token for audience: ea9ffc3e-8a23-4a7d-836d-234d7c7565c1
[14:06:35 INF] Using cached authentication token for 05879165-0320-489e-b644-f72b33f3edf0
[14:06:35 INF] Successfully acquired access token
[14:06:35 INF] HTTP Method: POST
[14:06:35 INF] Request URL: https://test.agent365.svc.cloud.dev.microsoft/agents/servers/MCPManagement
[14:06:35 INF] Request Payload: {"params":{"name":"GetMCPServer","arguments":{"mcpServerName":"mcp_MailTools"}},"method":"tools/call","id":"1","jsonrpc":"2.0"}
[14:06:35 INF] Making POST request to: https://test.agent365.svc.cloud.dev.microsoft/agents/servers/MCPManagement
[14:06:37 INF] Successfully received response from MCP servers management endpoint
[14:06:37 WRN] Short description truncated to 80 characters. Original 'Comprehensive tools for email operations including create, send, reply, update, delete, and search messages with optional file attachments.' -> 'Comprehensive tools for email operations including create, send, reply, update, '
[14:06:37 INF] Package was created successfully at C:\Users\nakulgupta\Ignite\output\Package_3fb34f44-7f4e-4e9e-855f-072404166824.zip