Microsoft Teams SDK Adds HTTP Server Adapter for Existing AI Agents

The Microsoft Teams SDK now provides an HTTP server adapter that allows developers to connect existing AI agents to Microsoft Teams without modifying their core code. This approach lets agents built for other platforms like Slack or LangChain run in Teams with minimal changes.
The Pattern
The core pattern involves three steps using the Teams TypeScript SDK:
import { App as TeamsApp, ExpressAdapter } from '@microsoft/teams.apps';
const adapter = new ExpressAdapter(expressApp); // 1. wrap your server
const teamsApp = new TeamsApp({ httpServerAdapter: adapter }); // 2. create the app
teamsApp.on('message', async ({ send, activity }) => {
// 3. handle messages
await send(/* your agent's response */);
});
await teamsApp.initialize(); // registers POST /api/messages on your server
The SDK injects a POST /api/messages route into your existing Express app. This is the endpoint Teams uses to deliver messages to your bot. Your server remains unchanged otherwise; the SDK just adds that one endpoint.
Scenario 1: Slack Bot Integration
If you have a Slack bot built with Bolt, you can run both Slack and Teams bots on the same Express server. The Teams SDK mounts at /api/messages while Slack uses /slack/events, allowing shared agent logic (LLM calls, database lookups, business rules) to live in plain functions that both handlers call.
Scenario 2: LangChain Integration
For existing LangChain chains, you can create a bridge file that imports your chain and connects it to Teams. The Teams message handler can invoke your LangChain chain and return responses to Teams users.
The SDK handles verification of incoming requests to ensure they're legitimately from Teams before invoking your handler, and automatically routes messages to the correct event handlers.
📖 Read the full source: HN AI Agents
👀 See Also

Project Ledger: Human-in-the-Loop Memory System for AI Coding Agents
A GitHub project introduces a YAML-based ledger system where humans curate what AI agents remember about codebases. It includes a /ledger skill, UserPromptSubmit hook for automatic context injection, and Haiku auditor review.

The Human Creativity Benchmark: Separating Convergence from Divergence in AI Creative Evaluation
Contra Labs introduces the Human Creativity Benchmark (HCB), a framework that distinguishes objectively verifiable criteria (e.g., prompt adherence) from subjective taste (e.g., visual appeal) in evaluating generative AI for creative work. The benchmark reveals that no current model is reliably both correct and steerable, addressing mode collapse and the need for differentiated output.

devcontainer-mcp: Give AI Agents Their Own Dev Environment, Not Yours
devcontainer-mcp is an MCP server that exposes 45 tools for AI agents to create, manage, and work inside dev containers backed by Docker, DevPod, or GitHub Codespaces — keeping host machines clean.

GrapeRoot tool reduces Claude Code costs by 45% with pre-scanned repository context
A free tool called GrapeRoot that pre-scans repositories and builds dependency graphs reduced Claude Code costs by 45% on average across 10 engineering tasks while improving response quality by 13%. The tool eliminates exploration loops that normally consume tokens.