KosmoKrator

other

Microsoft Teams MCP Integration for LangChain

Connect Microsoft Teams to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

8 functions 7 read 1 write Manual OAuth token auth

Connect Microsoft Teams to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Microsoft Teams MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-microsoft-teams": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=microsoft-teams",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=microsoft-teams --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Microsoft Teams instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Microsoft Teams Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Microsoft Teams integration catalog.

MCP toolSource functionTypeDescription
integration__microsoft_teams__microsoft_teams_list_teams microsoft-teams.microsoft_teams_list_teams Read List all Microsoft Teams teams the authenticated user has joined. Returns team IDs, names, and descriptions.
integration__microsoft_teams__microsoft_teams_get_team microsoft-teams.microsoft_teams_get_team Read Get details for a specific Microsoft Teams team by its ID. Returns the team name, description, and other properties.
integration__microsoft_teams__microsoft_teams_list_channels microsoft-teams.microsoft_teams_list_channels Read List all channels in a Microsoft Teams team. Returns channel IDs, names, and descriptions.
integration__microsoft_teams__microsoft_teams_get_channel microsoft-teams.microsoft_teams_get_channel Read Get details for a specific Microsoft Teams channel by its team and channel ID.
integration__microsoft_teams__microsoft_teams_list_messages microsoft-teams.microsoft_teams_list_messages Read List recent messages in a Microsoft Teams channel. Returns message content, sender info, and timestamps.
integration__microsoft_teams__microsoft_teams_send_message microsoft-teams.microsoft_teams_send_message Write Send a message to a Microsoft Teams channel. Supports plain text and HTML content.
integration__microsoft_teams__microsoft_teams_list_chats microsoft-teams.microsoft_teams_list_chats Read List chats for the authenticated Microsoft Teams user. Returns chat IDs, topics, and types (one-to-one, group, or meeting).
integration__microsoft_teams__microsoft_teams_get_current_user microsoft-teams.microsoft_teams_get_current_user Read Get the profile of the currently authenticated Microsoft Teams user. Returns display name, email, and job title.

Related Microsoft Teams Pages