
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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で失敗します。 ツイート
- [
read:packagesスコープで GitHub ** Personal Access Token** を作成する (分類トークン) GitHubのアカウントが機能します。** はメンバーである必要はありません。wyre-ai公開パッケージを読み込みます。- デプロイフローでプロンプトが表示されたときにビルド変数として追加します。
- 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, everynpm installneeds a token. The cloud builder runsnpm installfor you, so you must give it one, or the build fails withnpm error 401 Unauthorized ... npm.pkg.github.com.
- Create a GitHub Personal Access Token with the
read:packagesscope (classic token). Any GitHub account works — you do not need to be a member of thewyre-aiorg to read its public packages.- Add it as a build variable when prompted by the deploy flow:
- Cloudflare Workers → set a build variable named
NODE_AUTH_TOKENto your PAT (Workers → Settings → Build → Variables and Secrets).- DigitalOcean App Platform → set an encrypted env var named
GITHUB_TOKENwith scope Build Time to your PAT (the.do/app.yamlalready 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 optionallyNINJAONE_REGION— or setAUTH_MODE=gatewayto take credentials per-request fromX-Ninja-*headers. HTTP also requiresCONDUIT_S2S_SECRETand a validX-Gateway-S2Ssignature on/mcp(see HTTP authentication). The MCP endpoint is/mcp;/healthis an unauthenticated liveness probe.
Architecture
This MCP server uses a hierarchical tool loading approach instead of exposing all tools upfront:
- Navigation Phase: Initially exposes only a navigation tool (
ninjaone_navigate) - Domain Selection: User selects a domain (devices, organizations, alerts, tickets)
- Domain Tools: Server exposes domain-specific tools after selection
- 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
インストール
npx @wyre-ai/ninjaone-mcp設定
{
"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"
}
}
}
}