✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

🧠 MCP - Model Context Protocol

Projeto completo para uma aplicação conversacional com:

  • ✅ FastAPI + JWT
  • ✅ LLM local via Ollama (ex: Mistral)
  • ✅ Contexto com memória vetorial (ChromaDB)
  • ✅ Suporte a múltiplos usuários e sessões
  • ✅ Resumo automático de histórico longo
  • ✅ Sistema de plugins para executar ações reais

🚀 Como rodar

1. Clone o projeto e crie o ambiente

git clone <repo>
cd mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

2. Configure o .env

MODEL_NAME=mistral
VECTOR_DB_PATH=./chroma
DB_PATH=./mcp.db
CONTEXT_LIMIT=5
SUMMARY_TRIGGER=20

3. Inicie o Ollama

ollama run mistral

4. Suba o servidor

chmod +x start.sh
./start.sh

🛡️ Autenticação

  • POST /auth/register: Cria novo usuário

  • POST /auth/login: Retorna token JWT

Use o token JWT nas requisições para /mcp/chat.

🤖 Plugins

Para chamar um plugin:

{
  "session_id": "sessao01",
  "prompt": "plugin: {"name": "list_files", "args": {"path": "/etc"}}"
}

📁 Estrutura

app/
├── routes/         # Rotas da API
├── services/       # Lógica de negócio (MCP, plugins, memória)
├── db/             # Persistência (SQLite e vetorial)
├── models/         # Schemas Pydantic
├── plugins/        # Plugins executáveis pelo MCP
├── auth/           # Login, JWT, usuários

📬 Contato

Desenvolvido por [Everson 🧠].

Featured Templates

View More
AI Assistants
AI Chatbot Starter Kit v0.1
141 1202
AI Engineering
Python Bug Fixer
122 1767
Customer service
Service ERP
127 1488
Customer service
Multi-language AI Translator
139 1247

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.