8000 GitHub - mc365DEVOPS/remote-mcp-apim-appservice-dotnet
[go: up one dir, main page]

Skip to content

mc365DEVOPS/remote-mcp-apim-appservice-dotnet

 
 

Repository files navigation

Secure Remote Microsoft Graph MCP Servers using Azure API Management (Experimental)

Diagram

Azure API Management acts as the AI Gateway for MCP servers.

This sample implements the latest MCP Authorization specification. Then calls Microsoft Graph API in MCP tool.

This is a sequence diagram to understand the flow.

Deploy Remote MCP Server to Azure

Run this azd command to provision the api management service, web app(with code) and all other required Azure resources

```shell
azd up
```

MCP Inspector

  1. In a new terminal window, install and run MCP Inspector

    npx @modelcontextprotocol/inspector
  2. CTRL click to load the MCP Inspector web app from the URL displayed by the app (e.g. http://127.0.0.1:6274/#resources)

  3. Set the transport type to Streamable HTTP

  4. Set the URL to your running API Management Streamable HTTP endpoint displayed after azd up and Connect azd up result

  5. List Tools.

  6. Click the ShowUserProfile tool and Run Tool. The tool will return your user profile.

VS Code

  1. Install latest VS Code Insider
  2. Open Command Palette and trigger MCP: Add Server command
  3. Select HTTP as MCP server type
  4. Set the URL to your running API Management Streamable HTTP endpoint displayed after azd up and Connect azd up result
  5. Wait a while, VS Code Insider will ask you to login
  6. Open GitHub Copilot and ask "Who am I?" in agent mode. GitHub Copilot will return your user profile obtained from this MCP server.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Bicep 84.4%
  • C# 8.5%
  • Mermaid 7.1%
0