Skip to content
agents.store
devdevelopment

teams-dev

Microsoft Teams SDK dev plugin for Agents Store. TypeScript guidance for building Teams bots, message extensions, tabs, dialogs and AI agents on Teams SDK 2.1 and Teams Developer CLI 3. Vendors the official microsoft/teams-sdk skill (scaffold, bot registration, SSO setup) and adds skills for the App framework and turn state, Adaptive Cards, openai/MCP/A2A agents, Microsoft Graph, SSO with addOAuthFlow, deployment, sovereign clouds and the Agents Playground.

v2.0.3Updated

  • microsoft-teams
  • teams
  • teams-sdk
  • teams-bot
  • bot
  • adaptive-cards
  • message-extensions
  • ai-agents
  • mcp
  • a2a
  • oauth
  • agents-playground
  • microsoft-graph
  • typescript
  • nodejs
  • dev
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install teams-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (17)

  • adaptive-cards

    Use this skill when the user is building or sending Adaptive Cards from a Microsoft Teams bot on `@microsoft/teams.cards` 2.1 — `AdaptiveCard`, `TextBlock`, inputs with `.withId()`, `ExecuteAction` with `SubmitData`, routing `card.action.<action>`, input validation, pasting Designer JSON, search-as-you-type choice sets. Triggers on "Teams card", "Adaptive Card", "Action.Execute", "card form", "card.action", "Adaptive Card Designer".

  • agents-playground

    Use this skill when the user wants to test or debug a Microsoft Teams bot locally on Teams SDK 2.1 — Microsoft 365 Agents Playground (`agentsplayground`), accepting unauthenticated local requests (`dangerouslyAllowUnauthenticatedRequests`), the "No credentials configured … all incoming requests will be rejected" warning, mock activities, logs, replacing the deprecated DevTools. Triggers on "Agents Playground", "test Teams bot locally", "No credentials configured", "dangerouslyAllowUnauthenticatedRequests", "Teams DevTools replacement".

  • ai-agents

    Use this skill when the user is adding LLM behaviour to a Microsoft Teams bot on Teams SDK 2.1 — calling OpenAI or Azure OpenAI directly with the `openai` SDK and `runTools()`, streaming into Teams, tools as `RunnableToolFunction`, conversation history in turn state, clarification cards, AI labels, feedback buttons, citations, suggested prompts. Triggers on "AI Teams bot", "OpenAI Teams", "function calling Teams", "streaming Teams response", "runTools", "Azure OpenAI Teams".

  • api-reference

    Use this skill on explicit request when the user asks for the Teams SDK 2.1 API reference — the `@microsoft/teams.*` packages and what each exports, `App` options, the handler context, activity routes, the `app.api` clients. Reference-only — does not auto-load.

  • authentication

    Use this skill when the user is wiring authentication into a Microsoft Teams app on Teams SDK 2.1 — app credentials (`CLIENT_ID`/`CLIENT_SECRET`/`TENANT_ID`, managed identity), user sign-in with `app.addOAuthFlow()` (SSO or third-party OAuth), several connections, sign-in callbacks, Nested App Authentication for tabs. Triggers on "Teams SSO", "addOAuthFlow", "OAuth Teams bot", "signIn", "onSignInComplete", "NAA Teams", "managed identity Teams bot".

  • cli-recipes

    Use this skill when the user is driving the Microsoft Teams Developer CLI 3.x (`teams`) from a script, a CI job or an agent — `teams login`, `teams project new typescript`, `teams app create|get|update|doctor`, manifest and RSC edits, `--json` output with jq, non-interactive flags. Triggers on "teams CLI", "teams app update", "teams app create", "teams app doctor", "teams manifest", "teams self-update", "teams status".

  • deployment

    Use this skill when the user is deploying a Microsoft Teams bot built on Teams SDK 2.1 — runtime environment variables (`CLIENT_ID`, `CLIENT_SECRET`, `TENANT_ID`, `MANAGED_IDENTITY_CLIENT_ID`), managed identity and federated credentials, the messaging endpoint, install and sideloading, organisation rollout, production hosting, secret rotation, sovereign clouds (`CLOUD`, US Gov, China). Triggers on "deploy Teams bot", "sideload Teams app", "Teams app production", "Teams sovereign cloud", "Teams bot endpoint", "managed identity Teams bot".

  • dialogs

    Use this skill when the user is building dialogs (task modules) in a Microsoft Teams bot on Teams SDK 2.1 — opening a dialog from a card with `OpenDialogData`, handling `dialog.open.<id>` and `dialog.submit.<action>`, returning an Adaptive Card or a web page, multi-step flows, dialogs opened from message extensions. Triggers on "Teams dialog", "task module", "modal in Teams", "dialog.open", "dialog.submit", "OpenDialogData".

  • examples

    Use this skill when the user wants a worked, end-to-end scenario for a Microsoft Teams app on Teams SDK 2.1 — a full walkthrough for an echo bot, an AI quote agent, an Adaptive Card form, a message-extension search command, or an SSO + Microsoft Graph bot. Triggers on "Teams bot example", "full example Teams", "end-to-end Teams scenario", "echo bot example", "Teams SSO example".

  • graph-integration

    Use this skill when the user is calling Microsoft Graph from a Microsoft Teams app on Teams SDK 2.1 — `app.graph.call(endpoints…)` as the app, a `GraphClient` built from a user's OAuth token, `@microsoft/teams.graph-endpoints` parameters, beta endpoints, paging, permissions. Triggers on "Microsoft Graph Teams", "graph-endpoints", "app.graph", "list calendar events bot", "send mail Teams bot", "graph permissions".

  • mcp-a2a

    Use this skill when the user is combining the Model Context Protocol or Agent2Agent with a Microsoft Teams bot on Teams SDK 2.1 — using a remote MCP server's tools in the agent, exposing the Teams bot as an MCP server (`find_user`, `notify`, `ask`, `request_approval`) with `@modelcontextprotocol/sdk`, bot-to-bot hand-off over A2A with `@a2a-js/sdk`. Triggers on "Teams MCP", "MCP server Teams", "expose Teams as MCP", "MCP client Teams bot", "A2A Teams", "human in the loop Teams".

  • message-extensions

    Use this skill when the user is building Microsoft Teams message extensions on Teams SDK 2.1 — search commands (`message.ext.query`), action commands (`message.ext.submit`, `message.ext.open`), link unfurling (`message.ext.query-link`), item selection, settings pages. Triggers on "Teams message extension", "compose extension", "link unfurling", "message.ext.query", "search command Teams", "action command".

  • messaging

    Use this skill when the user is sending or receiving messages in a Microsoft Teams bot on Teams SDK 2.1 — handling incoming messages, `send`/`reply`/`quote`, `MessageActivityInput`, typing indicators, mentions, targeted (private) messages, quoted replies, streaming and its limits, proactive notifications, receiving files, reactions. Triggers on "Teams bot message", "send a reply", "typing indicator", "stream a response", "proactive message", "targeted message", "quoted reply".

  • sdk-patterns

    Use this skill when the user is writing the core wiring of a Microsoft Teams app on Teams SDK 2.1 — booting `App`, credentials from the environment, per-turn state (`state`), activity routing (`app.on`, `app.message`, `app.event`), middleware (`app.use`, `next`), plugins, logging, or running the app on an existing HTTP server with an adapter. Triggers on "Teams App class", "Teams middleware", "register a plugin", "activity routing", "turn state", "httpServerAdapter".

  • tabs

    Use this skill when the user is building a tab inside a Microsoft Teams app on Teams SDK 2.1 — serving a static page with `app.tab()`, calling the agent from the page with `@microsoft/teams.client` and `app.function()`, using TeamsJS (`@microsoft/teams-js`) for context and dialogs, acquiring tokens with Nested App Authentication (NAA) and MSAL. Triggers on "Teams tab", "static tab", "configurable tab", "app.function", "teams.client", "Nested App Authentication", "TeamsJS".

  • teams-sdk-teams-dev

    Use this skill whenever the user mentions Microsoft Teams in a development context — whether they're building, integrating, configuring, debugging, or just asking questions. Covers bots, message extensions, embedded web apps, Adaptive Cards, dialogs, SSO, infrastructure, the Teams Developer CLI/SDK, and general Teams platform queries. If the word "Teams" appears, err on the side of invoking this skill.

  • troubleshoot

    Use this skill when the user is debugging a Microsoft Teams bot built on Teams SDK 2.1 — "bot did not reply", "All incoming requests will be rejected", 401/403 from or to Teams, sideload and install errors, SSO sign-in failures, Adaptive Card or dialog problems, streaming and AI issues, manifest checks. Triggers on "Teams bot not responding", "No credentials configured", "Teams 401", "Teams 403", "sideload error", "Teams app manifest invalid", "teams app doctor".

