🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@microsoft/teams.apps

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/teams.apps

<a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code

latest
Source
npmnpm
Version
2.0.13
Version published
Weekly downloads
788K
-13.01%
Maintainers
5
Weekly downloads
 
Created
Source

@microsoft/teams.apps

Build Microsoft Teams agents, tabs, message extensions, and proactive notification services in TypeScript.

@microsoft/teams.apps handles Teams activity routing, request auth, replies, proactive sends, Graph access, OAuth sign-in, plugins, and HTTP hosting so you can focus on your app behavior.

Read the full docs at aka.ms/teams-sdk-ts.

Install

npm install @microsoft/teams.apps

Hello Teams agent

import { App } from '@microsoft/teams.apps';

const app = new App();

app.on('message', async ({ activity, reply }) => {
  await reply(`You said: ${activity.text}`);
});

app.start().catch(console.error);

By default, the app receives Teams activities at /api/messages.

Use your existing server

@microsoft/teams.apps can start its own HTTP server, or plug into an existing server/framework with an HTTP adapter.

import express from 'express';
import { App, ExpressAdapter } from '@microsoft/teams.apps';

async function main() {
  const server = express();

  server.get('/health', (_req, res) => {
    res.json({ status: 'ok' });
  });

  const app = new App({
    httpServerAdapter: new ExpressAdapter(server),
  });

  app.on('message', async ({ activity, reply }) => {
    await reply(`You said: ${activity.text}`);
  });

  await app.initialize(); // registers /api/messages on your server

  server.listen(process.env.PORT || 3978);
}

main().catch(console.error);

See the HTTP adapter examples for framework integration samples.

Examples

See the examples folder for agents, tabs, message extensions, proactive messaging, Graph, AI/MCP, A2A, and more.

Keywords

microsoft

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts