
rust mcp
Rust MCP project
Repository Info
About This Server
Rust MCP project
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Rust MCP
A Rust CLI for Machine Control Protocol (MCP) with Supabase GitHub OAuth authentication.
Features
- CLI commands for authentication:
signup,login, andwhoami - Secure GitHub OAuth authentication flow using browser automation
- Integration with Supabase for user management
- Secure token storage using the system's credential manager
Prerequisites
- A Supabase project
- A GitHub OAuth app
- Rust and Cargo installed
Setting Up Supabase
- Create a new Supabase project at https://app.supabase.io/
- Go to Authentication → Providers and enable GitHub OAuth
- Note your project URL and anon key from the API settings
Setting Up GitHub OAuth
- Go to your GitHub account settings → Developer settings → OAuth Apps
- Create a new OAuth application
- Set the Homepage URL to your project URL
- Set the Authorization callback URL to:
https://your-project.supabase.co/auth/v1/callback - Note the Client ID and Client Secret
Configuration
Create a .env file in the project root (based on .env.example):
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-supabase-anon-key
GITHUB_CLIENT_ID=your-github-client-id
Getting Started
# Clone the repository
git clone https://github.com/aloshy-ai/rust-mcp.git
# Navigate to the project directory
cd rust-mcp
# Copy the environment file and fill in your values
cp .env.example .env
# Build the project
cargo build
# Sign up with a GitHub account
cargo run -- signup
# Login with your GitHub account
cargo run -- login
# Check the current logged-in user
cargo run -- whoami
Browser Automation
This CLI uses browser automation with headless_chrome to handle the OAuth flow. It will:
- Check if you're already logged in to GitHub
- Open a browser window for authentication if needed
- Automatically extract the authentication token after successful login
- Close the browser window when done
Security
- Authentication tokens are stored securely in your system's credential manager
- No sensitive information is stored in plain text
- OAuth tokens are handled securely through browser automation
Development
# Run tests
cargo test
# Format code
cargo fmt
# Check for issues
cargo clippy
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Quick Start
Clone the repository
git clone https://github.com/aloshy-ai/rust-mcpInstall dependencies
cd rust-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.