MCPcopy Index your code
hub / github.com/docker/compose-for-agents

github.com/docker/compose-for-agents @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
307 symbols 1,035 edges 140 files 48 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Compose for Agents Demos

Prerequisites

Demos

Each of these demos is self-contained and can be run either locally or using a cloud context. They are all configured using two steps.

  1. change directory to the root of the demo project
  2. create a .mcp.env file from the mcp.env.example file (if it exists, otherwise the demo doesn't need any secrets) and supply the required MCP tokens
  3. run docker compose up --build

Using OpenAI models

The demos support using OpenAI models instead of running models locally with Docker Model Runner. To use OpenAI:

  1. Create a secret.openai-api-key file with your OpenAI API key:

    plaintext sk-...

  2. Start the project with the OpenAI configuration:

    sh docker compose -f compose.yaml -f compose.openai.yaml up

Compose for Agents Demos - Classification

Demo Agent System Models MCPs project compose
A2A Multi-Agent Fact Checker Multi-Agent OpenAI duckduckgo ./a2a compose.yaml
Agno agent that summarizes GitHub issues Multi-Agent qwen3(local) github-official ./agno compose.yaml
Vercel AI-SDK Chat-UI for mixing MCPs and Model Single Agent llama3.2(local), qwen3(local) wikipedia-mcp, brave, resend(email) ./vercel compose.yaml
CrewAI Marketing Strategy Agent Multi-Agent qwen3(local) duckduckgo ./crew-ai compose.yaml
ADK Multi-Agent Fact Checker Multi-Agent gemma3-qat(local) duckduckgo ./adk compose.yaml
ADK & Cerebras Golang Experts Multi-Agent unsloth/qwen3-gguf:4B-UD-Q4_K_XL & ai/qwen2.5:latest (DMR local), llama-4-scout-17b-16e-instruct (Cerebras remote) ./adk-cerebras compose.yml
LangGraph SQL Agent Single Agent qwen3(local) postgres ./langgraph compose.yaml
Embabel Travel Agent Multi-Agent qwen3, Claude3.7, llama3.2, jimclark106/all-minilm:23M-F16 brave, github-official, wikipedia-mcp, weather, google-maps, airbnb ./embabel compose.yaml and compose.dmr.yaml
Spring AI Brave Search Single Agent none duckduckgo ./spring-ai compose.yaml
ADK Sock Store Agent Multi-Agent qwen3 MongoDb, Brave, Curl, ./adk-sock-shop compose.yaml
Langchaingo DuckDuckGo Search Single Agent gemma3 duckduckgo ./langchaingo compose.yaml
MinionS Cost-Efficient Local-Remote Collaboration Local-Remote Protocol qwen3(local), gpt-4o(remote) ./minions docker-compose.minions.yml

License

This repository is dual-licensed under the Apache License 2.0 or the MIT License. You may choose either license to govern your use of the contributions made by Docker in this repository.

ℹ️ Note: Each example under may have its own LICENSE file. These are provided to reflect any third-party licensing requirements that apply to that specific example, and they must be respected accordingly.

SPDX-License-Identifier: Apache-2.0 OR MIT

Extension points exported contracts — how you extend this code

Agent (Interface)
(no doc)
agno/agent-ui/src/store.ts
Team (Interface)
(no doc)
agno/agent-ui/src/store.ts
PlaygroundStore (Interface)
(no doc)
agno/agent-ui/src/store.ts
ToolCall (Interface)
(no doc)
agno/agent-ui/src/types/playground.ts
ReasoningSteps (Interface)
(no doc)
agno/agent-ui/src/types/playground.ts

Core symbols most depended-on inside this repo

cn
called by 68
agno/agent-ui/src/lib/utils.ts
filterProps
called by 24
agno/agent-ui/src/components/ui/typography/MarkdownRenderer/styles.tsx
filterProps
called by 18
agno/agent-ui/src/components/ui/typography/MarkdownRenderer/inlineStyles.tsx
useChatActions
called by 7
agno/agent-ui/src/hooks/useChatActions.ts
chat
called by 5
langchaingo/chat.go
display_messages
called by 4
adk-sock-shop/apps/vendor_app.py
create_mcp_toolsets
called by 3
adk-sock-shop/agents/tools.py
chief_marketing_strategist
called by 2
crew-ai/src/marketing_posts/crew.py

Shape

Function 192
Method 46
Interface 44
Class 20
Struct 4
Enum 1

Languages

TypeScript63%
Python26%
Go7%
Java5%

Modules by API surface

agno/agent-ui/src/components/ui/typography/MarkdownRenderer/styles.tsx27 symbols
agno/agent-ui/src/types/playground.ts25 symbols
agno/agent-ui/src/components/ui/icon/custom-icons.tsx22 symbols
agno/agent-ui/src/components/ui/typography/MarkdownRenderer/inlineStyles.tsx20 symbols
crew-ai/src/marketing_posts/crew.py14 symbols
agno/agent-ui/src/components/playground/Sidebar/Sidebar.tsx11 symbols
a2a/src/AgentKit/agent/agent.py11 symbols
agno/agent-ui/src/components/playground/ChatArea/Messages/Messages.tsx10 symbols
agno/agent-ui/src/api/playground.ts9 symbols
a2a/src/AgentKit/agent/proxy.py8 symbols
agno/agent/playground.py6 symbols
langchaingo/tool_duckduck.go5 symbols

Datastores touched

(mysql)Database · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add compose-for-agents \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact