aiNOC
Networking project for AI-based troubleshooting of CCNP Enterprise topics in a multi-vendor, multi-protocol, multi-area/multi-AS, OSI L3-focused topology using Claude Code, FastMCP, Python, Scrapli, REST, Containerlab, Jira, etc.
claude mcp add --transport stdio pdudotdev-ainoc python oncall/watcher.py \ --env ENV_FILE="Path to .env file or environment file (e.g., .env)" \ --env VECTOR_LOG_PATH="Path to Vector logs (e.g., /var/log/network.json)" \ --env ONCALL_WATCHER_SERVICE="Enable/disable watcher (default enabled)"
How to use
aiNOC is a Python-based MCP server that implements an On-Call watcher workflow for a multi-vendor network troubleshooting framework. It monitors Vector's log output for SLA/path failure events, automatically opens a Jira ticket, and invokes Claude-powered agents to diagnose and propose fixes. The system orchestrates agent sessions through the oncall/watcher.py script, which coordinates with the MCP tools and the defined skills to guide operators toward validation and application of fixes. Users interact with the watcher in interactive mode during development or rely on the service mode for production deployments where the watcher runs persistently, spawning agent sessions in a tmux-managed environment for each incident.
How to install
Prerequisites:
- Python 3.8+ installed on the host
- Virtual environment support (venv) available
- Access to the aiNOC repository code
Step-by-step installation:
- Clone the repository
git clone https://github.com/pdudotdev/aiNOC/
cd aiNOC
- Create and activate a Python virtual environment
python3 -m venv mcp
source mcp/bin/activate
- Upgrade pip and install dependencies
pip install --upgrade pip
pip install -r requirements.txt
- Configure environment variables (see notes in additional_notes) and ensure Vector and Jira integrations are accessible as per your environment.
- Run the watcher in the appropriate mode (interactive for development, service for production):
# Interactive mode (development)
python3 oncall/watcher.py
# Production service mode would typically be: create and enable a systemd service for oncall-watcher
Additional notes
Tips and common considerations:
- Ensure Python dependencies in requirements.txt are satisfied and compatible with your environment.
- Vector must be configured to emit logs at /var/log/network.json so the watcher can detect incidents.
- Jira integration requires credentials/configuration; verify API access and token validity before deployment.
- If running as a service, consider using tmux to manage individual agent sessions as described in aiNOC documentation.
- Review and customize CLAUDE.md and /skills directories to tailor troubleshooting workflows for your network.
- Maintain security hygiene for environment variables and credentials; avoid committing secrets to version control.
- If the watcher fails to start, check permissions on /var/log/network.json and ensure the user running the process has read access.
- For troubleshooting, run in interactive mode first to observe agent session behavior before enabling production service mode.
Related MCP Servers
claude-talk-to-figma
A Model Context Protocol (MCP) that allows Claude Desktop and other AI tools (Claude Code, Cursor, Antigravity, etc.) to read, analyze, and modify Figma designs
stt -linux
Local speech-to-text MCP server for Tmux on Linux (for use not only with Claude Code)
openapi -proxy
An MCP server that provides tools for exploring large OpenAPI schemas
voice-status-report
A Model Context Protocol (MCP) server that provides voice status updates using OpenAI's text-to-speech API.
zotero -lite
Zotero MCP Lite: Fast, Customizable & Light Zotero MCP server for AI research assistants
microsoft
A Microsoft Graph API integration MCP server that provides AI assistants with comprehensive access to Microsoft 365 services through the Model Context Protocol (MCP). It enables natural language automation of email, calendar, file management, and contact operations across multiple Microsoft accounts.