paradiseDev commited on
Commit
8d32495
ยท
verified ยท
1 Parent(s): 6b71d9d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +169 -105
README.md CHANGED
@@ -1,116 +1,180 @@
1
- # MCO Protocol Hackathon Submission
 
 
 
 
 
 
 
 
2
 
3
- ## Real AutoGPT Agent with MCO Orchestration
4
 
5
- This project demonstrates the power of MCO (Model Configuration Orchestration) as the missing orchestration layer for agent frameworks. It features a real AutoGPT-like agent built with Modal API that is orchestrated by the MCO MCP server, with a single-page UI showing the agent's thinking process and orchestration logs.
6
 
7
- ## Key Features
 
 
8
 
9
- - **Real Modal API Integration**: Genuine LLM inference with Claude
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
- ## Project Structure
16
 
17
- - `main.py`: Main entry point that integrates all components
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
- ## Getting Started
26
 
27
- ### Prerequisites
28
 
29
- - Python 3.8+
30
- - Node.js 14+
31
- - Modal account with API key
32
- - Anthropic API key for Claude
 
33
 
34
- ### Installation
 
 
 
35
 
36
- 1. Clone this repository:
37
- ```
38
- git clone https://github.com/yourusername/mco-hackathon.git
39
- cd mco-hackathon
40
- ```
41
-
42
- 2. Install Python dependencies:
43
- ```
44
- pip install -r requirements.txt
45
- ```
46
-
47
- 3. Install MCO Protocol:
48
- ```
49
- npm install @paradiselabs/mco-protocol
50
- ```
51
-
52
- 4. Set up environment variables:
53
- ```
54
- export ANTHROPIC_API_KEY=your_anthropic_api_key
55
- export MODAL_TOKEN_ID=your_modal_token_id
56
- export MODAL_TOKEN_SECRET=your_modal_token_secret
57
- ```
58
-
59
- ### Running the Demo
60
-
61
- 1. Start the application:
62
- ```
63
- python main.py
64
- ```
65
-
66
- 2. Open your browser and navigate to the provided URL
67
-
68
- 3. Use the Agent Demo tab to run the agent with MCO orchestration
69
-
70
- 4. Use the SNLP Generator tab to create and edit MCO workflow files
71
-
72
- ## Using MCO with Your Own Agent
73
-
74
- 1. Install the MCO package:
75
- ```
76
- npm install @paradiselabs/mco-protocol
77
- ```
78
-
79
- 2. Add MCO to your MCP config:
80
- ```json
81
- {
82
- "mcpServers": {
83
- "mco-orchestration": {
84
- "command": "node",
85
- "args": ["path/to/mco-mcp-server.js"],
86
- "env": {
87
- "MCO_CONFIG_DIR": "path/to/config"
88
- }
89
- }
90
- }
91
- }
92
- ```
93
-
94
- 3. Create SNLP files using the generator
95
-
96
- 4. Run your agent with MCO orchestration
97
-
98
- ## Why MCO?
99
-
100
- MCO completes the "Agentic Trifecta" alongside MCP and A2P, providing the missing orchestration layer for truly agentic AI. It solves key challenges in agent reliability through:
101
-
102
- 1. **Progressive Revelation**: Strategically reveal information to agents at the right time
103
- 2. **Structured Workflows**: Define clear steps and success criteria for agent tasks
104
- 3. **MCP Integration**: Works with any MCP-enabled framework with one line of config
105
- 4. **Visual Configuration**: Create SNLP files without learning syntax
106
-
107
- ## License
108
-
109
- This project is licensed under the MIT License - see the LICENSE file for details.
110
-
111
- ## Acknowledgements
112
-
113
- - The Modal team for their excellent serverless compute platform
114
- - The Anthropic team for Claude API
115
- - The MCP community for the Model Context Protocol
116
- - The Gradio team for their UI framework
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ![Technical Architecture Diagram](https://i.imgur.com/JdK8fLm.png)
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
+ ![Before and After MCO Comparison](https://i.imgur.com/nRdLfP2.png)
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)