XO MCP Server

XO MCP Server

Provides seamless integration with the XO platform for container deployment, application lifecycle management, and knowledge base operations. Enables AI assistants to deploy, manage, and interact with applications on XO infrastructure through natural language commands.

Category
访问服务器

README

XO MCP Server

Python MCP License

A powerful Model Context Protocol (MCP) server that provides seamless integration with the XO platform for container deployment, application lifecycle management, and knowledge base operations. This server enables AI assistants to deploy, manage, and interact with applications on the XO infrastructure through natural language commands.

🚀 Features

Container Deployment & Management

  • One-click deployment to XO platform
  • Lifecycle management (start, stop, remove applications)
  • Real-time logging and monitoring
  • Application exposure with automatic domain provisioning

Knowledge Base Integration

  • Dynamic knowledge base updates using text content
  • Intelligent question answering with context-aware responses
  • Multi-project support with isolated knowledge bases
  • Flexible agent types for different use cases

Developer Experience

  • Simple setup with environment-based configuration
  • Comprehensive error handling with detailed feedback
  • Modern MCP architecture using FastMCP
  • Cross-platform compatibility

📋 Prerequisites

  • Python 3.11 or higher
  • uv package manager
  • XO platform account with valid credentials
  • MCP-compatible client (Claude Desktop, Cursor, etc.)

🛠️ Installation

Option 1: Direct from GitHub (Recommended)

Add this configuration to your MCP client settings:

{
  "mcpServers": {
    "xo-mcp-server": {
      "command": "uvx",
      "args": [
        "git+https://github.com/sharmasuraj0123/xo-mcp-server.git"
      ],
      "env": {
        "ACCESS_TOKEN": "your_access_token",
        "DEPLOYMENT_ID": "your_deployment_id"
      }
    }
  }
}

Option 2: Local Development

  1. Clone the repository:
git clone https://github.com/sharmasuraj0123/xo-mcp-server.git
cd xo-mcp-server
  1. Add to your MCP client settings:
{
  "mcpServers": {
    "xo-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/xo-mcp-server",
        "run",
        "-m",
        "xo_mcp_server"
      ],
      "env": {
        "ACCESS_TOKEN": "your_access_token",
        "DEPLOYMENT_ID": "your_deployment_id"
      }
    }
  }
}

⚙️ Configuration

Environment Variables

Variable Description Required
ACCESS_TOKEN Your XO platform access token
DEPLOYMENT_ID Unique deployment identifier from XO Launchpad

Getting Your Credentials

  1. Visit XO Launchpad
  2. Login and create a new project
  3. Note down your DEPLOYMENT_ID
  4. Contact the XO team for your ACCESS_TOKEN

🔧 Available Tools

Container Management

deploy_to_xo()

Deploy your containerized application to the XO platform.

Usage: "Deploy my application to XO"

start_xo_app()

Start a previously deployed application.

Usage: "Start my XO application"

stop_xo_app()

Stop a running application without removing it.

Usage: "Stop my XO application"

remove_xo_app()

Completely remove an application from the platform.

Usage: "Remove my XO application"

get_xo_app_logs()

Retrieve real-time logs from your running application.

Usage: "Show me the logs for my XO app"

expose_xo_app()

Expose your application to the internet with a custom domain.

Usage: "Expose my XO app to the internet"

Knowledge Base Operations

update_knowledgebase_using_text(project_name, text_content, text_id?)

Add or update text content in your project's knowledge base.

Parameters:

  • project_name (string): Name of your XO project
  • text_content (string): The text content to add/update
  • text_id (string, optional): Unique identifier for the text content

Usage: "Update my knowledge base with this documentation"

ask_question(project_name, question, user_id?, agent_type?, message_type?)

Query your project's knowledge base with intelligent responses.

Parameters:

  • project_name (string): Name of your XO project
  • question (string): Your question
  • user_id (string, optional): User identifier (default: "default_user")
  • agent_type (string, optional): Type of agent response (default: "normal")
  • message_type (string, optional): Message type (default: "@xo")

Usage: "Ask my knowledge base about deployment procedures"

🚀 Quick Start Guide

1. Set Up Your XO Project

  1. Go to XO Launchpad
  2. Login and create a new project:
    {
      "project_name": "my-awesome-app"
    }
    
  3. Save your DEPLOYMENT_ID and obtain your ACCESS_TOKEN

2. Prepare Your Container

Build and push your Docker image to the XO registry:

# Login to XO registry
docker login registry.xo.builders -u 'your-robot-name' -p 'your-robot-secret'

# Build your image
docker build --platform linux/amd64,linux/arm64 -t registry.xo.builders/your-project/your-app:latest .

# Push to registry
docker push registry.xo.builders/your-project/your-app:latest

3. Configure MCP Client

Add the server configuration to your MCP client (Claude Desktop, Cursor, etc.) with your credentials.

4. Deploy and Manage

Once configured, you can use natural language commands:

  • "Deploy my application to XO"
  • "Show me the application logs"
  • "Expose my app to the internet"
  • "Update my knowledge base with the latest documentation"

🏗️ Architecture

The XO MCP Server is built on the FastMCP framework and provides:

  • RESTful API integration with XO backend services
  • Robust error handling with detailed error messages
  • Environment-based configuration for security
  • Modular tool architecture for easy extension

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🔗 Related Projects


Built with ❤️ by the XO team

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选