/teams-app-dev:teams-scaffold <bot|tab|message-extension|meeting-app|custom-engine-agent> --name <app-name>from teams-app-dev
Scaffolds a new Microsoft Teams app project by type (bot, tab, message-extension, meeting-app, or custom-engine-agent) with manifest v1.25 and M365 Agents Toolkit or manual files.
Ships in teams-app-dev. Installing the plugin adds it to Claude Code.
Create a new Teams app project with all required files based on the app type, using manifest v1.25 and M365 Agents Toolkit.
<type> — One of: bot, tab, message-extension, meeting-app, custom-engine-agent. Ask if not provided.--name — App name (used for directory, manifest, and package.json). Ask if not provided.If M365 Agents Toolkit CLI is installed, use it for scaffolding:
m365agents new --app-name <app-name> --capability <type>
Capability mapping:
| Input | M365 Agents Toolkit capability |
|---|---|
bot | bot |
tab | tab-non-sso or tab (with SSO) |
message-extension | search-message-extension or action-message-extension |
meeting-app | tab with meeting context scopes |
custom-engine-agent | custom-engine-agent |
Ask the user which sub-type they want if relevant.
If M365 Agents Toolkit is not installed, create the project manually.
Common files (all types):
package.json — Dependencies for the chosen typetsconfig.json — TypeScript configuration.env — Environment variables template (includes APP_TENANTID for single-tenant).gitignore — Includes .env, node_modules/, dist/, appPackage/build/appPackage/manifest.json — App manifest v1.25 with placeholder GUIDsappPackage/color.png — Placeholder 192x192 icon (instruct user to replace)appPackage/outline.png — Placeholder 32x32 icon (instruct user to replace)Bot-specific files:
src/index.ts — Express server with CloudAdapter and single-tenant authsrc/teamsBot.ts — TeamsActivityHandler with onMessage and onMembersAddedTab-specific files:
src/index.tsx — React entry point with Teams SDK initializationsrc/components/Tab.tsx — Main tab component with theme supportpublic/index.html — HTML shellMessage extension files:
src/index.ts — Express server with single-tenant adaptersrc/searchBot.ts — Bot with handleTeamsMessagingExtensionQueryMeeting app files:
src/index.ts — Express server with single-tenant adaptersrc/meetingBot.ts — Bot with meeting notification handlerssrc/components/SidePanel.tsx — Meeting side panel with stage sharingsrc/components/Stage.tsx — Meeting stage content componentCustom Engine Agent files:
src/index.ts — Express server with single-tenant adaptersrc/agent.ts — Agent class with AI client integrationsrc/aiClient.ts — AI provider wrapperCreate appPackage/manifest.json with:
$schema pointing to v1.25: https://developer.microsoft.com/json-schemas/teams/v1.25/MicrosoftTeams.schema.jsonmanifestVersion: "1.25"id: "{{APP_ID}}" (placeholder for M365 Agents Toolkit) or a generated UUIDbotId: "{{BOT_ID}}" for bot, message extension, and meeting app typesbots, composeExtensions, staticTabs, configurableTabs sectionsconfigurableTabs with context including meetingSidePanel, meetingStage, meetingDetailsTabvalidDomains with the hosting domainwebApplicationInfo if SSO is requestednestedAppAuthInfo for NAA supportsupportsChannelFeatures: true on configurable tabscd <app-name>
npm install
Show the user:
.env with BOT_ID, BOT_PASSWORD, APP_TENANTID)m365agents preview --local (Agents Playground)What the command file sets; muted values are Claude Code's defaults
teams-app, scaffolding, m365-agents-toolkit, project-template
7-day visitors to each command page
15 commands in this plugin
/teams-adaptive-cardGenerate an Adaptive Card JSON payload from a description, with optional data templating/teams-agentScaffold a Custom Engine Agent with AI capabilities, tool calling, and Teams integration/teams-agent365Create an Agent 365 blueprint with declarative manifest, identity configuration, and MCP tool integration/teams-app-setupSet up the Teams App Dev plugin — install M365 Agents Toolkit CLI, register Azure Bot (single-tenant), configure BOT_ID, BOT_PASSWORD, and APP_TENANTID/teams-bot-handlerGenerate a TeamsActivityHandler with optional state, dialogs, proactive messaging, and meeting support — single-tenant auth/teams-copilot-pluginCreate a Microsoft 365 Copilot plugin (API plugin or Teams message extension) with OpenAPI spec, adaptive card responses, and authnpx claudepluginhub thelobbi/claude-m --plugin teams-app-devOther plugins' commands for the same job