ماذا يمكنك أن تفعل مع Rancher؟
- Comprehensive Rancher API coverage
- Multiple authentication methods
- Enterprise-ready with rate limiting
- Full error handling and retry logic
- Async support for better performance
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
rancher-mcp-serverclaude mcp add rancher -e 'RANCHER_API_KEY=<your rancher_api_key>' -e 'RANCHER_API_URL=<RANCHER_API_URL>' -- uvx rancher-mcp-server==0.1.0
{
"mcpServers": {
"rancher": {
"command": "uvx",
"args": [
"rancher-mcp-server==0.1.0"
],
"env": {
"RANCHER_API_KEY": "<your rancher_api_key>",
"RANCHER_API_URL": "<RANCHER_API_URL>"
}
}
}
}
متغيرات البيئة
RANCHER_API_KEYإلزامي سري API Key for RANCHERRANCHER_API_URLAPI URL for RANCHER
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
Rancher MCP Server
Rancher Mcp Server
A Model Context Protocol (MCP) server for integrating Rancher with GenAI applications.
Overview
Kubernetes management and deployment platform
Features
- Comprehensive Rancher API coverage
- Multiple authentication methods
- Enterprise-ready with rate limiting
- Full error handling and retry logic
- Async support for better performance
Installation
pip install rancher-mcp-server
Or install from source:
git clone https://github.com/asklokesh/rancher-mcp-server.git
cd rancher-mcp-server
pip install -e .
Configuration
Create a .env file or set environment variables according to Rancher API requirements.
Quick Start
from rancher_mcp import RancherMCPServer
# Initialize the server
server = RancherMCPServer()
# Start the server
server.start()
License
MIT License - see LICENSE file for details
الأسئلة الشائعة
ما هو Rancher؟
MCP server for Rancher API integration
كيف أثبّت Rancher؟
يعمل على جهازك. في Claude Code: claude mcp add rancher -e 'RANCHER_API_KEY=<your rancher_api_key>' -e 'RANCHER_API_URL=<RANCHER_API_URL>' -- uvx rancher-mcp-server==0.1.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Rancher إلى مفتاح API؟
نعم. يتطلب RANCHER_API_KEY، وتضبطها في إعداداته.
هل Rancher مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون Rancher؟
ينشره asklokesh. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.