Skip to content

MS Teams plugin: migrate from deprecated HttpPlugin to httpServerAdapter #60732

@coolramukaka-sys

Description

@coolramukaka-sys

Summary

The MS Teams channel plugin emits repeated deprecation warnings in the gateway error log:

[WARN] @teams/app [DEPRECATED] HttpPlugin in plugins array will be deprecated. Use httpServerAdapter option instead:
  new App({ httpServerAdapter: new ExpressAdapter() })

These warnings appear on every Teams polling cycle (~every 60 seconds), filling the error log with noise.

Steps to reproduce

  1. Enable the MS Teams channel (channels.msteams.enabled: true)
  2. Start the gateway
  3. Observe gateway.err.log

Expected behavior

No deprecation warnings. The Teams integration should use the current httpServerAdapter API.

Suggested fix

In the MS Teams plugin, replace the HttpPlugin usage in the App plugins array with the httpServerAdapter option:

- new App({ plugins: [new HttpPlugin()] })
+ new App({ httpServerAdapter: new ExpressAdapter() })

Per the @microsoft/teams-ai / @teams/app migration guide.

Environment

  • OpenClaw: 2026.4.2
  • Platform: macOS 26.2 (arm64)
  • Node: 22.22.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions