WA

wyre-ai/ninjaone-mcp

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

31 stars 28 forks 品質 83 トレンド 21Apache-2.0

NinjaOneのMCPサーバー — デバイスの監視、パッチ作成、スクリプト作成、AIアシスタントのアラート管理ツール

概要

NinjaOneと相互作用するためのモデルコンテキストプロトコル(MCP)サーバーは、効率的なツールロードのための決定ツリーアーキテクチャを備えています。 このサーバーは npm レジストリでホストされている @wyre-ai/node-ninjaone に依存します。 パッケージが公開されているにもかかわらず、GitHub Packages には匿名アクセスがありません。npm install にはトークンが必要です。 クラウドビルダーは npm をインストールします。そのため、npm エラー 401 でビルドが失敗します... npm.pkg.github.com. 1。 read:packages スコープ(クラストークン)で GitHub を作成します。 GitHubアカウントは、公開パッケージを閲覧するために、wyre-ai orgのメンバーである必要があります。 2。 デプロイフローでプロンプトが表示された場合、ビルド変数として追加します。 - → PAT(Workers → Settings → Build → Variables and Secrets)に名前付けられたビルド変数を設定します。 - → 暗号化された env var を PAT にスコープ (.do/app.yaml は既に宣言しています) に設定します。 どちらのターゲットもMCPサーバーを実行します.

概要(AI 翻訳)

NinjaOneと相互作用するためのモデルコンテキストプロトコル(MCP)サーバーは、効率的なツールロードのための決定ツリーアーキテクチャを備えています。

##ワンクリック展開

【重要】 ** をクリックする前に:** このサーバーは[@wyre-ai/node-ninjaoneに依存します。 GitHub Packages npmレジストリでホストされている。 GitHub Packages にはない 匿名アクセス — パッケージが公開されているにもかかわらず、すべての[[npm install]は、 トークン クラウドビルダーはあなたのために[npm installを実行しますので、あなたはそれを1つ与える必要があります、または ビルドが[npm error 401 Unauthorized ... npm.pkg.github.comで失敗します。 ツイート

  1. [read:packages スコープで GitHub ** Personal Access Token** を作成する (分類トークン) GitHubのアカウントが機能します。** はメンバーである必要はありません。 wyre-ai 公開パッケージを読み込みます。
  2. デプロイフローでプロンプトが表示されたときにビルド変数として追加します。
  • Cloudflare Workers → PAT に [NODE_AUTH_TOKEN という名前のビルド変数を設定 (作業者→設定→ビルド→変数と秘密)
  • DigitalOcean App Platform → 暗号化された env var を [[[T7] に設定します スコープ ** ビルド時間** を PAT ([.do/app.yaml]) に既に宣言します。

[!NOTE]

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

NinjaOne MCP Server

A Model Context Protocol (MCP) server for interacting with NinjaOne, featuring a decision tree architecture for efficient tool loading.

One-Click Deployment

[!IMPORTANT] Before you click: this server depends on @wyre-ai/node-ninjaone, which is hosted on the GitHub Packages npm registry. GitHub Packages has no anonymous access — even though the package is public, every npm install needs a token. The cloud builder runs npm install for you, so you must give it one, or the build fails with npm error 401 Unauthorized ... npm.pkg.github.com.

  1. Create a GitHub Personal Access Token with the read:packages scope (classic token). Any GitHub account works — you do not need to be a member of the wyre-ai org to read its public packages.
  2. Add it as a build variable when prompted by the deploy flow:
    • Cloudflare Workers → set a build variable named NODE_AUTH_TOKEN to your PAT (Workers → Settings → Build → Variables and Secrets).
    • DigitalOcean App Platform → set an encrypted env var named GITHUB_TOKEN with scope Build Time to your PAT (the .do/app.yaml already declares it).

[!NOTE] Both targets run the full MCP server. DigitalOcean builds the Docker image and serves it over HTTP; Cloudflare Workers serves the same server via the SDK’s Web Standard Streamable HTTP transport (src/worker.ts). After deploying, set your NinjaOne credentials as secrets — NINJAONE_CLIENT_ID, NINJAONE_CLIENT_SECRET, and optionally NINJAONE_REGION — or set AUTH_MODE=gateway to take credentials per-request from X-Ninja-* headers. HTTP also requires CONDUIT_S2S_SECRET and a valid X-Gateway-S2S signature on /mcp (see HTTP authentication). The MCP endpoint is /mcp; /health is an unauthenticated liveness probe.

Architecture

This MCP server uses a hierarchical tool loading approach instead of exposing all tools upfront:

  1. Navigation Phase: Initially exposes only a navigation tool (ninjaone_navigate)
  2. Domain Selection: User selects a domain (devices, organizations, alerts, tickets)
  3. Domain Tools: Server exposes domain-specific tools after selection
  4. Lazy Loading: Domain handlers and the NinjaOne client are loaded on-demand

This architecture provides:

  • Reduced cognitive load (fewer tools to choose from)
  • Faster initial load times
  • Better organization of related operations
  • Clear navigation state

Installation

GitHub で README 全文を見る

インストール

npx @wyre-ai/ninjaone-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "ninjaone": { "command": "npx", "args": ["@wyre-ai/ninjaone-mcp"], "env": { "NINJAONE_CLIENT_ID": "your-client-id", "NINJAONE_CLIENT_SECRET": "your-client-secret", "NINJAONE_REGION": "us" } } } }