プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

rust-junosmcp

作者:mechubsecバージョン 2.7.5i★ 3iパソコンで動くリポジトリ ↗
レジストリ名io.github.mechubsec/rustjunosmcp

インストール方法

What it does

Juniper Junos/SRX MCP server: scoped, audited, two-person change control. Rust.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category 開発者ツール

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 463,2541 個の skill

Skill · 手順書

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 148,7751 個の skill

Skill · 手順書

archify

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

作者:tt-a1i★ 97,0491 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気7/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア19/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

rust-junosmcp をインストールして。https://mcp.popnx.com/i/mechubsec-rustjunosmcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server rust-junosmcp を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "rustjunosmcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/mechubsec/rustjunosmcp:2.7.5", "--transport", "stdio" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、rust-junosmcp のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "rustjunosmcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/mechubsec/rustjunosmcp:2.7.5",
            "--transport",
            "stdio"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    rust-junosmcp を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が rust-junosmcp を使っていると言うか、回答に rust-junosmcp のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ rust-junosmcp につなげません

rust-junosmcp はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · rust-junosmcp につなげるアプリを使う

  • 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Docker を入れてください(1 回だけ)
  • 先にパソコンへ Docker を入れてください(1 回だけ)
  • 先にパソコンへ Docker を入れてください(1 回だけ)

B · 開発者ツール の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Docker を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server rust-junosmcp を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user rustjunosmcp -- docker run -i --rm ghcr.io/mechubsec/rustjunosmcp:2.7.5 --transport stdio 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、rust-junosmcp のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user rustjunosmcp -- docker run -i --rm ghcr.io/mechubsec/rustjunosmcp:2.7.5 --transport stdio
  4. Claude Code で /mcp と入力

    rust-junosmcp が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    rust-junosmcp を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が rust-junosmcp を使っていると言うか、回答に rust-junosmcp のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Docker を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server rust-junosmcp を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "rustjunosmcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/mechubsec/rustjunosmcp:2.7.5", "--transport", "stdio" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、rust-junosmcp のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    rust-junosmcp を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が rust-junosmcp を使っていると言うか、回答に rust-junosmcp のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Docker を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server rust-junosmcp を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "rustjunosmcp": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/mechubsec/rustjunosmcp:2.7.5", "--transport", "stdio" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、rust-junosmcp のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    rust-junosmcp を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が rust-junosmcp を使っていると言うか、回答に rust-junosmcp のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?rust-junosmcp を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user rustjunosmcp -- docker run -i --rm ghcr.io/mechubsec/rustjunosmcp:2.7.5 --transport stdio

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "rustjunosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/mechubsec/rustjunosmcp:2.7.5",
        "--transport",
        "stdio"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "rustjunosmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/mechubsec/rustjunosmcp:2.7.5",
        "--transport",
        "stdio"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "rustjunosmcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/mechubsec/rustjunosmcp:2.7.5",
        "--transport",
        "stdio"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
2.7.5
レジストリ公開日i
2026年11月13日
コードの最終更新i
2026年11月14日
作者
mechubsec
パッケージ
oci: ghcr.io/mechubsec/rustjunosmcp:2.7.5
ウェブサイト
github.com
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月16日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント mechubsec で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:一昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

