File size: 7,340 Bytes
09e8c1e
 
 
 
 
 
 
 
 
d8deee5
09e8c1e
 
 
 
 
 
 
 
 
 
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
 
 
d802f0c
 
 
 
 
 
 
 
d640345
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09e8c1e
d8deee5
09e8c1e
d8deee5
 
 
 
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
 
 
 
 
09e8c1e
 
 
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
 
 
 
09e8c1e
d8deee5
09e8c1e
d8deee5
 
 
 
 
 
09e8c1e
 
 
d8deee5
09e8c1e
d8deee5
09e8c1e
4c9cf37
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
d8deee5
09e8c1e
 
 
d8deee5
09e8c1e
d8deee5
09e8c1e
 
d8deee5
 
 
 
 
 
 
 
 
 
 
 
 
 
09e8c1e
 
d8deee5
09e8c1e
 
d8deee5
 
 
 
 
 
 
 
 
 
 
09e8c1e
 
 
 
d8deee5
09e8c1e
d8deee5
 
 
 
 
 
09e8c1e
 
 
d8deee5
09e8c1e
d8deee5
 
 
09e8c1e
 
 
d8deee5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
---
title: NACC - Network Agentic Command Control
emoji: πŸš€
colorFrom: blue
colorTo: purple
sdk: gradio
app_file: app.py
pinned: false
license: mit
short_description: AI-Powered Network Orchestration via MCP

tags:
- mcp-in-action-track-enterprise
- mcp-in-action-track-consumer
- mcp-in-action-track-creative
- building-mcp-track-enterprise
- building-mcp-track-consumer
- building-mcp-track-creative
---

# πŸš€ NACC: Network Agentic Command Control

> **AI-powered orchestration for distributed systems using Model Context Protocol (MCP)**

NACC transforms multiple computers into a unified intelligent network, controllable through natural language. Built from scratch for the HF MCP Birthday Hackathon 2025.

---

### πŸŽ₯ **Demo & Social**

πŸ“Ί **[Watch Full Demo Video](demovideo.mp4)** - See NACC controlling Mac and Kali Linux in action!

