github avatar

Mcp Create Declarative Agent

This generates the complete file structure for integrating an MCP server with Microsoft 365 Copilot as a declarative agent. It scaffolds manifest.json, declarativeAgent.json, and ai-plugin.json with proper authentication flows, tool imports, and response semantics mapping. You'd use this when you need to connect Copilot to external APIs through the Model Context Protocol rather than building custom connectors. The workflow walks through server URL configuration, OAuth setup, and tool selection from the MCP endpoint. It handles the tedious parts like proper schema validation and environment variable templating that usually trip people up when setting up these integrations manually.

skills.sh installs
8.7K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill mcp-create-declarative-agent --agent claude-code

Installs into .claude/skills of the current project.

Files

---
mode: 'agent'
tools: ['changes', 'search/codebase', 'edit/editFiles', 'problems']
description: 'Create a declarative agent for Microsoft 365 Copilot by integrating an MCP server with authentication, tool selection, and configuration'
model: 'gpt-4.1'
tags: [mcp, m365-copilot, declarative-agent, model-context-protocol, api-plugin]
---

# Create MCP-based Declarative Agent for Microsoft 365 Copilot

Create a complete declarative agent for Microsoft 365 Copilot that integrates with a Model Context Protocol (MCP) server to access external systems and data.

## Requirements

Generate the following project structure using Microsoft 365 Agents Toolkit:

### Project Setup
1. **Scaffold declarative agent** via Agents Toolkit
2. **Add MCP action** pointing to MCP server
3. **Select tools** to import from MCP server
4. **Configure authentication** (OAuth 2.0 or SSO)
5. **Review generated files** (manifest.json, ai-plugin.json, declarativeAgent.json)

### Key Files Generated

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, AI & Agent Building

More from github/awesome-copilot

All 318
1github avatarcreate-spring-boot-kotlin-projectgithub/awesome-copilotCreate Spring Boot Kotlin Project Skeleton8.7Kskills.sh installs
2github avatartypespec-create-api-plugingithub/awesome-copilotGenerate a TypeSpec API plugin with REST operations, authentication, and Adaptive Cards for Microsoft 365 Copilot8.7Kskills.sh installs
3github avatarcosmosdb-datamodelinggithub/awesome-copilotStep-by-step guide for capturing key application requirements for NoSQL use-case and produce Azure Cosmos DB Data NoSQL Model design using best practices and co8.7Kskills.sh installs
4github avatarpower-platform-mcp-connector-suitegithub/awesome-copilotGenerate complete Power Platform custom connector with MCP integration for Copilot Studio - includes schema generation, troubleshooting, and validation8.7Kskills.sh installs
5github avatarsponsor-findergithub/awesome-copilotFind which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, R8.7Kskills.sh installs
6github avatarmcp-copilot-studio-server-generatorgithub/awesome-copilotGenerate a complete MCP server implementation optimized for Copilot Studio integration with proper schema constraints and streamable HTTP support8.7Kskills.sh installs