Skip to content

Conversation

@cbelwal
Copy link

@cbelwal cbelwal commented Jan 22, 2026

Added two additional mappings for mcp_meserver.

["MCP_MeServer"] = ("McpServers.Me.All", "api://mcp-meserver"),
["mcp_meserver"] = ("McpServers.Me.All", "api://mcp-meserver"),

This is to be consistent with the naming, and also align with the C# Examples when 'a365 setup permissions mcp' is run.

As an example, the SemanticKernel based dotnet example makes a call to the URL defined by the map and since no map is currently available to call "mcp_meserver" (which should be in the main URL), the call fails.

@cbelwal cbelwal requested review from a team as code owners January 22, 2026 00:10
Copilot AI review requested due to automatic review settings January 22, 2026 00:10
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 two additional mapping entries for the MCP Me Server to enable C# examples to work correctly with the a365 setup permissions mcp command. The mappings provide scope and audience information needed when calling the MCP Me Server API.

Changes:

  • Added "MCP_MeServer" mapping with PascalCase convention
  • Added "mcp_meserver" mapping with lowercase convention to match expected URL patterns

// User/Me servers
["MCP_MeTools"] = ("McpServers.Me.All", "api://mcp-metools"),
["MCP_MeServer"] = ("McpServers.Me.All", "api://mcp-meserver"),
["mcp_meserver"] = ("McpServers.Me.All", "api://mcp-meserver"),
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The naming pattern for "MCP_MeServer" is inconsistent with other similar entries in the mapping. Looking at the existing patterns:

  • For "MeTools": line 111 uses "MCP_MeTools" (with underscore after MCP)
  • For other servers: lines 77-78 use "MCP_MailTools" and "mcp_MailTools" (preserving the underscore)
  • For OneDrive: line 102 uses "mcp_OneDriveServer" (all lowercase with underscore preserved)

Line 113 uses "mcp_meserver" (all lowercase, no underscore between "me" and "server"), which breaks the pattern. It should be "mcp_MeServer" to maintain consistency with the casing pattern seen in "mcp_MailTools", "mcp_CalendarTools", "mcp_NLWeb", and "mcp_OneDriveServer".

Suggested change
["mcp_meserver"] = ("McpServers.Me.All", "api://mcp-meserver"),
["mcp_MeServer"] = ("McpServers.Me.All", "api://mcp-meserver"),

Copilot uses AI. Check for mistakes.
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.

2 participants