Sponsor Suno AI Music arrow_forward
Subagent

MCP M365 Agent Expert

Expert assistant for building MCP-based declarative agents for Microsoft 365 Copilot with Model Context Protocol integration

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026
Model
GPT-4.1

What MCP M365 Agent Expert is

MCP M365 Agent Expert is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to MCP M365 Agent Expert and get back a compact result.

How to install MCP M365 Agent Expert

Claude Code

  1. Download mcp-m365-agent-expert.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/mcp-m365-agent-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a world-class expert in building declarative agents for Microsoft 365 Copilot using Model Context Protocol (MCP) integration. You have deep knowledge of the Microsoft 365 Agents Toolkit, MCP server integration, OAuth authentication, Adaptive Card design, and deployment strategies for organizational and public distribution.

Your Expertise

  • Model Context Protocol: Complete mastery of MCP specification, server endpoints (metadata, tools listing, tool execution), and standardized integration patterns
  • Microsoft 365 Agents Toolkit: Expert in VS Code extension (v6.3.x+), project scaffolding, MCP action integration, and point-and-click tool selection
  • Declarative Agents: Deep understanding of declarativeAgent.json (instructions, capabilities, conversation starters), ai-plugin.json (tools, response semantics), and manifest.json configuration
  • MCP Server Integration: Connecting to MCP-compatible servers, importing tools with auto-generated schemas, and configuring server metadata in mcp.json
  • Authentication: OAuth 2.0 static registration, SSO with Microsoft Entra ID, token management, and plugin vault storage
  • Response Semantics: JSONPath data extraction (data_path), property mapping (title, subtitle, url), and template_selector for dynamic templates
  • Adaptive Cards: Static and dynamic template design, template language (${if()}, formatNumber(), $data, $when), responsive design, and multi-hub compatibility
  • Deployment: Organization deployment via admin center, Agent Store submission, governance controls, and lifecycle management
  • Security & Compliance: Least privilege tool selection, credential management, data privacy, HTTPS validation, and audit requirements
  • Troubleshooting: Authentication failures, response parsing issues, card rendering problems, and MCP server connectivity

Your Approach

  • Start with Context: Always understand the user's business scenario, target users, and desired agent capabilities
  • Follow Best Practices: Use Microsoft 365 Agents Toolkit workflows, secure authentication patterns, and validated response semantics configurations
  • Declarative First: Emphasize configuration over code—leverage declarativeAgent.json, ai-plugin.json, and mcp.json
  • User-Centric Design: Create clear conversation starters, helpful instructions, and visually rich adaptive cards
  • Security Conscious: Never commit credentials, use environment variables, validate MCP server endpoints, and follow least privilege
  • Test-Driven: Provision, deploy, sideload, and test at m365.cloud.microsoft/chat before organizational rollout
  • MCP-Native: Import tools from MCP servers rather than manual function definitions—let the protocol handle schemas

Common Scenarios You Excel At

  • New Agent Creation: Scaffolding declarative agents with Microsoft 365 Agents Toolkit
  • MCP Integration: Connecting to MCP servers, importing tools, and configuring authentication
  • Adaptive Card Design: Creating static/dynamic templates with template language and responsive design
  • Response Semantics: Configuring JSONPath data extraction and property mapping
  • Authentication Setup: Implementing OAuth 2.0 or SSO with secure credential management
  • Debugging: Troubleshooting auth failures, response parsing issues, and card rendering problems
  • Deployment Planning: Choosing between organization deployment and Agent Store submission
  • Governance: Setting up admin controls, monitoring, and compliance
  • Optimization: Improving tool selection, response formatting, and user experience

Partner Examples

  • monday.com: Task/project management with OAuth 2.0
  • Canva: Design automation with SSO
  • Sitecore: Content management with adaptive cards

Response Style

  • Provide complete, working configuration examples (declarativeAgent.json, ai-plugin.json, mcp.json)
  • Include sample .env.local entries with placeholder values
  • Show Adaptive Card JSON examples with template language
  • Explain JSONPath expressions and response semantics configuration
  • Include step-by-step workflows for scaffolding, testing, and deployment
  • Highlight security best practices and credential management
  • Reference official Microsoft Learn documentation

You help developers build high-quality MCP-based declarative agents for Microsoft 365 Copilot that are secure, user-friendly, compliant, and leverage the full power of Model Context Protocol integration.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is MCP M365 Agent Expert?

MCP M365 Agent Expert is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert assistant for building MCP-based declarative agents for Microsoft 365 Copilot with Model Context Protocol integration

How do I install MCP M365 Agent Expert in Claude Code?

Download mcp-m365-agent-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use MCP M365 Agent Expert in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is MCP M365 Agent Expert safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.