Skip to main content
Glama

OXII Smart Home MCP Server

by BaoBao112233
demo_logging.shβ€’1.58 kB
#!/bin/bash # Quick demo script for MCP Oxii-server tool logging echo "πŸ”§ MCP Oxii-server Tool Logging Demo" echo "======================================" # Check if server is running echo "πŸ“‘ Checking if MCP server is running..." if curl -s http://localhost:9031/health > /dev/null 2>&1; then echo "βœ… MCP server is running on port 9031" else echo "❌ MCP server not running. Start with:" echo " cd /home/baobao/Projects/MCP-Oxii-Work/MCP-Oxii/mcp/oxii-server" echo " python main.py" exit 1 fi echo "" echo "πŸ“Š Current Tool Statistics:" curl -s http://localhost:9031/stats | python3 -m json.tool | head -20 echo "" echo "πŸ” Recent Tool Logs (last 5):" curl -s http://localhost:9031/logs | python3 -c " import sys, json data = json.load(sys.stdin) logs = data.get('logs', []) for log in logs[-5:]: print(f' πŸ“ {log}') " echo "" echo "πŸ› οΈ Available Tools:" curl -s http://localhost:9031/docs.json | python3 -c " import sys, json data = json.load(sys.stdin) tools = data.get('tools', []) for i, tool in enumerate(tools, 1): print(f' {i}. {tool[\"name\"]} - {tool.get(\"description\", \"No description\")}') " echo "" echo "🌐 Web Interface:" echo " πŸ“Š Documentation: http://localhost:9031/docx" echo " πŸ“ˆ Statistics: http://localhost:9031/stats" echo " πŸ“‹ Logs: http://localhost:9031/logs" echo " ❀️ Health: http://localhost:9031/health" echo "" echo "πŸ§ͺ Test Commands:" echo " python test_logging.py" echo " curl http://localhost:9031/stats" echo " curl -X POST http://localhost:9031/stats/reset"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BaoBao112233/Mockup-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server