KosmoKrator

communication

Microsoft Teams MCP Integration for OpenAI Agents SDK

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

7 functions 6 read 1 write Bearer token auth

Connect Microsoft Teams to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Microsoft Teams MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=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 OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__teams__teams_list_teams teams.teams_list_teams Read List all Microsoft Teams the user is a member of.
integration__teams__teams_get_team teams.teams_get_team Read Get detailed information about a Microsoft Team.
integration__teams__teams_list_channels teams.teams_list_channels Read List all channels in a Microsoft Team.
integration__teams__teams_get_channel teams.teams_get_channel Read Get detailed information about a Microsoft Teams channel.
integration__teams__teams_send_message teams.teams_send_message Write Send a message to a Microsoft Teams channel.
integration__teams__teams_list_messages teams.teams_list_messages Read List messages in a Microsoft Teams channel.
integration__teams__teams_get_current_user teams.teams_get_current_user Read Get information about the current authenticated Microsoft 365 user.

Related Microsoft Teams Pages