Skip to content
VS Code

Microsoft Teams API for VS Code

io.github.maxim-mazurok/teams-api

AI-native Microsoft Teams integration — read chats, send messages, search people

client:VS Code transport:stdio runtime:npm

Install Microsoft Teams API in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "teams-email",
      "description": "TEAMS_EMAIL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-auto",
      "description": "TEAMS_AUTO",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-login",
      "description": "TEAMS_LOGIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-token",
      "description": "TEAMS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-region",
      "description": "TEAMS_REGION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-bearer-token",
      "description": "TEAMS_BEARER_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-substrate-token",
      "description": "TEAMS_SUBSTRATE_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-debug",
      "description": "TEAMS_DEBUG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-telemetry",
      "description": "TEAMS_TELEMETRY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-telemetry-path",
      "description": "TEAMS_TELEMETRY_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-image-description-api-key",
      "description": "TEAMS_IMAGE_DESCRIPTION_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-image-description-model",
      "description": "TEAMS_IMAGE_DESCRIPTION_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-image-description-base-url",
      "description": "TEAMS_IMAGE_DESCRIPTION_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "teams-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "teams-api"
      ],
      "env": {
        "TEAMS_EMAIL": "${input:teams-email}",
        "TEAMS_AUTO": "${input:teams-auto}",
        "TEAMS_LOGIN": "${input:teams-login}",
        "TEAMS_TOKEN": "${input:teams-token}",
        "TEAMS_REGION": "${input:teams-region}",
        "TEAMS_BEARER_TOKEN": "${input:teams-bearer-token}",
        "TEAMS_SUBSTRATE_TOKEN": "${input:teams-substrate-token}",
        "TEAMS_DEBUG": "${input:teams-debug}",
        "TEAMS_TELEMETRY": "${input:teams-telemetry}",
        "TEAMS_TELEMETRY_PATH": "${input:teams-telemetry-path}",
        "TEAMS_IMAGE_DESCRIPTION_API_KEY": "${input:teams-image-description-api-key}",
        "TEAMS_IMAGE_DESCRIPTION_MODEL": "${input:teams-image-description-model}",
        "TEAMS_IMAGE_DESCRIPTION_BASE_URL": "${input:teams-image-description-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Microsoft Teams API in other clients