SanctumOS

The Modular, Self-Hosted Agentic Operating System

Sanctum Letta MCP

Model Context Protocol Server for AI Agent Communication

Sanctum Letta MCP (SMCP) is the foundation of the SanctumOS ecosystem, providing a standardized interface for AI agents to interact with external tools and services through the Model Context Protocol (MCP).

đŸŽ¯ What is this for?

SMCP serves as the bridge between AI agents and external tools, enabling agents to:

  • Execute commands and tools through a standardized interface
  • Access external services and APIs
  • Integrate with development tools and automation systems
  • Communicate with other agents and systems

🚀 Quick Installation

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Install & Run

# Clone and setup
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Run the server
python smcp/mcp_server.py

Clone and setup

git clone https://github.com/sanctumos/smcp.git cd smcp python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt

Run the server

python smcp/mcp_server.py


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

Verify Installation

# Clone and setup
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Run the server
python smcp/mcp_server.py

Check if server is running

curl http://localhost:8000/health

Should return: {"status": "healthy", "version": "1.0.0"}


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

âš™ī¸ Basic Configuration

Environment Variables

# Clone and setup
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Run the server
python smcp/mcp_server.py

Server settings

SMCP_PORT=8000 SMCP_HOST=localhost SMCP_LOG_LEVEL=INFO

Plugin settings

SMCP_PLUGINS_DIR=./plugins SMCP_AUTO_DISCOVER=true


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

Plugin Directory Structure


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

smcp/ ├── plugins/ │ ├── botfather/ # Telegram integration │ ├── devops/ # Development tools │ └── custom/ # Your custom plugins └── smcp/ └── mcp_server.py # Main server


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

🔌 Available Plugins

Built-in Plugins

  • BotFather Plugin: Telegram bot management and communication
  • DevOps Plugin: Development and deployment tools
  • System Plugin: Basic system operations and monitoring

Plugin Development

đŸ› ī¸ CLI Tools

Server Management

# Clone and setup
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Run the server
python smcp/mcp_server.py

Start server

python smcp/mcp_server.py

Start with custom config

python smcp/mcp_server.py --config custom_config.json

List available tools

python smcp/mcp_server.py --list-tools


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

Plugin Management

# Clone and setup
git clone https://github.com/sanctumos/smcp.git
cd smcp
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Run the server
python smcp/mcp_server.py

List installed plugins

python smcp/plugins/botfather/cli.py --list

Test plugin functionality

python smcp/plugins/botfather/cli.py --test


### Verify Installation
bash
# Check if server is running
curl http://localhost:8000/health

# Should return: {"status": "healthy", "version": "1.0.0"}

📚 Documentation Links

Core Documentation

Plugin Development

Integration

🔧 Common Tasks

Adding a New Plugin

  1. Create plugin directory in plugins/
  2. Implement plugin interface
  3. Register tools and capabilities
  4. Restart server to auto-discover

Connecting an AI Agent

  1. Configure agent to use MCP protocol
  2. Point to SMCP server endpoint
  3. Authenticate using API keys
  4. Start using available tools

Monitoring and Debugging

  • Health Check: GET /health
  • Tool List: GET /tools
  • Plugin Status: GET /plugins`
  • Logs: Check server console output

🆘 Getting Help

📄 License


Sanctum Letta MCP - The foundation of the SanctumOS ecosystem.