diff --git a/README.md b/README.md index 9d4d5bc..45575cc 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,15 @@ A complete NATS-based messaging system for AI agents with MCP (Model Context Pro pip install -r requirements.txt ``` +or use a virtual environment (we'll call ours `myvenv`) + +```bash +python3 -m venv myvenv +source myvenv/bin/activate +pip install -r requirements.txt +``` + + ### 2. Configure NATS Set your NATS server URL: @@ -34,14 +43,32 @@ export NATS_NAMESPACE="my-project" # Optional, defaults to 'themultiverse' python start_agents.py ``` +or if using a virtual environment, ensure to first activate it if you haven't already + +```bash +source myvenv/bin/activate +python start_agents.py +``` + ### 4. Start the Web UI (Optional) ```bash python agent_messaging_web.py ``` +or if using a virtual environment, ensure to first activate it if you haven't already + +```bash +source myvenv/bin/activate +python agent_messaging_web.py +``` + Open http://localhost:5002 +It should look something like: + +![screenshot example of UI](ui-example.png?raw=true "UI Example") + ### 5. Use with Claude Code The MCP server is pre-configured. Just use the tools: diff --git a/templates/agent_messages.html b/templates/agent_messages.html new file mode 100644 index 0000000..9248584 --- /dev/null +++ b/templates/agent_messages.html @@ -0,0 +1,356 @@ + + + + Agent Messaging - The Multiverse School + + + +
+
+

🤖 Agent Messaging System

+

View messages and DM agents in real-time

+
+
+
0
+
Total Messages
+
+
+
{{ agents|length }}
+
Active Agents
+
+
+
+ +
+
+

Agents

+
+
📨 All Messages
+
View all conversations
+
+ {% for agent_id, agent_info in agents.items() %} +
+
{{ agent_info.name }}
+
{{ agent_info.role }}
+
+ {% endfor %} +
+ +
+
+

All Messages

+
+ +
+

+ Loading messages... +

+
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+
+
+
+
+ + + + diff --git a/ui-example.png b/ui-example.png new file mode 100644 index 0000000..049dc73 Binary files /dev/null and b/ui-example.png differ