Commands (2)

  • add-feature

    Add a feature (message handler, Adaptive Card, dialog, message extension, tab, AI agent, MCP server or client, A2A, SSO, Graph call, turn state) to an existing Microsoft Teams app on Teams SDK 2.1

  • scaffold

    Scaffold a new Microsoft Teams bot, Graph bot or tab on Teams SDK 2.1 with the Teams Developer CLI 3

Agents (1)

  • teams-developer

    Use this agent when the user needs help building a Microsoft Teams application in TypeScript or JavaScript with the Teams SDK 2.1 (`@microsoft/teams.*`) and the Teams Developer CLI 3 — bots, message extensions, tabs, dialogs, Adaptive Cards, AI agents on the `openai` SDK, MCP and A2A, Microsoft Graph calls, SSO with `addOAuthFlow`, bot registration, sideloading, sovereign clouds, or debugging with the Agents Playground. <example> Context: User wants a brand-new Teams bot. user: "Build me a Teams bot that echoes messages and shows a button on every reply" assistant: "I'll use the teams-developer agent to scaffold the bot with `teams project new typescript`, register it following the official teams-sdk-teams-dev guide, and attach an Adaptive Card whose `ExecuteAction` carries `SubmitData`." <commentary> Greenfield Teams bot — the agent picks the CLI template, follows the vendored registration guide and uses the 2.x card builders. </commentary> </example> <example> Context: User has an existing bot and needs Microsoft Graph access on behalf of the user. user: "Add SSO to my existing Teams bot so I can list the signed-in user's calendar events" assistant: "I'll use the teams-developer agent: migrate the bot to Azure if it is Teams-managed, run the SSO guide of teams-sdk-teams-dev, then add `app.addOAuthFlow('graph')` and a `GraphClient` built from the flow's token." <commentary> Multi-step auth change touching Azure, the manifest and code — the agent routes through the official SSO guide and the authentication and graph-integration skills. </commentary> </example> <example> Context: User wants an AI-powered Teams agent. user: "Add an OpenAI-powered quote agent to my Teams app — stream the answer" assistant: "I'll use the teams-developer agent to wire the `openai` SDK with `runTools()`, forward `content` deltas to `stream.emit()` in 1:1 chats, and keep the history in turn state." <commentary> AI integration spans ai-agents (model loop) and messaging (streaming limits). There are no Teams SDK AI packages any more. </commentary> </example>

