npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

m365-sse

v1.0.0

Published

M365 MCP with SSE

Readme

Azure AI Foundry MCP Server

This MCP Server implementation allows you to use Azure AI Foundry Agents as tools to other AI Agents or MCP clients.

[!CAUTION] This implementation is an example implementation and is NOT production ready.

Repository Overview

This repository contains the implementation of the Azure AI Foundry MCP Server. The server includes the following endpoints:

  • list_ai_foundry_agents: Handles the request for listing all agents available in your AI Project.
  • query_ai_foundry_agent: Handles the request for a specific agent, using the agent id.

Project Structure

The repository is organized as follows:

  • src/: Contains the main source code for the MCP Server.
    • auth.ts: Handles authentication mechanisms.
    • index.ts: Entry point for the server.
    • mcp_tools.ts: Implements tools for MCP operations.
    • tool_definitions.ts: Defines the tools available in the server.
    • utils.ts: Utility functions used across the project.
  • azureaimcp.yaml: Configuration file to use for creation of the Power Automate Customer Connector for the MCP Server.
  • package.json: Node.js project metadata and dependencies.
  • tsconfig.json: TypeScript configuration file.

Getting Started

Prerequisites

  • Node.js (version 14 or higher)
  • Azure account with necessary permissions
  • Azure Foundry Project and Agents
  • Azure Web App to deploy MCP Server [Can be done directly from Visual Studio Code using the Azure Tools add-in]
    • To authenticate the MCP Server Web App against the AI Foundry Services you have to setup a managed identity that has acces to the AI Project and can execute the AI Agents.
  • Optional: A Copilot Studio Agent

Installation

  1. Clone the repository:
    git clone https://github.com/evanuum/ai-foundry-dynamic-agents-mcp.git
  2. Navigate to the project directory:
    cd ai-foundry-dynamic-agents-mcp
  3. Install dependencies:
    npm install

Run locally

  1. Create an .env file in your workspace for the environment variables:
     PROJECT_CONNECTION_STRING=<Your AI Foundry Project Connection>
     MCP_API_KEY=<Your API Key to be used by the client to authenticate> [Currently disabled in the code]
  2. Build the project:
    npm run build
  3. Start the MCP Server:
    npm start
  4. The MCP endpoint will be:
    http://localhost:3001/sse

Run on Azure

  1. Deploy the MCP server to your Azure Web App. Set the environment variables on your App Server.
    PROJECT_CONNECTION_STRING=<Your AI Foundry Project Connection>
    MCP_API_KEY=<Your API Key to be used by the client to authenticate> [Currently disabled in the code]
  2. The MCP endpoint will be:
    https://<your endpoint>.azurewebsites.net/sse

MCP Server Usage

  1. Use the provided endpoints or integrate the server with your MCP clients:

    • You can use GitHub Copilot in VSCode for testing.
    • Add a file 'mcp.json' in the .vscode directory of your workspace and add the following content for testing.
      {
          "servers": {
              "aifoundry-mcp-server": {
                  "type": "sse",
                  "url": "<MCP endpoint as mentioned above>",
                  "headers" : {
                      "x-api-key": "<Your Api Key, if enabled>"
                  }
              },
          }
      }
    • Use the endpoint of your deployed server and your Api Key [only if enabled in your code].
  2. Optional: Use the provided endpoints in a Microsoft Copilot Studio Agent:

    • Create an agent in Copilot Studio with the following instructions
      You are a dynamic orchestration agent. When resolving a question do this in this sequence:
      1. List the available agents.
      2. Determine which agent is most suitable to answer the question, based on its description.
      3. Query the agent using its id from the list. Query an agent only once.
      4. Provide the answer and indicate which agent you used to resolve the question.
      5. If you can't find an agent to answer the question, answer with "Sorry, I can't assist with that."
    • Disable the 'Allow the AI to use its own general knowledge.' options for your Copilot Agent
    • Create a Costum Connector in your Power Platform environment using the provide Yaml in 'azureaimcp.yaml'. Ensure you use your MCP Server endpoint in the yaml file. E.g. ******.azurewebsites.net.
    • Make sure it points to your MCP Server [Web App] endpoint.
    • Use the Custom Connector as a [MCP] tool in your Copilot Agent.

License

This project is licensed under the terms of the LICENSE file.