Skip to content

docs(msteams): add Teams CLI setup instructions - #71434

Closed
heyitsaamir wants to merge 5 commits into
openclaw:mainfrom
heyitsaamir:docs/msteams-teams-cli
Closed

heyitsaamir wants to merge 5 commits into
openclaw:mainfrom
heyitsaamir:docs/msteams-teams-cli

Conversation

@heyitsaamir

@heyitsaamir heyitsaamir commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Makes @microsoft/teams.cli the primary setup path for MS Teams — single teams app create command replaces manual Azure Bot portal walkthrough
  • Manual setup steps collapsed into <details> blocks for users who can't use the CLI
  • Fixed devtunnel instructions to use persistent tunnels (stable URL across sessions)
  • Removed redundant "Setup (minimal text-only)" section and "Teams Developer Portal" section

Test plan

  • Verify CLI commands work end-to-end on a fresh machine
  • Check <details> blocks render correctly on GitHub
  • Confirm no broken internal links

Working integration after following the instructions:

image

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: msteams Channel integration: msteams size: XS labels Apr 25, 2026
@greptile-apps

greptile-apps Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR rewrites the MS Teams setup guide to lead with @microsoft/teams.cli as the primary onboarding path, collapses the manual Azure Portal walkthrough into <details> blocks, and updates tunneling instructions to use persistent devtunnels. The restructuring is clear and the prose is significantly improved.

One P1 gap: after teams app create, the <teamsAppId> variable referenced in steps 5 and 6 is never shown as captured from the command's output, leaving the reader without a value to substitute.

Confidence Score: 4/5

Safe to merge after resolving the missing teamsAppId capture step; the P2s are minor polish items.

One P1 documentation gap (teamsAppId not shown as captured from CLI output) prevents a perfect score; the remaining findings are style-level P2s that do not block correctness.

docs/channels/msteams.md — specifically the Quick Setup section steps 3–5 and the devtunnel setup block.

Security Review

  • Anonymous dev tunnel (--allow-anonymous): the tunnel setup in Quick Setup and Local Development sections creates an unauthenticated public endpoint. Bot Framework JWT validation prevents spoofed payloads, but the flag broadens the attack surface unnecessarily without any callout to the reader.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: docs/channels/msteams.md
Line: 10

Comment:
**Inappropriate epigraph in production docs**

`"Abandon all hope, ye who enter here."` (the inscription above Dante's Inferno) is a humorous editorial comment but is out of place in user-facing reference documentation. Readers encountering the page for the first time — or linking to it from a support ticket — will see this before any useful content. Consider removing it or moving it to an internal comment.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: docs/channels/msteams.md
Line: 41

Comment:
**Preview tag as the primary install path**

`@microsoft/teams.cli@preview` is an unstable, pre-release dist-tag. Making it the recommended primary setup path means users following these docs will install a package that may have breaking changes between sessions. If a stable release or `@latest` exists, prefer that; otherwise at minimum add a note that this is pre-release and may change.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: docs/channels/msteams.md
Line: 50-54

Comment:
**`--allow-anonymous` flag lacks a security callout**

`devtunnel create my-openclaw-bot --allow-anonymous` makes the tunnel endpoint reachable by **any unauthenticated caller**. While Bot Framework signs every activity with a JWT (so spoofed payloads are rejected), anonymous tunnels are still a wider attack surface than tunnels that require the caller to present a devtunnel access token. At minimum, add a note explaining the trade-off so users can make an informed choice for their environment.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: docs/channels/msteams.md
Line: 92-97

Comment:
**`<teamsAppId>` is never defined for the reader**

Step 3 runs `teams app create … --env .teams_env`, which writes `CLIENT_ID`, `CLIENT_SECRET`, and `TENANT_ID` to the env file. However, the `teamsAppId` used in steps 5 and 6 (`teams app get <teamsAppId> --install-link` and `teams app doctor <teamsAppId>`) is never shown as part of the command output, nor is there a note saying "copy the app ID printed by `teams app create`." A user following the steps linearly will hit step 5 without knowing what value to substitute.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "docs(msteams): fix devtunnel instruction..." | Re-trigger Greptile

Comment thread docs/channels/msteams.md Resolved
Comment thread docs/channels/msteams.md Resolved
Comment thread docs/channels/msteams.md Resolved
Comment thread docs/channels/msteams.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e792d38c8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/channels/msteams.md Resolved

@SidU SidU left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising this, @heyitsaamir! Please address the Greptile feedback. Would be sweet if Teams CLI had a mode to do it all in a single command: create bot, app manifest, install link, etc

Replace manual Azure Bot setup as primary path with
@microsoft/teams.cli workflow. Manual steps collapsed
into <details> blocks for users who can't use the CLI.
Use devtunnel create + host for stable URLs across sessions
instead of throwaway tunnels that change each time.
@heyitsaamir
heyitsaamir force-pushed the docs/msteams-teams-cli branch from 7e792d3 to b1c42fd Compare April 25, 2026 14:48
- Remove "Abandon all hope" quote (showed as net-addition in diff)
- Add preview disclaimer for @microsoft/teams.cli
- Add security note for --allow-anonymous devtunnel flag
- Clarify where to find teamsAppId from create output
- Link to official devtunnel getting started guide
@heyitsaamir

Copy link
Copy Markdown
Contributor Author

@SidU yup addressing those. It does basically do it all in one go. Also, no need to manage any manifests etc with the CLI. It's actually just one command that does most of the heavy lifting:

Screen.Recording.2026-04-25.at.8.06.27.AM.mov

I just left the manual instructions in there (but collapsed). Happy to take them out if you'd like.

@heyitsaamir

Copy link
Copy Markdown
Contributor Author

@SidU Updated!

@heyitsaamir
heyitsaamir requested a review from SidU April 25, 2026 19:30
@vincentkoc

Copy link
Copy Markdown
Member

Thanks for the contribution. I am closing this because the docs rewrite is still unverified in the checklist and the PR is failing core/plugin checks. For setup docs, we need the commands proven end-to-end before carrying the review surface.

@heyitsaamir

Copy link
Copy Markdown
Contributor Author

Thanks for the contribution. I am closing this because the docs rewrite is still unverified in the checklist and the PR is failing core/plugin checks. For setup docs, we need the commands proven end-to-end before carrying the review surface.

Good catch! I forgot to update the checklist so I think this got auto closed. I created a new PR with proof and the checklist filled. The filling CI check is on main as well and not relevant to this PR. Hope that helps push this effort forward. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants