Skip to content

Adding a command to generate MCP server package for submission on Mic…#12

Merged
nagupta123 merged 2 commits intomainfrom
nakulgupta/packageMCP
Nov 15, 2025
Merged

Adding a command to generate MCP server package for submission on Mic…#12
nagupta123 merged 2 commits intomainfrom
nakulgupta/packageMCP

Conversation

@nagupta123
Copy link
Contributor

@nagupta123 nagupta123 commented Nov 14, 2025

Testing:
Command
develop-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

@nagupta123 nagupta123 requested a review from a team as a code owner November 14, 2025 22:25
Copilot AI review requested due to automatic review settings November 14, 2025 22: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

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 PackageMCPServerHelper class to handle manifest generation and ZIP package creation
  • Adds GetServerInfoAsync method to fetch MCP server details from the management endpoint
  • Creates the package-mcp-server subcommand 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

@nagupta123 nagupta123 merged commit d188318 into main Nov 15, 2025
1 of 2 checks passed


// PackageMCPServer constants
public static class PackageMCPServer
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this to its own file?

@pontemonti pontemonti deleted the nakulgupta/packageMCP branch December 5, 2025 17:27
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.

4 participants