README

Microsoft Teams SDK dev plugin for Agents Store. TypeScript knowledge for building Teams bots, message extensions, tabs, dialogs and AI agents with Teams SDK 2.1 (@microsoft/teams.* 2.1) and the Teams Developer CLI 3 (@microsoft/teams.cli).

Version 2.0 is a rebuild: the plugin vendors the official teams-dev skill of microsoft/teams-sdk (MIT) for everything the CLI does — scaffold, bot registration, SSO setup, CLI troubleshooting — and keeps hand-written skills for the code, the deployment and the debugging that the official skill leaves to the docs.

What's inside

  • 17 skill directories: 1 vendored official skill and 16 hand-written ones.
  • 1 agent (teams-developer) — routes multi-skill requests such as "AI bot with SSO that reads Graph data".
  • 2 commands:
    • /teams-dev:scaffold <project> [echo|graph|tab] — wraps teams project new typescript.
    • /teams-dev:add-feature <feature> — adds a message handler, card, dialog, extension, tab, AI agent, MCP or A2A, SSO, Graph call or turn state to an existing project.

Official skill (vendored)

skills/teams-sdk-teams-dev/ is a verbatim mirror of plugins/teams-sdk/skills/teams-dev in microsoft/teams-sdk, refreshed by scripts/sync-teams-sdk-skills.sh (weekly workflow sync-teams-sdk-skills.yml). Do not edit it here; the licence is in LICENSE-teams-sdk.

GuideCovers
references/guide-create-bot-app.mdScaffold with teams project new, run, install, test
references/guide-create-bot-infra.mdCLI install and login, tunnel, teams app create, verification
references/guide-integrate-existing-server.mdAdding Teams to an existing server
references/guide-setup-sso.mdAzure bot migration, Entra app, OAuth connection, webApplicationInfo
references/troubleshooting.mdSideloading, login, SSO and migration errors

