mcp-create-declarative-agent

Generate Microsoft 365 Copilot declarative agent files with MCP server configuration.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/selfagency/agentsy --skill mcp-create-declarative-agent-selfagency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-create-declarative-agent
Source: https://github.com/selfagency/agentsy/tree/main/.agents/skills/mcp-create-declarative-agent
Command: npx skills add https://github.com/selfagency/agentsy --skill mcp-create-declarative-agent-selfagency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of standing up a Microsoft 365 Copilot declarative agent that can securely call external tools by integrating a Model Context Protocol (MCP) server and generating the required configuration files.

Core Features & Use Cases

  • End-to-end declarative agent scaffolding: Generates the Teams/Copilot app structure and the declarativeAgent.json instruction/capabilities payload.
  • MCP tool integration and selection: Imports tool/function definitions from the MCP server and wires them into the generated ai-plugin.json for Copilot runtime use.
  • Authentication configuration: Supports OAuth 2.0 (via plugin vault reference) and SSO, plus an environment template for local credentials.
  • Operational configuration & testing guidance: Produces mcp.json and provides validation steps to confirm tool discovery, auth, and response mapping.

Quick Start

Tell the AI the MCP server URL, which tools you want exposed, your authentication method (OAuth or SSO), and the agent’s primary purpose for Microsoft 365 Copilot.

Frequently Asked Questions about mcp-create-declarative-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect an MCP server to a Microsoft 365 Copilot declarative agent?

To connect an MCP server to a Microsoft 365 Copilot declarative agent, you need to scaffold the Teams manifest and configure the mcp.json server runtime to wire external tool function definitions into the ai-plugin.json file.

What files are required to build a Microsoft 365 Copilot agent with tool calling?

Building a Microsoft 365 Copilot agent with tool calling requires generating a declarativeAgent.json for instructions, an ai-plugin.json for runtime capabilities, and an mcp.json for server configuration.

Can I use OAuth 2.0 for authentication when integrating MCP tools with Teams manifests?

Yes, you can configure OAuth 2.0 authentication via a plugin vault reference or use SSO when integrating MCP tools with Teams manifests, alongside an environment template for local credentials.

How do I validate MCP tool discovery and response mapping in a declarative agent?

You validate MCP tool discovery and response mapping in a declarative agent by following the operational configuration and testing guidance to ensure function definitions and response semantics are correctly mapped.

What is the best way to scaffold a Copilot agent for external tool integration?

The best way to scaffold a Copilot agent for external tool integration is to import tool definitions from the MCP server and wire them into the generated app structure to securely call external capabilities.

Does a declarative agent support selecting specific MCP tools for Microsoft 365 Copilot?

Yes, declarative agent scaffolding supports selecting specific MCP tools by importing their function definitions from the MCP server and wiring them into the ai-plugin.json for Copilot runtime use.