Spaces:
Runtime error
Runtime error
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,116 +1,180 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
##
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
- **Real MCO Orchestration**: Using the actual MCO MCP server (not simulated)
|
| 11 |
-
- **Single-Page UI**: Shows Claude's thinking process and MCO orchestration logs
|
| 12 |
-
- **Visual SNLP Generator**: Edit values and NLP with a simple toggle
|
| 13 |
-
- **Code Review Agent**: Specialized for analyzing and improving code
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- `modal_implementation.py`: AutoGPT-like agent implementation using Modal
|
| 19 |
-
- `gradio_ui.py`: Single-page Gradio UI for demonstration
|
| 20 |
-
- `mco-config/`: Directory containing SNLP files for orchestration
|
| 21 |
-
- `knowledge_graph.md`: Research on Modal, MCO, and Gradio integration
|
| 22 |
-
- `modal_agent_design.md`: Detailed design of the Modal agent
|
| 23 |
-
- `integration_documentation.md`: Documentation of the complete system
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
-
-
|
|
|
|
| 33 |
|
| 34 |
-
###
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
2.
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: MCO Protocol Real Agent Orchestration
|
| 3 |
+
emoji: ๐
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
|
| 11 |
+
# ๐ MCO Protocol: Real Agent Orchestration Demo
|
| 12 |
|
| 13 |
+
**agent-demo-track**
|
| 14 |
|
| 15 |
+
## ๐ฏ Hackathon Submission: Track 3 - Agentic Demo
|
| 16 |
+
|
| 17 |
+
This is a complete Gradio app showcasing the power of **MCO (Model Configuration Orchestration)** - the missing orchestration layer for AI agents. Experience real AutoGPT-style agents being orchestrated by an actual MCO MCP server with progressive revelation and persistent memory.
|
| 18 |
|
| 19 |
+
## ๐ฎ Live Demo
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
๐ **[Try the Live Demo](https://huggingface.co/spaces/Agents-MCP-Hackathon/mco-protocol-real-orchestration)**
|
| 22 |
|
| 23 |
+
## ๐น Video Overview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
๐ฅ **[Watch the App Overview Video](https://youtu.be/VIDEO_ID_HERE)** *(Video explaining usage and purpose)*
|
| 26 |
|
| 27 |
+
## โจ What Makes This Demo Special
|
| 28 |
|
| 29 |
+
### ๐ค **Real AutoGPT Agent + Real MCO Orchestration**
|
| 30 |
+
- **Generic AutoGPT Agent**: Standard agent with tools (not MCO-specific)
|
| 31 |
+
- **Real MCO MCP Server**: Actual subprocess orchestration (Docker-enabled)
|
| 32 |
+
- **Progressive Revelation**: Watch MCO strategically inject context at optimal moments
|
| 33 |
+
- **Live Modal Credits**: Real LLM inference with Claude via Modal API
|
| 34 |
|
| 35 |
+
### ๐๏ธ **Single-Page Experience**
|
| 36 |
+
- **Side-by-Side Logs**: See Claude's `<thinking>` process and MCO orchestration in real-time
|
| 37 |
+
- **Visual SNLP Generator**: Create MCO workflow files without learning syntax
|
| 38 |
+
- **Downloadable Results**: Export generated SNLP configurations
|
| 39 |
|
| 40 |
+
## ๐ ๏ธ Technical Architecture
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
## ๐ Key Features Demonstrated
|
| 45 |
+
|
| 46 |
+
### **1. Real Agent Orchestration**
|
| 47 |
+
- Agent receives generic instruction: *"Use the MCO server tool to get a code review task"*
|
| 48 |
+
- MCO handles all orchestration logic through existing workflow files
|
| 49 |
+
- Progressive revelation injects features and styles at optimal moments
|
| 50 |
+
- Agent completes task autonomously with structured workflow
|
| 51 |
+
|
| 52 |
+
### **2. Live MCP Server Integration**
|
| 53 |
+
- Docker container runs real Node.js + Python environment
|
| 54 |
+
- MCO MCP server starts as actual subprocess
|
| 55 |
+
- Real stdio communication using MCP protocol
|
| 56 |
+
- Proper AsyncExitStack resource management
|
| 57 |
+
|
| 58 |
+
### **3. Visual SNLP Configuration**
|
| 59 |
+
- Generate complete MCO workflow files visually
|
| 60 |
+
- Edit workflow names and types through simple UI
|
| 61 |
+
- Download generated `mco.core`, `mco.sc`, `mco.features`, `mco.styles`
|
| 62 |
+
- No need to learn SNLP syntax
|
| 63 |
+
|
| 64 |
+
## ๐ก The MCO Revolution
|
| 65 |
+
|
| 66 |
+
This demo showcases **MCO Protocol** - completing the "Agentic Trifecta":
|
| 67 |
+
- ๐ **MCP**: Data integration (*"What can I access?"*)
|
| 68 |
+
- ๐ค **A2P**: Agent communication (*"How do we coordinate?"*)
|
| 69 |
+
- ๐๏ธ **MCO**: Reliable orchestration (*"How do we actually get things done?"*)
|
| 70 |
+
|
| 71 |
+
### Before MCO vs After MCO
|
| 72 |
+
|
| 73 |
+

|
| 74 |
+
|
| 75 |
+
## ๐ง How to Use the Demo
|
| 76 |
+
|
| 77 |
+
1. **Agent Demo**:
|
| 78 |
+
- Enter any instruction for the agent
|
| 79 |
+
- Watch Claude's thinking process in real-time
|
| 80 |
+
- See MCO orchestration logs show progressive revelation
|
| 81 |
+
- Agent automatically uses MCO server tool when appropriate
|
| 82 |
+
|
| 83 |
+
2. **SNLP Generator**:
|
| 84 |
+
- Set workflow name and type
|
| 85 |
+
- Generate complete MCO configuration files
|
| 86 |
+
- Download all files as a bundle
|
| 87 |
+
- Use in your own MCO projects
|
| 88 |
+
|
| 89 |
+
## ๐๏ธ Technical Implementation
|
| 90 |
+
|
| 91 |
+
### Docker Setup
|
| 92 |
+
```dockerfile
|
| 93 |
+
FROM node:18-slim
|
| 94 |
+
RUN npm install -g @paradiselabs/mco-protocol
|
| 95 |
+
# Python + dependencies
|
| 96 |
+
COPY . .
|
| 97 |
+
CMD ["python", "app.py"]
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Agent Architecture
|
| 101 |
+
```python
|
| 102 |
+
class GenericAutoGPTAgent:
|
| 103 |
+
# NOT MCO-specific - just a standard agent with tools
|
| 104 |
+
async def process_instruction(self, instruction):
|
| 105 |
+
# Agent decides what to do, calls MCO as needed
|
| 106 |
+
if "mco" in instruction.lower():
|
| 107 |
+
await self.call_mcp_tool("mco-orchestration", "get_next_directive", {})
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### Real MCP Connection
|
| 111 |
+
```python
|
| 112 |
+
server_params = StdioServerParameters(
|
| 113 |
+
command="npx",
|
| 114 |
+
args=["@paradiselabs/mco-protocol", "--config-dir", "/app/workflow"]
|
| 115 |
+
)
|
| 116 |
+
# Real subprocess with AsyncExitStack
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## ๐ Why This Demo Matters
|
| 120 |
+
|
| 121 |
+
This demo proves that **MCO solves the reliability problem** that has plagued autonomous agents since AutoGPT:
|
| 122 |
+
|
| 123 |
+
1. **Progressive Revelation**: No more context overload
|
| 124 |
+
2. **Structured Workflows**: Clear steps and success criteria
|
| 125 |
+
3. **MCP Integration**: Works with any framework in one line
|
| 126 |
+
4. **Production Ready**: Real implementation, not just a concept
|
| 127 |
+
|
| 128 |
+
## ๐ Get Started with MCO
|
| 129 |
+
|
| 130 |
+
```bash
|
| 131 |
+
# Install MCO Protocol
|
| 132 |
+
npm install -g @paradiselabs/mco-protocol
|
| 133 |
+
|
| 134 |
+
# Add to any MCP-enabled framework
|
| 135 |
+
{
|
| 136 |
+
"mcpServers": {
|
| 137 |
+
"mco-orchestration": {
|
| 138 |
+
"command": "npx",
|
| 139 |
+
"args": ["@paradiselabs/mco-protocol", "--config-dir", "./workflow"]
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
## ๐ฆ Project Structure
|
| 146 |
+
|
| 147 |
+
```
|
| 148 |
+
/
|
| 149 |
+
โโโ app.py # Main Gradio application
|
| 150 |
+
โโโ Dockerfile # Docker container setup
|
| 151 |
+
โโโ requirements.txt # Python dependencies
|
| 152 |
+
โโโ modal_llm_client.py # Modal API integration
|
| 153 |
+
โโโ workflow/ # MCO configuration files
|
| 154 |
+
โ โโโ mco.core # Persistent memory
|
| 155 |
+
โ โโโ mco.sc # Success criteria
|
| 156 |
+
โ โโโ mco.features # Strategic injections
|
| 157 |
+
โ โโโ mco.styles # Strategic injections
|
| 158 |
+
โโโ README.md # This file
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
## ๐ Hackathon Achievement
|
| 162 |
+
|
| 163 |
+
This demo showcases:
|
| 164 |
+
- โ
**Real MCP Server**: Actual MCO protocol implementation
|
| 165 |
+
- โ
**Creative Agent Use**: Novel orchestration approach
|
| 166 |
+
- โ
**Production Ready**: Deployed and functional
|
| 167 |
+
- โ
**Educational Value**: Clear demonstration of agent reliability
|
| 168 |
+
- โ
**Technical Innovation**: First orchestration protocol for MCP ecosystem
|
| 169 |
+
|
| 170 |
+
## ๐ Links
|
| 171 |
+
|
| 172 |
+
- ๐ฎ **[Live Demo](https://huggingface.co/spaces/Agents-MCP-Hackathon/mco-protocol-real-orchestration)**
|
| 173 |
+
- ๐น **[Video Overview](https://youtu.be/VIDEO_ID_HERE)**
|
| 174 |
+
- ๐ฆ **[MCO NPM Package](https://www.npmjs.com/package/@paradiselabs/mco-protocol)**
|
| 175 |
+
- ๐ **[GitHub Repository](https://github.com/paradiselabs-ai/MCO-Protocol)**
|
| 176 |
+
- ๐ฌ **[Discord Community](https://discord.gg/uQ69vc4Agc)**
|
| 177 |
+
|
| 178 |
+
---
|
| 179 |
+
|
| 180 |
+
**agent-demo-track** | Built with โค๏ธ for MCP Hackathon 2025 | [Paradise Labs](https://paradiselabs.co)
|