Skills

SkillWhen it triggers
teams-sdk-teams-devOfficial: CLI-driven scaffold, registration, SSO setup, CLI troubleshooting
sdk-patternsApp, turn state, routing, middleware, plugins, adapters, logging, Agent 365 telemetry
messagingSend/reply/quote, targeted messages, quoted replies, streaming and its limits, proactive messages, files, reactions
adaptive-cardsCards with the 2.x builders, SubmitData routing, validation, dynamic search (plus references/card-builders.md)
dialogsOpenDialogData, dialog.open.<id>, dialog.submit.<action>, card and web dialogs, multi-step flows
message-extensionsSearch and action commands, link unfurling, item selection, settings
tabsapp.tab(), app.function(), @microsoft/teams.client, TeamsJS, Nested App Authentication
ai-agentsThe openai SDK with runTools(), streaming, history, clarification cards, AI label, feedback, citations
mcp-a2aMCP client and server on @modelcontextprotocol/sdk, A2A hand-off on @a2a-js/sdk
authenticationApp credentials and managed identity, addOAuthFlow, callbacks, several connections, manifest
graph-integrationapp.graph.call(endpoints…), a user-token GraphClient, beta endpoints, paging
deploymentRuntime configuration, endpoint, install and rollout, hosting, secret rotation, sovereign clouds
cli-recipesThe CLI 3 command tree, --json scripting, manifest and RSC edits
agents-playgroundLocal testing with the Microsoft 365 Agents Playground
troubleshootNo reply, 401/403, install errors, SSO failures, cards, streaming, manifest checks
examplesEcho bot, AI quote agent, card form, message-extension search, SSO + Graph
api-referencePackages, App options, routes (explicit invocation only — disable-model-invocation: true)

What's new in Teams SDK 2.1

Each item points to where this plugin covers it.

  1. Per-turn state — new App({ state: true }) gives every handler a conversation and a user scope; no more module-level Maps for histories and references. sdk-patterns (section 2), used by messaging and ai-agents.
  2. app.addOAuthFlow(name) — several OAuth connections in one app, sign-in callbacks, resuming the original request. authentication; the Azure side is the vendored guide-setup-sso.md.
  3. Targeted messages and quoted replies — withRecipient(user, true), reply/quote, addQuote; streaming limits (1:1 only, one stream per chat, two minutes) with a hand-off to message updates. messaging.
  4. Socket Mode — announced as experimental, but not present in the published @microsoft/teams.apps 2.1.0 (checked against the package). Not documented here until it ships.
  5. Agent 365, agentic identity and OpenTelemetry — app.getAgenticIdentity(), the telemetry option, app.tokenProvider; receiving files with contentUrl; @microsoft/teams.m365extensions. sdk-patterns (section 7), messaging, api-reference.

Prerequisites

  • Node 22.12 or newer.
  • A Microsoft 365 tenant that allows custom app upload (a Developer Program tenant is the easiest route). teams status shows the tenant and user policy.
  • The CLI, stable line: npm install -g @microsoft/teams.cli. Update with teams self-update.
  • A tunnel for Teams to reach localhost: Dev Tunnels (devtunnel), ngrok or Cloudflare. Not needed with the Agents Playground.
  • Optional: Azure CLI (az) and a subscription for Azure bots, OAuth and SSO; an OPENAI_API_KEY or AZURE_OPENAI_* settings for the AI skills.

Changed in 2.0

  • Rebuilt for Teams SDK 2.1 and CLI 3; Node 22.12 or newer.
  • Skills setup, getting-started and the bot-infrastructure and SSO reference files are replaced by the vendored official skill. devtools became agents-playground; mcp-plugin became mcp-a2a.
  • No Teams SDK AI, MCP, A2A or DevTools packages — they are deprecated; the skills teach the openai, @modelcontextprotocol/sdk and @a2a-js/sdk packages directly and the Agents Playground.
  • Credentials are CLIENT_ID, CLIENT_SECRET and TENANT_ID.

Installation

Install through the Agents Store marketplace (/plugin marketplace …) or clone this repository and enable the plugin locally.

Credits

The skill teams-sdk-teams-dev is © Microsoft Corporation, MIT licence (LICENSE-teams-sdk). The other skills draw on the official documentation of the Teams SDK, https://microsoft.github.io/teams-sdk/llms_docs/llms_typescript_full.txt.