πŸ’Ό **[LinkedIn Post](https://www.linkedin.com/posts/vasanthadithya-mundrathi-84a54031a_mcp-modelcontextprotocol-mcpbirthday-activity-7400561851106897920-0i1u?utm_source=share&utm_medium=member_desktop&rcm=ACoAAFDhpLoBNcrQ4qiK_sGt54NWi9Zd-0VanIM)** - Read about the journey and challenges

---

---
 
 ## πŸ† Hackathon Tracks & Justification
 
 We are submitting NACC for **all 3 tracks** because it represents a fundamental shift in how MCP can be applied across different domains.
 
 ### 🏒 **Enterprise Track** (`mcp-in-action-track-enterprise`, `building-mcp-track-enterprise`)
 **Why it fits:**
 - **Infrastructure Orchestration**: NACC solves a massive enterprise pain point - managing distributed servers and VMs. Instead of manual SSH, DevOps teams can use natural language to orchestrate complex workflows across hundreds of nodes.
 - **Security First**: Built with a custom secure handshake protocol and whitelisted command execution, designed for sensitive corporate networks.
 - **Scalability**: The hub-and-spoke architecture allows unlimited nodes to be added dynamically, perfect for large-scale server farms.
 
 ### 🏠 **Consumer Track** (`mcp-in-action-track-consumer`, `building-mcp-track-consumer`)
 **Why it fits:**
 - **Home Automation for Geeks**: Imagine controlling your home media server, Raspberry Pi, and gaming rig from a single chat interface. "Check if my Plex server is running" or "Update my Pi-hole" becomes a simple text message.
 - **Accessibility**: Lowers the barrier to entry for managing home labs. You don't need to know complex Linux commands; you just need to know what you want to do.
 
 ### 🎨 **Creative Track** (`mcp-in-action-track-creative`, `building-mcp-track-creative`)
 **Why it fits:**
 - **Novel Architecture**: We pioneered a **"Two-Space Architecture"** (Gradio + Docker) connected via a custom HTTP bridge to simulate a real network within HuggingFace's constrained environment.
 - **Agentic Innovation**: NACC isn't just a chatbot; it's an **autonomous agent** that plans, routes, and executes tasks across physical boundaries. It "thinks" in network topology.
 - **Built from Scratch**: We didn't use any pre-existing MCP SDKs. We built the entire MCP protocol implementation (JSON-RPC, tool registry, handshake) from zero to demonstrate deep understanding and creative application of the spec.
 
 ---
 
 ## 🎯 HuggingFace Space Demo

### Quick Start

1. **List nodes**: `list nodes`
2. **Switch to VM**: `switch to vm-node-01`
3. **Explore files**: `list files` β†’ `navigate to /app/src`
4. **Try file ops**: `navigate to /tmp` β†’ `create a file named demo.txt with content Hello!`

### Demo Instructions

πŸ“š **Full demo guide available in the UI** - Open "Help & Instructions" accordion at the bottom

**Key Points**:
- VM Space (`vm-node-01`) - Remote node simulation
- File operations work in `/tmp/` directory
- Use absolute paths for navigation: `/app/src`, `/tmp`
- AI-powered natural language commands

---

## πŸ† For Judges

### What Makes NACC Special

**Built from Zero**: Every line of code written from scratch. No pre-made MCPs, no templates - pure original implementation.

**Original Vision**: NACC was designed for **real network environments** - controlling multiple PCs, servers, and VMs on the same network with full system access.

**Space Adaptation**: To showcase on HuggingFace Spaces, I created a unique two-space architecture:
- **Main Space**: Orchestrator + UI (this space)
- **VM Space**: Simulated remote node
- **HTTP Bridge**: Connects both spaces to simulate network communication

**Trade-offs**: Limited operations to protect running code. Real NACC (see demo videos) has full filesystem access, file sharing, and multi-node orchestration.

**Features**:
- βœ… Natural language command interpretation
- βœ… AI-powered tool selection and routing
- βœ… Cross-space file operations
- βœ… System monitoring and node management
- βœ… MCP protocol implementation

---

## πŸ’¬ To The Community

Thank you for checking out NACC! This project represents months of learning and experimentation with AI agents and distributed systems.

**About Me**: Vasanthadithya - 3rd year B.E. CSE student at CBIT, Hyderabad

**Looking For**: Internship opportunities, learning experiences, and chances to work on real-world AI/security projects.

If you like this approach to network orchestration, let's connect! I'm passionate about building secure, autonomous systems from the ground up.

πŸ“§ **Reach out**: [LinkedIn](https://www.linkedin.com/in/vasanthadithya-mundrathi-84a54031a/) | [GitHub](https://github.com/Vasanthadithya-mundrathi)

---

## πŸ› οΈ Architecture

### Two-Space Setup

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Main Space (This)      β”‚
β”‚   - UI + Orchestrator    β”‚
β”‚   - AI Backend (Blaxel)  β”‚
β”‚   - hf-space-local node  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚ HTTP
         ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   VM Space               β”‚
β”‚   - NACC Node Server     β”‚
β”‚   - vm-node-01           β”‚
β”‚   - Isolated filesystem  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

### Real NACC (Local Network)

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MacBook   β”‚      β”‚ Kali Linux β”‚
β”‚  (Node)    β”‚      β”‚  (Node)    β”‚
β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜
      β”‚                    β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
         β”‚ Orchestratorβ”‚
         β”‚  (AI Brain) β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

---

## πŸ€– Tech Stack

- **Frontend**: Gradio
- **Backend**: FastAPI
- **AI**: Blaxel (GPT-4o-mini) + fallback regex
- **Protocol**: MCP (Model Context Protocol)
- **Communication**: HTTP/REST
- **Language**: Python 3.10+

---

## πŸ“Ί Links

- **GitHub**: [Vasanthadithya-mundrathi/NACC](https://github.com/Vasanthadithya-mundrathi/NACC)
- **VM Space**: [NACC-VM](https://huggingface.co/spaces/MCP-1st-Birthday/NACC-VM)
- **Creator**: [@Vasanthfeb13](https://huggingface.co/Vasanthfeb13)

---

Built with ❀️ for **HF MCP Birthday Hackathon 2025** πŸŽ‚