Skip to content

Teams: add support for 1:1 and group chat messages #4

Description

@BrewingCoder

Summary

The Teams integration currently supports only channel messages via /teams/{id}/channels/{id}/messages. Direct messages (1:1 chats) and group chats use a separate Graph API endpoint (/me/chats) that is not yet implemented.

Current Behavior

teams_messages only reads from team channels. There is no way to list, read, or send 1:1 or group chat messages.

Proposed Change

Add support for the Chat API:

  • /me/chats — list all chats (1:1, group, meeting)
  • /me/chats/{id}/messages — read messages in a chat
  • /me/chats/{id}/messages (POST) — send a message to a chat

New tools / commands

  • teams_chats / outpost teams chats — list recent chats
  • teams_chat_messages / outpost teams chat-messages <chat-id> — read messages from a chat
  • teams_chat_send / outpost teams chat-send <chat-id> --body "..." — send a message to a chat

Additional scopes required

  • Chat.Read or Chat.ReadWrite
  • ChatMessage.Read or ChatMessage.Send

These should be added to the Teams FEATURE_SCOPES group since they require the same opt-in consent flow.

Graph API Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: highMajor feature broken, blocking usageteamsMicrosoft Teams and SharePoint files

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions