
A Model Context Protocol (MCP) server for interacting with Cloud.ru Container Apps and Artifact Registry.
概览
A Model Context Protocol (MCP) server for interacting with Cloud.ru Container Apps and Artifact Registry. Model Context Protocol (MCP) is an open standard that enables seamless integration between AI assistants and external tools or data sources. It allows AI models to interact with your applications, services, and data in a secure and controlled manner. With MCP, you can: - Extend the capabilities of AI assistants beyond their training data - Enable real-time interaction with live systems and APIs - Provide contextually relevant information from your own data sources - Execute complex workflows without leaving your AI assistant interface Instead of manually performing tasks, you can simply ask your AI assistant: Your AI assistant, using this MCP server, can then: 1. Build a Docker image of your application 2. Push it to Cloud.ru Artifact Registry 3. Update your Container App with the new image 4.
README
以下为原文 README 节选,完整内容请查看原文。
Cloud.ru Container Apps MCP
A Model Context Protocol (MCP) server for interacting with Cloud.ru Container Apps and Artifact Registry.
What is MCP?
Model Context Protocol (MCP) is an open standard that enables seamless integration between AI assistants and external tools or data sources. It allows AI models to interact with your applications, services, and data in a secure and controlled manner.
With MCP, you can:
- Extend the capabilities of AI assistants beyond their training data
- Enable real-time interaction with live systems and APIs
- Provide contextually relevant information from your own data sources
- Execute complex workflows without leaving your AI assistant interface
Example Usage
Instead of manually performing tasks, you can simply ask your AI assistant:
"Build image, push and deploy to Cloud.ru Container Apps via MCP"
Your AI assistant, using this MCP server, can then:
- Build a Docker image of your application
- Push it to Cloud.ru Artifact Registry
- Update your Container App with the new image
- Report back the status of the deployment
All of this happens automatically through natural language commands, making complex DevOps tasks accessible to everyone.
Installation cloudru-containerapps-mcp to your system
go install github.com/Nick1994209/cloudru-containerapps-mcp/cmd/cloudru-containerapps-mcp@latest
or
go install ./cmd/cloudru-containerapps-mcp
Add cloudru-containerapps-mcp to your IDE. For example VisualStudioCode or Cursor
Added MCP Setup
{
"mcpServers": {
"cloudru-containerapps-mcp": {
"command": "cloudru-containerapps-mcp",
"args": [],
"env": {
"CLOUDRU_KEY_ID": "********",
"CLOUDRU_KEY_SECRET": "********",
"CLOUDRU_PROJECT_ID": "********",
},
"timeout": 900,
"disabledTools": []
}
}
}
The server will listen for JSON-RPC messages on stdin/stdout.
MCP Environment variables
Functions
cloudru_containerapps_description()
Returns usage instructions for this MCP.
cloudru_docker_login(registry_name)
Logs into the Cloud.ru Docker registry using the provided credentials.
Parameters:
registry_name: Name of the registry (falls back to CLOUDRU_REGISTRY_NAME env var)
If login fails, you’ll need to:
- Go to Cloud.ru Evolution Artifact Registry
- Create a registry
- Obtain access keys
- See documentation: https://cloud.ru/docs/container-apps-evolution/ug/topics/tutorials__before-work
cloudru_docker_build_and_push(registry_name, repository_name, image_version, dockerfile_path, dockerfile_target, dockerfile_folder, show_commands)
Builds a Docker image and pushes it to Cloud.ru Artifact Registry.
Parameters:
registry_name: Name of the registry (falls back to CLOUDRU_REGISTRY_NAME env var)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"cloudru-containerapps-mcp": {
"command": "cloudru-containerapps-mcp",
"args": [],
"env": {
"CLOUDRU_KEY_ID": "********",
"CLOUDRU_KEY_SECRET": "********",
"CLOUDRU_PROJECT_ID": "********",
},
"timeout": 900,
"disabledTools": []
}
}
}