옵션
집집 Skill MCP 도구 mcp-create-declarative-agent

mcp-create-declarative-agent

github/awesome-copilot github/awesome-copilot

mcp-create-declarative-agent.prompt.md에서 변환된 스킬

...모든 것을 확장하십시오
45
업데이트 된 시간 2026년 6월 29일

mcp-create-declarative-agent 소개

mcp-create-declarative-agent 스킬은 Microsoft 365 Copilot용 선언형 에이전트 생성을 용이하게 하도록 설계되었습니다. 이 스킬은 MCP 서버와 Microsoft 365 간의 원활한 통합에 대한 요구를 해결하여, 사용자가 외부 시스템 및 데이터에 효율적으로 액세스할 수 있도록 지원합니다. 설정 프로세스를 자동화함으로써, Microsoft 생태계 내의 다양한 도구와 서비스를 활용할 수 있는 에이전트를 생성하는 데 따르는 복잡성을 줄여줍니다.

자주 묻는 질문

선언적 에이전트는 어떻게 설정하나요?

Microsoft 365 Agents Toolkit을 통해 선언적 에이전트의 기본 구조를 생성하고, MCP 작업을 추가하고, 도구를 선택하고, 인증을 구성하고, 생성된 파일을 검토하여 선언적 에이전트를 설정할 수 있습니다.

지원되는 인증 방법은 무엇입니까?

이 스킬은 인증을 위해 OAuth 2.0 및 SSO(Single Sign-On)를 지원합니다.

설정 과정에서 어떤 파일이 생성되나요?

설정 과정에서 manifest.json, ai-plugin.json, declarativeAgent.json 등 몇 가지 주요 파일이 생성됩니다.

특정 MCP 서버 구성이 필요한가요?

예, MCP 서버는 서버 메타데이터, 도구 목록 및 도구 실행을 위한 엔드포인트를 제공해야 합니다.

MCP 서버에서 어떤 도구를 가져올 수 있나요?

요구 사항에 따라 MCP 서버에서 특정 도구를 가져와 선택할 수 있습니다.

