# MCPhoenix

> MCP Server

MCPheonix is an Elixir Phoenix-based server implementing the Model Context Protocol for AI model interaction, featuring real-time notifications, a resource system, and a self-healing distributed architecture using Cloudflare.

## Overview

- **Category:** AI
- **Language:** Elixir
- **Stars:** 67
- **Forks:** 3
- **Owner:** jmanhype
- **GitHub:** https://github.com/jmanhype/MCPhoenix
- **Created:** 2025-03-09T10:30:11+00:00
- **Updated:** 2025-03-23T17:12:47+00:00
- **Source:** https://model-context-protocol.com/servers/elixir-phoenix-model-context-protocol-server

## Setup

## Setup

1. Clone the repository:
```bash
git clone https://github.com/yourusername/mcpheonix.git
cd mcpheonix
```

2. Install dependencies:
```bash
mix deps.get
```

3. Configure the Cloudflare integration:
   - Create a Cloudflare Worker using the template in `cloudflare/durable-objects-worker.js`
   - Deploy it to your Cloudflare account
   - Set the environment variables:
     - `CLOUDFLARE_WORKER_URL`: URL of your deployed worker
     - `CLOUDFLARE_ACCOUNT_ID`: Your Cloudflare account ID
     - `CLOUDFLARE_API_TOKEN`: API token with Workers and DO permissions

4. Configure the Flux integration (if using image generation):
   - Set up the Flux CLI environment as described in the [Flux Integration](docs/flux_integration.md) section

5. Configure the Dart integration (if using task management):
   - Set up the Dart MCP server as described in the [Dart Integration](docs/dart_integration.md) section

6. Start the server:
```bash
mix phx.server
```

The server will be available at http://localhost:4001.

## Tools

## Available Tools

1. Server-Sent Events (SSE) stream (for real-time notifications)
2. JSON-RPC endpoint (for client requests)
3. Simple resource system (unspecified description)
4. Event publish/subscribe mechanism (unspecified description)
5. Basic tool invocation (unspecified description)
6. Flux image generation integration (unspecified description)
7. Dart task management integration (unspecified description)
8. Extensible MCP server architecture (unspecified description)
9. Self-healing distributed architecture via Cloudflare Durable Objects (ensures continuous operation)
10. Edge computing capabilities through Cloudflare Workers (unspecified description)
