Integrations
Allows AI assistants to execute Ansible playbooks, view and manage inventory, validate playbook syntax, and preview tasks that would be executed by a playbook.
Serves as the runtime environment for the MCP server, allowing the Ansible integration to operate.
Ansible MCP サーバー
Ansible自動化のためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIアシスタントはAnsibleと連携し、プレイブックの実行、インベントリ管理、その他のAnsible操作を直接実行できるようになります。
特徴
- Ansible プレイブックの実行: インベントリ、追加変数、タグ、制限などのパラメータをサポートした Ansible プレイブックを実行します。
- インベントリの一覧表示: Ansible インベントリ ファイルからホストとグループを表示します。
- 構文チェック: 実行せずにAnsibleプレイブックの構文を検証する
- タスクの一覧: プレイブックによって実行されるタスクをプレビューします
- デフォルトのインベントリにアクセス: リソース API 経由でデフォルトの Ansible インベントリ ファイルにアクセスします。
要件
- Node.js 18以上
- npmまたはyarn
- Ansibleがインストールされ、PATHに設定されている
- @modelcontextprotocol/sdk (自動的にインストールされます)
インストール
1. リポジトリをクローンする
Copy
2. 依存関係をインストールする
Copy
3. サーバーを構築する
Copy
4. MCP設定を構成する
Ansible MCP サーバーを MCP 設定構成ファイルに追加します。
Claude 拡張機能付きの VSCode の場合:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
にあるファイルを編集します。
Claude デスクトップ アプリの場合:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
を編集します。 - Windows:
%APPDATA%\Claude\claude_desktop_config.json
を編集します。 - Linux:
~/.config/Claude/claude_desktop_config.json
を編集します。
mcpServers
セクションに以下を追加します。
Copy
/absolute/path/to/mcp-ansible
を実際のインストールパスに置き換えてください。
使用例
MCP サーバーをインストールして構成すると、AI アシスタントに次のツールが提供されます。
1. プレイブックを実行する
Copy
2. 在庫リスト
Copy
3. プレイブックの構文を確認する
Copy
4. プレイブックにタスクをリストする
Copy
5. デフォルトの在庫リソースにアクセスする
Copy
発達
プロジェクト構造
Copy
新機能の追加
MCP サーバーに新しい Ansible 機能を追加するには:
src/ansible-mcp-server/index.ts
変更するsetupToolHandlers
メソッドに新しいツールを追加します- ツールのハンドラー関数を実装する
npm run build
でリビルドする
ライセンス
MITライセンス - 詳細はライセンスを参照
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.Last updated -1318JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.Last updated -JavaScript
- -securityFlicense-qualityA Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.Last updated -1TypeScript
- -securityAlicense-qualityA Model Context Protocol server that connects AI assistants like Claude to Moneybird accounting software, enabling management of contacts, financial data, products, and business operations through natural language.Last updated -1JavaScriptMIT License