# AutoGen (Microsoft)

AutoGen supports MCP via the `autogen-ext` extension package. Both SSE and Streamable HTTP transports are available.

MCP Endpoint: `https://devmotion.app/mcp`

## Setup

Install

    pip install autogen-ext

SSE transport

    from autogen_ext.tools.mcp import McpWorkbench, SseServerParams

    server_params = SseServerParams(
        url="https://devmotion.app/mcp",
        headers={"Authorization": "Bearer YOUR_TOKEN"},
        timeout=10,
        sse_read_timeout=300,
    )

    async with McpWorkbench(server_params=server_params) as workbench:
        tools = await workbench.list_tools()
        result = await workbench.call_tool("create_project", {
            "name": "My TikTok Intro",
            "width": 1080,
            "height": 1920
        })

Streamable HTTP transport (recommended)

    from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams

    server_params = StreamableHttpServerParams(
        url="https://devmotion.app/mcp",
        headers={"Authorization": "Bearer YOUR_TOKEN"},
        timeout=30.0,
        sse_read_timeout=300.0,
    )

    async with McpWorkbench(server_params=server_params) as workbench:
        result = await workbench.call_tool("upsert_layer", {...})

## Authentication

Obtain a long-lived token from your DevMotion profile and pass it in the `Authorization` header as shown above.

## Docs

autogen-ext MCP reference →