Distri: A Composable Agent Framework
A framework for building and composing AI agents built in Rust. Build simply using YAML or rust-script. Leverage mcp-servers right away.
Overview
Distri is a composable agent framework for building and composing AI agents, written in Rust. It allows developers to create, publish, and combine agent capabilities using the Multi-Agent Communication Protocol (MCP).
Distri can be used by configuring agents through YAML files or Rust scripts. Users can run agents using sample configuration files and commands in the terminal.
- Modular design for building independent agent modules - Standardized communication between agents via MCP - High performance and reliability due to Rust - Ability to publish agents as MCP-compatible tools - Simple API for integrating new capabilities
- Building AI agents for specific tasks
- Creating a network of agents that can collaborate
- Developing tools that leverage multiple AI capabilities
Add to your AI client
Use these steps to connect Distri: A Composable Agent Framework in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"distri-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"distri-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"distri-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"distri-distrihub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"distri-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"distri-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-distri-distrihub"
]
}
}
}FAQ
Is Distri suitable for beginners?
Distri is designed for developers, so some familiarity with programming and YAML is recommended.
Can I contribute to the project?
Yes! Contributions are welcome, and guidelines are provided in the repository.
What is the MCP?
MCP stands for Multi-Agent Communication Protocol, which allows agents to communicate and collaborate effectively.