Skip to main content

Prerequisites

  • Microsoft 365 admin access to enable Agent 365
  • Access to your Runlayer instance

Setup Steps

1

Enable Agent 365 Access

  1. Navigate to Microsoft Admin Center > Copilot Settings
  2. Under Web apps, enable access for all users or specific users
2

Find Your Environment ID

The Agent 365 servers require your Power Platform environment ID.
  1. Find your environment ID using Microsoft’s guide
  2. Save this for the next step
3

Add Server in Runlayer

  1. In Runlayer, go to Connectors > Add New
  2. Find a Microsoft Agent 365 server (e.g., Microsoft Teams, Microsoft Outlook Mail)
  3. Replace the placeholder environment ID in the URL with your actual environment ID
  4. Click Create Hosted MCP
  5. When prompted, sign in with your Microsoft 365 account to authorize access
No Azure AD app registration is required. Runlayer handles OAuth automatically using a shared multitenant application. Users just need to consent during the sign-in flow.

Available Servers

All Microsoft Agent 365 servers share the same OAuth authorization:
ServerTools
Microsoft Teams25
Microsoft Outlook Mail20
Microsoft SharePoint & OneDrive15
Microsoft SharePoint Lists13
Microsoft Outlook Calendar12
Microsoft 365 User Profile6
Microsoft Word4
Microsoft 365 Copilot Search1
Microsoft 365 Admin Center1

Troubleshooting

If Agent 365 servers return errors after setup:
  • Verify Agent 365 access is enabled in the Microsoft Admin Center (Step 1)
  • The API may take a few minutes to propagate after enabling access
If you see connection errors:
  • Double-check your Power Platform environment ID
  • Ensure you’re using the environment ID, not the tenant ID
  • See Microsoft’s guide for finding the correct ID

Next Steps

OAuth Broker Guide

Learn more about OAuth Broker

MCP Custom Servers

Create other custom MCP servers