未確認:バージョン付きの npm と PyPI パッケージのみ確認できます

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/mechubsec-rustjunosmcp.svg)](https://mcp.popnx.com/en/servers/mechubsec-rustjunosmcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの5988件のうち81%よりスターが多い
  • このカテゴリのほかの5988件のうち91%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5988件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

rust-junosmcpは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は一昨日、最新バージョン(2.7.5)がレジストリに届いたのは3 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004広く使われている★ 1.9万2 か月前更新

クラウドで動く✓ 提供元 · gitdiagram.comPopNx チームが実際に試用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama広く使われている★ 52113 か月前更新

クラウドで動く✓ 提供元 · appllama.io

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai広く使われている★ 34042 か月前更新

クラウドで動く✓ 提供元 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev広く使われている↓ 6506/週★ 8151 リポジトリ全体のスター3 日前更新

パソコンでもクラウドでも✓ 提供元 · repowise.dev
似たものと比べる
これ
rust-junosmcp
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえはいいいえいいえ
基本チェック3/34/44/44/44/45/5
ライセンスMITMITMITApache-2.0Apache-2.0AGPL-3.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

rust-junosmcp

One MCP server for Juniper Junos and SRX devices, in Rust

a mechub project — sovereign network-security automation

Unofficial / community project. This repository is an independent, community-driven project. It is not affiliated with, endorsed by, sponsored by, or supported by Hewlett Packard Enterprise or Juniper Networks. "HPE", "Juniper", "SRX", "JUNOS", "Security Director" and "Juniper Mist" are trademarks of their respective owners and are used here only to describe what this software interoperates with. Please direct support and licensing questions about those products to the respective vendors.

A Model Context Protocol server for Juniper Junos and SRX devices, written in Rust. One rust-junosmcp process gives an MCP client the core Junos tools and the SRX security workflows (45 tools by default), with per-token device and tool scopes, audit logging, and change control for configuration writes. It reads the same devices.json inventory as Juniper/junos-mcp-server.

The server runs on Linux only, in an LXC container or in Docker. The current version is 2.7.5. It is stable: see Stability for what that covers.

1. Install

Pick one path. Both end with the server on 127.0.0.1:30030/mcp behind bearer-token authentication. You need the same things either way:

  • A devices.json inventory. Start from devices-template.json. Each device needs an auth object with a type (ssh_key or password).
  • An SSH private key whose public half is installed for a NETCONF user on each device. Prefer keys to passwords.
  • A known_hosts entry for each device. Host-key checking is strict. scripts/scan-known-hosts.sh builds the file from the inventory; check the fingerprints against a trusted source.
  • Mode 0600 on devices.json, the key and tokens.json; the server refuses to start otherwise.
Docker

Prebuilt images are public and need no login:

  • ghcr.io/mechubsec/rustjunosmcp
  • docker.io/mechub/rustjunosmcp

The image runs as UID/GID 65532:65532 and has no shell. Its entrypoint already passes the inventory, state, known-hosts, lease, token-file and audit-key paths, so add only transport and bind flags. Do not repeat the entrypoint flags.

Verify the image signature first. Your inventory and SSH key get mounted into this image, so stop if the check fails. Pin the image by digest, so the bytes you verify are the bytes you run. A later release needs its own version and digest.

image=ghcr.io/mechubsec/rustjunosmcp:2.7.5@sha256:f695d06fc3508bcde23393dd0d4269e1c8c57307d4567372cdb6d22bcbee887e

cosign verify \ --certificate-identity-regexp '^https://github\.com/mechubsec/mecmcp/\.github/workflows/reusable-release-image\.yml@' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ --certificate-github-workflow-repository mechubsec/rustjunosmcp \ --certificate-github-workflow-trigger push \ --certificate-github-workflow-ref refs/tags/v2.7.5 \ "$image"

Then prepare the host paths:

mkdir -p junos-docker/keys junos-docker/state/device-leases junos-docker/state/staging

cd junos-docker

Put devices.json and keys/id_ed25519 here, then pin each device's host key:

/path/to/rustjunosmcp/scripts/scan-known-hosts.sh \ --inventory ./devices.json --known-hosts ./state/known_hosts chmod 0600 devices.json keys/id_ed25519 sudo chown -R 65532:65532 devices.json keys state sudo chmod 0700 keys state state/device-leases

Mint a token (below), then start it:

docker run -d --name junos-twoperson \

-p 127.0.0.1:30030:30030 \ -v "$PWD/devices.json:/etc/jmcp/devices.json:ro" \ -v "$PWD/keys:/etc/jmcp/keys:ro" \ -v "$PWD/state:/var/lib/jmcp" \ "$image" \ --transport streamable-http --host 0.0.0.0 --port 30030 \ --allow-insecure-bind \ --allowed-host 127.0.0.1:30030 --allowed-host localhost:30030 \ --allowed-origin http://127.0.0.1:30030 --allowed-origin http://localhost:30030

Notes:

  • private_key_path in devices.json is the in-container path, for example /etc/jmcp/keys/id_ed25519.
  • Keep tokens.json in the mounted state directory. Do not bind-mount it as a single file. Token commands replace the file, so a single-file mount keeps the old copy and a revoked token stays valid after a reload.
  • --allowed-host and --allowed-origin carry the port the client dials, which is the published port, not the container's 30030.
  • Without --lab-mode this is two-person mode. To run lab mode, add --lab-mode as the last argument. See section 2.
  • --audit-journald does not work in a container (no journald socket). Read the audit stream with docker logs.

Full walk-through, image digest pinning and troubleshooting: docs/HOW-TO-SETUP-DOCKER.md.

LXC (Proxmox)

The container must be Debian 13 (trixie). The published binary needs GLIBC_2.39 and Debian 12 ships 2.36, so the service would fail at start with a "GLIBC_2.39 not found" error after an otherwise clean install. Create it unprivileged with --features nesting=1 (systemd 257 needs it). 512 MB and one core is enough.

Use the release tarball. Do not build the binary on your workstation and copy it in: a newer glibc than the container's will not load.

The checksum proves the download is intact. The signature proves it came from this project's release workflow. Stop if either check fails.

version=2.7.5

base="https://github.com/mechubsec/rustjunosmcp/releases/download/v${version}" tarball="rust-junosmcp_${version}_amd64.tar.gz" curl -fLO "$base/$tarball" curl -fLO "$base/$tarball.sha256" curl -fLO "$base/$tarball.cosign.bundle"

sha256sum -c "$tarball.sha256" cosign verify-blob \ --certificate-identity-regexp '^https://github\.com/mechubsec/mecmcp/\.github/workflows/reusable-sign-release-tarball\.yml@' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ --certificate-github-workflow-repository mechubsec/rustjunosmcp \ --certificate-github-workflow-trigger release \ --certificate-github-workflow-ref "refs/tags/v${version}" \ --bundle "$tarball.cosign.bundle" "$tarball"

pct push "$tarball" /tmp/pkg.tar.gz pct exec -- bash -lc "cd /tmp && tar xzf pkg.tar.gz && cd rust-junosmcp_${version}_amd64 && JMCP_INSTALL_VERIFY_TOOLS=1 ./install.sh"

install.sh creates the jmcp service user, installs the binary and the systemd unit, and stops. The service will not start until it has an inventory. Then place the credentials and fix their modes:

pct push <vmid> devices.json /etc/jmcp/devices.json

pct push id_ed25519 /etc/jmcp/id_ed25519 pct push known_hosts /etc/jmcp/known_hosts pct exec -- bash -lc ' chown -R jmcp:jmcp /etc/jmcp chmod 0600 /etc/jmcp/devices.json /etc/jmcp/id_ed25519 chmod 0644 /etc/jmcp/known_hosts '

Mint a token (below), then start it:

pct exec <vmid> -- systemctl enable --now rust-junosmcp

The shipped unit binds 127.0.0.1:30030 and keeps its token store at /var/lib/jmcp/tokens.json. For remote clients, use an SSH tunnel or a TLS reverse proxy, or add site settings in a systemd drop-in as the HOW-TO shows.

To upgrade, read the CHANGELOG.md upgrade notes, then install the new tarball the same way. The installer does not restart the service, so do that yourself and check the version:

pct exec <vmid> -- systemctl try-restart rust-junosmcp

pct exec -- /usr/local/bin/rust-junosmcp --version

The installer replaces the binary and the shipped unit, and leaves devices.json, tokens.json and known_hosts alone. Keep site settings in a drop-in, because edits to the shipped unit are lost.

Container creation, the site drop-in, verification and troubleshooting: docs/HOW-TO-SETUP-LXC.md. Release tarball verification: docs/REFERENCE.md.

Mint a token

Clients authenticate with a bearer token. The secret prints once and is stored hashed. Define jmcp for your install. The token paths are the same in both.

# LXC: run as the service user inside the guest.

jmcp() { pct exec -- runuser -u jmcp -- /usr/local/bin/rust-junosmcp "$@"; }

Docker: run from junos-docker/. No binary on the host is needed.

jmcp() { docker run --rm --entrypoint /usr/local/bin/rust-junosmcp \ -v "$PWD/devices.json:/etc/jmcp/devices.json:ro" \ -v "$PWD/state:/var/lib/jmcp" \ "$image" "$@" }

jmcp token add --tokens-file /var/lib/jmcp/tokens.json -f /etc/jmcp/devices.json \ --name my-client --devices '*' --tools '*'

A wildcard --tools '*' grants read-only tools only. Name write tools explicitly or the caller gets insufficient_scope. After minting or revoking, signal the running server:

pct exec <vmid> -- systemctl kill -s HUP rust-junosmcp.service   # LXC

docker kill -s HUP junos-twoperson # Docker

Scopes, rotation and rescoping: Remote transport + auth.

Check it is up

The service listens on the guest's loopback, so on LXC run this inside the guest with pct exec -- curl .... For Docker, run it on the host.

curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:30030/mcp \

-H 'content-type: application/json' -d '{}'

401 is success: the transport is up and rejecting unauthenticated callers. 000 means nothing is listening. 421 means the allowed-host list is wrong.

2. Choose a safety mode

By default, every configuration write goes through a change set: one principal proposes it, a different principal approves it, and then it is applied. A principal is a bearer token. Choose how that rule applies to your deployment.

Two-person (default)Lab mode (--lab-mode)
Flagnone--lab-mode
Who approvesa second principalnobody; approved on creation
Self-approvalrefusednot needed
Recordapprover identityapprover: null, approval_waiver: "lab-mode"
Use it foranything reala single-operator lab
Two-person change control (default)

The flow is create_junos_change_set, then approve_junos_change_set, then apply_junos_change_set. A change set needs a second principal unless lab mode is on. The token that creates a change set cannot approve it. Plan, plan digest, drift detection and apply-time revalidation all run.

Set it up with two tokens. The token from Mint a token is read-only, so it can do neither job.

  • A proposer token that names the change-set tools.
  • An approver token held by a different person, with --actor-type human and the approve_junos_change_set tool. The server refuses approval from a non-human actor.

Mint both with the jmcp function from Mint a token:

jmcp token add --tokens-file /var/lib/jmcp/tokens.json -f /etc/jmcp/devices.json \

--name proposer --actor-type agent --devices '*' \ --tools get_junos_candidate_fingerprint,create_junos_change_set,get_junos_change_set_status,apply_junos_change_set,confirm_junos_change_set

jmcp token add --tokens-file /var/lib/jmcp/tokens.json -f /etc/jmcp/devices.json \ --name alice --actor-type human --devices '*' \ --tools approve_junos_change_set

Then signal the running server, as shown above.

Two tokens held by one person are not a second reviewer. To bind the approver to a real identity, use a verified approver (`--oidc-

冒頭だけを表示しています。続きはリポジトリで読めます