GitHub에서 보기
---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 CopilotCreate a complete declarative agent for Microsoft 365 Copilot that integrates with a Model Context Protocol (MCP) server to access external systems and data.## RequirementsGenerate the following project structure using Microsoft 365 Agents Toolkit:### Project Setup1. **Scaffold declarative agent** via Agents Toolkit2. **Add MCP action** pointing to MCP server3. **Select tools** to import from MCP server4. **Configure authentication** (OAuth 2.0 or SSO)5. **Review generated files** (manifest.json, ai-plugin.json, declarativeAgent.json)### Key Files Generated**appPackage/manifest.json** - Teams app manifest with plugin reference:```json{  "$schema": "https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json",  "manifestVersion": "devPreview",  "version": "1.0.0",  "id": "...",  "developer": {    "name": "...",    "websiteUrl": "...",    "privacyUrl": "...",    "termsOfUseUrl": "..."  },  "name": {    "short": "Agent Name",    "full": "Full Agent Name"  },  "description": {    "short": "Short description",    "full": "Full description"  },  "copilotAgents": {    "declarativeAgents": [      {        "id": "declarativeAgent",        "file": "declarativeAgent.json"      }    ]  }}```**appPackage/declarativeAgent.json** - Agent definition:```json{  "$schema": "https://aka.ms/json-schemas/copilot/declarative-agent/v1.0/schema.json",  "version": "v1.0",  "name": "Agent Name",  "description": "Agent description",  "instructions": "You are an assistant that helps with [specific domain]. Use the available tools to [capabilities].",  "capabilities": [    {      "name": "WebSearch",      "websites": [        {          "url": "https://learn.microsoft.com"        }      ]    },    {      "name": "MCP",      "file": "ai-plugin.json"    }  ]}```**appPackage/ai-plugin.json** - MCP plugin manifest:```json{  "schema_version": "v2.1",  "name_for_human": "Service Name",  "description_for_human": "Description for users",  "description_for_model": "Description for AI model",  "contact_email": "[email protected]",  "namespace": "serviceName",  "capabilities": {    "conversation_starters": [      {        "text": "Example query 1"      }    ]  },  "functions": [    {      "name": "functionName",      "description": "Function description",      "capabilities": {        "response_semantics": {          "data_path": "$",          "properties": {            "title": "$.title",            "subtitle": "$.description"          }        }      }    }  ],  "runtimes": [    {      "type": "MCP",      "spec": {        "url": "https://api.service.com/mcp/"      },      "run_for_functions": ["functionName"],      "auth": {        "type": "OAuthPluginVault",        "reference_id": "${{OAUTH_REFERENCE_ID}}"      }    }  ]}```**/.vscode/mcp.json** - MCP server configuration:```json{  "serverUrl": "https://api.service.com/mcp/",  "pluginFilePath": "appPackage/ai-plugin.json"}```## MCP Server Integration### Supported MCP EndpointsThe MCP server must provide:- **Server metadata** endpoint- **Tools listing** endpoint (exposes available functions)- **Tool execution** endpoint (handles function calls)### Tool SelectionWhen importing from MCP:1. Fetch available tools from server2. Select specific tools to include (for security/simplicity)3. Tool definitions are auto-generated in ai-plugin.json### Authentication Types**OAuth 2.0 (Static Registration)**```json"auth": {  "type": "OAuthPluginVault",  "reference_id": "${{OAUTH_REFERENCE_ID}}",  "authorization_url": "https://auth.service.com/authorize",  "client_id": "${{CLIENT_ID}}",  "client_secret": "${{CLIENT_SECRET}}",  "scope": "read write"}```**Single Sign-On (SSO)**```json"auth": {  "type": "SSO"}```## Response Semantics### Define Data MappingUse `response_semantics` to extract relevant fields from API responses:```json"capabilities": {  "response_semantics": {    "data_path": "$.results",    "properties": {      "title": "$.name",      "subtitle": "$.description",      "url": "$.link"    }  }}```### Add Adaptive Cards (Optional)See the `mcp-create-adaptive-cards` prompt for adding visual card templates.## Environment ConfigurationCreate `.env.local` or `.env.dev` for credentials:```envOAUTH_REFERENCE_ID=your-oauth-reference-idCLIENT_ID=your-client-idCLIENT_SECRET=your-client-secret```## Testing & Deployment### Local Testing1. **Provision** agent in Agents Toolkit2. **Start debugging** to sideload in Teams3. Test in Microsoft 365 Copilot at https://m365.cloud.microsoft/chat4. Authenticate when prompted5. Query the agent using natural language### Validation- Verify tool imports in ai-plugin.json- Check authentication configuration- Test each exposed function- Validate response data mapping## Best Practices### Tool Design- **Focused functions**: Each tool should do one thing well- **Clear descriptions**: Help the model understand when to use each tool- **Minimal scoping**: Only import tools the agent needs- **Descriptive names**: Use action-oriented function names### Security- **Use OAuth 2.0** for production scenarios- **Store secrets** in environment variables- **Validate inputs** on the MCP server side- **Limit scopes** to minimum required permissions- **Use reference IDs** for OAuth registration### Instructions- **Be specific** about the agent's purpose and capabilities- **Define behavior** for both successful and error scenarios- **Reference tools** explicitly in instructions when applicable- **Set expectations** for users about what the agent can/cannot do### Performance- **Cache responses** when appropriate on MCP server- **Batch operations** where possible- **Set timeouts** for long-running operations- **Paginate results** for large datasets## Common MCP Server Examples### GitHub MCP Server```URL: https://api.githubcopilot.com/mcp/Tools: search_repositories, search_users, get_repositoryAuth: OAuth 2.0```### Jira MCP Server```URL: https://your-domain.atlassian.net/mcp/Tools: search_issues, create_issue, update_issueAuth: OAuth 2.0```### Custom Service```URL: https://api.your-service.com/mcp/Tools: Custom tools exposed by your serviceAuth: OAuth 2.0 or SSO```## WorkflowAsk the user:1. What MCP server are you integrating with (URL)?2. What tools should be exposed to Copilot?3. What authentication method does the server support?4. What should the agent's primary purpose be?5. Do you need response semantics or Adaptive Cards?Then generate:- Complete appPackage/ structure (manifest.json, declarativeAgent.json, ai-plugin.json)- mcp.json configuration- .env.local template- Provisioning and testing instructions## Troubleshooting### MCP Server Not Responding- Verify server URL is correct- Check network connectivity- Validate MCP server implements required endpoints### Authentication Fails- Verify OAuth credentials are correct- Check reference ID matches registration- Confirm scopes are requested properly- Test OAuth flow independently### Tools Not Appearing- Ensure mcp.json points to correct server- Verify tools were selected during import- Check ai-plugin.json has correct function definitions- Re-fetch actions from MCP if server changed### Agent Not Understanding Queries- Review instructions in declarativeAgent.json- Check function descriptions are clear- Verify response_semantics extract correct data- Test with more specific queries

모든 파일

1개 파일

mcp-create-declarative-agent 설치

스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.

ZIP 다운로드

저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.

git clone https://github.com/github/awesome-copilot/blob/main/skills/mcp-create-declarative-agent/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

복사 복사
빠른 설정: skill 폴더를 .claude/skills/로 복사하면 Claude가 해당 스킬을 자동으로 감지하여 사용합니다.

관련 스킬

office-mcp
업데이트 된 시간 2026년 7월 13일
mcpgraph
업데이트 된 시간 2026년 6월 29일
composio
업데이트 된 시간 2026년 6월 29일
connect-mcp-server
업데이트 된 시간 2026년 6월 29일
OR