{"_id":"@avantguardllc/mcp_ninjaone","name":"@avantguardllc/mcp_ninjaone","dist-tags":{"latest":"1.4.2"},"versions":{"1.4.2":{"name":"@avantguardllc/mcp_ninjaone","version":"1.4.2","description":"NinjaOne MCP server with decision tree architecture for Claude","type":"module","main":"dist/index.js","types":"dist/index.d.ts","bin":{"ninjaone-mcp":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsc --watch","start":"node dist/index.js","lint":"eslint src --ext .ts","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","pack:mcpb":"node scripts/pack-mcpb.js","validate:mcpb":"mcpb validate manifest.json"},"repository":{"type":"git","url":"git+https://github.com/wyre-technology/ninjaone-mcp.git"},"keywords":["mcp","claude","ninjaone","ninja","rmm","msp","decision-tree"],"author":{"name":"Wyre Technology"},"license":"Apache-2.0","bugs":{"url":"https://github.com/wyre-technology/ninjaone-mcp/issues"},"homepage":"https://github.com/wyre-technology/ninjaone-mcp#readme","dependencies":{"@modelcontextprotocol/sdk":"^1.25.3","@avantguardllc/node-ninjaone":"^1.1.0"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.0","@types/node":"^20.11.0","@typescript-eslint/eslint-plugin":"^6.19.0","@typescript-eslint/parser":"^6.19.0","eslint":"^8.56.0","semantic-release":"^25.0.0","typescript":"^5.3.3","vitest":"^1.2.0"},"engines":{"node":">=20.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"_id":"@avantguardllc/mcp_ninjaone@1.4.2","gitHead":"9836b7cfd60d1556a9551f12b5c595181f029a1e","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/AOuMpm7/mwrFg/mo7S1A2U/W2qxVk/ZRlnDfgQvpA5Y3OcKPQk8d6Q5nMiiCvhs5MAmTDOh5eZyCx7FbyjEdA==","shasum":"49f38bdbd78c6792d97b80ec4d2cd42962d2eb37","tarball":"https://registry.npmjs.org/@avantguardllc/mcp_ninjaone/-/mcp_ninjaone-1.4.2.tgz","fileCount":87,"unpackedSize":280753,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDvbWD9C/SwDFeG7dqwmrW/nhCc4E/6UJJ28i81y4YY6gIhAPHXsh4Oehtg90+ltpYgJPsPzpjTiQ3vuuXcfxKKUwRr"}]},"_npmUser":{"name":"avantguardllc","email":"appadmin@avantguard.it"},"directories":{},"maintainers":[{"name":"avantguardllc","email":"appadmin@avantguard.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_ninjaone_1.4.2_1777919576672_0.7581808910898054"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T18:32:56.567Z","1.4.2":"2026-05-04T18:32:56.825Z","modified":"2026-05-04T18:32:57.060Z"},"maintainers":[{"name":"avantguardllc","email":"appadmin@avantguard.it"}],"description":"NinjaOne MCP server with decision tree architecture for Claude","homepage":"https://github.com/wyre-technology/ninjaone-mcp#readme","keywords":["mcp","claude","ninjaone","ninja","rmm","msp","decision-tree"],"repository":{"type":"git","url":"git+https://github.com/wyre-technology/ninjaone-mcp.git"},"author":{"name":"Wyre Technology"},"bugs":{"url":"https://github.com/wyre-technology/ninjaone-mcp/issues"},"license":"Apache-2.0","readme":"# NinjaOne MCP Server\n\nA Model Context Protocol (MCP) server for interacting with NinjaOne, featuring a decision tree architecture for efficient tool loading.\n\n\n## One-Click Deployment\n\n[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/wyre-technology/ninjaone-mcp/tree/main)\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/wyre-technology/ninjaone-mcp)\n\n## Architecture\n\nThis MCP server uses a **hierarchical tool loading approach** instead of exposing all tools upfront:\n\n1. **Navigation Phase**: Initially exposes only a navigation tool (`ninjaone_navigate`)\n2. **Domain Selection**: User selects a domain (devices, organizations, alerts, tickets)\n3. **Domain Tools**: Server exposes domain-specific tools after selection\n4. **Lazy Loading**: Domain handlers and the NinjaOne client are loaded on-demand\n\nThis architecture provides:\n- Reduced cognitive load (fewer tools to choose from)\n- Faster initial load times\n- Better organization of related operations\n- Clear navigation state\n\n## Installation\n\n```bash\nnpm install @wyre-technology/ninjaone-mcp\n```\n\n## Configuration\n\nSet the following environment variables:\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `NINJAONE_CLIENT_ID` | Yes | OAuth 2.0 Client ID |\n| `NINJAONE_CLIENT_SECRET` | Yes | OAuth 2.0 Client Secret |\n| `NINJAONE_REGION` | No | Region: `us` (default), `eu`, or `oc` |\n\n### NinjaOne API Regions\n\n| Region | Base URL |\n|--------|----------|\n| `us` | `https://app.ninjarmm.com` |\n| `eu` | `https://eu.ninjarmm.com` |\n| `oc` | `https://oc.ninjarmm.com` |\n\n## Usage\n\n### Running Standalone\n\n```bash\n# Set credentials\nexport NINJAONE_CLIENT_ID=\"your-client-id\"\nexport NINJAONE_CLIENT_SECRET=\"your-client-secret\"\nexport NINJAONE_REGION=\"us\"\n\n# Run the server\nnpx @wyre-technology/ninjaone-mcp\n```\n\n### Claude Desktop Configuration\n\nAdd to your Claude Desktop `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"ninjaone\": {\n      \"command\": \"npx\",\n      \"args\": [\"@wyre-technology/ninjaone-mcp\"],\n      \"env\": {\n        \"NINJAONE_CLIENT_ID\": \"your-client-id\",\n        \"NINJAONE_CLIENT_SECRET\": \"your-client-secret\",\n        \"NINJAONE_REGION\": \"us\"\n      }\n    }\n  }\n}\n```\n\n### Docker\n\n```bash\ndocker build -t ninjaone-mcp .\ndocker run -e NINJAONE_CLIENT_ID=xxx -e NINJAONE_CLIENT_SECRET=xxx -e NINJAONE_REGION=us ninjaone-mcp\n```\n\n## Available Domains\n\n### Devices\nManage endpoints, reboot devices, view services and alerts.\n\nTools:\n- `ninjaone_devices_list` - List devices with filters\n- `ninjaone_devices_get` - Get device details\n- `ninjaone_devices_reboot` - Schedule a device reboot\n- `ninjaone_devices_services` - List Windows services on a device\n- `ninjaone_devices_alerts` - Get device-specific alerts\n- `ninjaone_devices_activities` - View device activity log\n\n### Organizations\nManage customer organizations and their resources.\n\nTools:\n- `ninjaone_organizations_list` - List organizations\n- `ninjaone_organizations_get` - Get organization details\n- `ninjaone_organizations_create` - Create a new organization\n- `ninjaone_organizations_locations` - List organization locations\n- `ninjaone_organizations_devices` - List devices for an organization\n\n### Alerts\nView and manage alerts across all devices.\n\nTools:\n- `ninjaone_alerts_list` - List alerts with filters\n- `ninjaone_alerts_reset` - Reset/dismiss a single alert\n- `ninjaone_alerts_reset_all` - Reset all alerts for a device or organization\n- `ninjaone_alerts_summary` - Get alert count summary\n\n### Tickets\nManage service tickets.\n\nTools:\n- `ninjaone_tickets_list` - List tickets with filters\n- `ninjaone_tickets_get` - Get ticket details\n- `ninjaone_tickets_create` - Create a new ticket\n- `ninjaone_tickets_update` - Update an existing ticket\n- `ninjaone_tickets_add_comment` - Add a comment to a ticket\n- `ninjaone_tickets_comments` - Get ticket comments\n\n## Navigation Tools\n\nAlways available:\n- `ninjaone_navigate` - Select a domain to work with\n- `ninjaone_status` - Show current state and credential status\n- `ninjaone_back` - Return to main menu (when in a domain)\n\n## Example Workflow\n\n```\nUser: Check my devices\nClaude: [calls ninjaone_navigate with domain=\"devices\"]\n       -> Navigated to devices domain. Available tools: ...\n\nUser: List all Windows servers\nClaude: [calls ninjaone_devices_list with device_class=\"WINDOWS_SERVER\"]\n       -> [device list results]\n\nUser: Now show me alerts\nClaude: [calls ninjaone_back]\n       -> Navigated back to main menu.\n       [calls ninjaone_navigate with domain=\"alerts\"]\n       -> Navigated to alerts domain.\n```\n\n## Authentication\n\nNinjaOne uses OAuth 2.0 for authentication. You need to:\n\n1. Log in to your NinjaOne dashboard\n2. Go to Administration > Apps > API\n3. Create a new API application\n4. Note the Client ID and Client Secret\n5. Configure the environment variables\n\nThe client library handles token refresh automatically.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-75b2b1aaf2d7b24a302325f6c6e302ac"}