🧩

Microsoft 365 Copilot 宣言型エージェントが MCP サーバーに対応しました

に公開
2026/10/20

Microsoft 365 Copilot 宣言型エージェントで MCP サーバーのサポートがパブリック プレビューで公開されました。

https://devblogs.microsoft.com/microsoft365dev/build-declarative-agents-for-microsoft-365-copilot-with-mcp?WT.mc_id=M365-MVP-5002941

これまでは OpenAPI 仕様による Web API がサポートされていましたが、ここに MCP サーバーを使用するという選択肢が追加されました。

具体的な手順は Microsoft Learn のドキュメントに記載されています。Microsoft 365 Agent Toolkit を使用すると JSON ファイルを手動で作成するよりも簡単にエージェントを作成できます。

https://learn.microsoft.com/ja-jp/microsoft-365-copilot/extensibility/build-mcp-plugins?WT.mc_id=M365-MVP-5002941

実際に作成された JSON を確認すると、以下のようになります。Web API の場合は "type": "OpenApi" ですが、MCP サーバーの場合は "type": "RemoteMCPServer" になります。"type": "RemoteMCPServer" を指定できるのはマニフェスト スキーマ 2.4 以降であることに注意が必要です。現時点では Microsoft 365 Agent Toolkit のマニフェスト スキーマは 2.1 のため、警告が出る場合は手動で修正する必要があります。

{
  "$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.4/schema.json",
  "schema_version": "v2.4",
  "name_for_human": "{{app-name}}",
  "description_for_human": "{{app-description}}",
  "contact_email": "{{contact-email}}",
  "namespace": "{{app-namespace}}",
  "functions": [
    {
      "name": "get_me",
      "description": "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": []
      }
    }
  ],
  "runtimes": [
    {
      "type": "RemoteMCPServer",
      "spec": {
        "url": "https://api.githubcopilot.com/mcp/",
        "enable_dynamic_discovery": false
      },
      "run_for_functions": [
        "get_me"
      ],
      "auth": {
        "type": "OAuthPluginVault",
        "reference_id": "{{reference_id}}"
      }
    }
  ]
}

現時点ではローカル標準入出力 (stdio) の MCP サーバーには対応していないため、用途は限定的です。今後はリモートで実行できる MCP サーバーも増えてくると予想されるため、活躍の機会も広がっていきそうです。

Discussion