π¦
Zetoe Backend
Fast API backend for the zetoe
0 installs
Trust: 34 β Low
Devtools
Ask AI about Zetoe Backend
Powered by Claude Β· Grounded in docs
I know everything about Zetoe Backend. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
MCP Store API
A FastAPI project for managing MCP (Model Context Protocol) integrations with Composio..
Features
- Connection Creation: Create connections to apps through Composio, which generates authorization URLs and connected account IDs
- MCP Server Creation: Create MCP servers using connected account IDs and app names
Project Structure
βββ app
β βββ config # Configuration settings
β βββ routers # API route definitions
β βββ schemas # Pydantic models for request/response validation
β βββ services # Business logic layer
β βββ main.py # FastAPI application initialization
βββ tests # Unit tests
βββ .env # Environment variables
βββ requirements.txt # Project dependencies
βββ run.py # Application entry point
βββ Dockerfile # Docker configuration
Setup and Installation
Local Development
- Clone the repository:
git clone <repository-url>
cd mcp-store-api
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile based on.env.examplewith your Composio API key:
API_KEY=your_api_key_here
COMPOSIO_API_URL=https://backend.composio.dev/api/v1
LOG_LEVEL=INFO
- Run the application:
python run.py
The API will be available at http://localhost:8000
Docker Deployment
- Build the Docker image:
docker build -t mcp-store-api .
- Run the Docker container:
docker run -p 8000:8000 --env-file .env mcp-store-api
API Documentation
Once the server is running, you can access:
- Interactive API documentation: http://localhost:8000/docs
- Alternative documentation: http://localhost:8000/redoc
API Endpoints
Create Connection
POST /connections
Request body:
{
"app_name": "gmail"
}
Response:
{
"redirect_url": "https://example.com/auth",
"connected_account_id": "acc_123456",
"message": "Connection initiated successfully"
}
Create MCP Server
POST /mcp-servers
Request body:
{
"name": "Gmail Server",
"connected_account_ids": ["acc_123456"],
"apps": ["gmail"],
"entity_id": "default",
"ttl": "no expiration"
}
Response:
{
"url": "https://example.com/mcp-server",
"server_id": "srv_123456",
"message": "MCP server created successfully"
}
