KosmoKrator

other

Microsoft Teams MCP Integration for Vercel AI SDK

Connect Microsoft Teams to Vercel AI SDK 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 Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Microsoft Teams MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "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 Vercel AI SDK

Vercel AI SDK 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