Skip to main content

Overview

Any Upsonic Team can be exposed as an MCP server using as_mcp(). The entire multi-agent workflow becomes a single do tool that MCP clients can call.

Creating an MCP Server from a Team

This starts an MCP server that exposes a do tool. When called, it runs the full team workflow — task assignment, context sharing, and result combining — and returns the final output.

Using a Team MCP Server from Another Agent

Combining Multiple Teams

The director sees research_do and eng_do and delegates to the appropriate team.

Transport Options

How It Works

  1. as_mcp() creates a FastMCP server named after the team.
  2. It registers a do tool whose description includes the team’s role, goal, member names, and mode.
  3. When a client calls do(task="..."), the team runs its full multi-agent workflow internally and returns the combined result as text.
  4. .run() starts the server and blocks, waiting for client connections.
For more information on MCP tools, see MCPHandler.