Kriativa
Model Context Protocol

Controle o AllInOne AI a partir de qualquer cliente MCP

Gere imagens, vídeo, áudio e texto, liste seus ativos, execute workflows e reutilize prompts salvos — direto do Claude Desktop, Cursor ou qualquer cliente Model Context Protocol.

Visão geral

O servidor MCP do AllInOne AI expõe o mesmo motor de geração usado no app pela web, via o transporte padrão JSON-RPC 2.0 Streamable HTTP. Qualquer assistente compatível com MCP pode listar seus modelos, navegar seus ativos, iniciar gerações e salvar prompts — tudo medido nos créditos da sua conta, com atribuição por token e rotação.

Os provedores por trás de cada modelo nunca são expostos via MCP — apenas o catálogo AllInOne que você já vê no app.

Conectar um cliente

Aponte seu cliente MCP para o endpoint abaixo usando autenticação Bearer com um token criado em Configurações. Tokens são prefixados por lv_mcp_ e mostrados apenas uma vez na criação — copie imediatamente.

Endpoint HTTP bruto
POST https://blend-ai-forge.lovable.app/api/public/mcp
Authorization: Bearer lv_mcp_YOUR_TOKEN
Content-Type: application/json
Accept: application/json, text/event-stream
Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "allinone-ai": {
      "transport": {
        "type": "http",
        "url": "https://blend-ai-forge.lovable.app/api/public/mcp",
        "headers": { "Authorization": "Bearer lv_mcp_YOUR_TOKEN" }
      }
    }
  }
}
Cursor / MCP genérico
curl -X POST https://blend-ai-forge.lovable.app/api/public/mcp \
  -H "Authorization: Bearer lv_mcp_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Disparar um workflow via webhook
# 1. In the workflow editor, switch the Trigger to "Webhook", define your
#    input variables (e.g. { name: "topic", type: "string", required: true })
#    and copy the endpoint URL shown in the Trigger card.
# 2. POST to that URL with your MCP token — the JSON body is validated
#    against the workflow's input_schema before the run is enqueued.
curl -X POST https://YOUR-APP/api/public/webhook-trigger/WEBHOOK_TOKEN \
  -H "Authorization: Bearer lv_mcp_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"topic":"summer campaign","style":"cinematic"}'

# Same workflow via MCP tools/call (input is validated the same way):
curl -X POST https://blend-ai-forge.lovable.app/api/public/mcp \
  -H "Authorization: Bearer lv_mcp_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"run_workflow","arguments":{"workflow_id":"WORKFLOW_ID","input":{"topic":"summer campaign","style":"cinematic"}}}}'

Ferramentas disponíveis

NomeEscopoDescrição
list_models
read:catalog
List available AI models with modality, tier and pricing.
list_assets
read:assets
List assets owned by the authenticated user.
generate
write:generate
Generate image, video, audio, voice or text (optionally auto-selects a model via tier).
search_characters
read:catalog
Search your own and public community characters.
list_saved_prompts
manage:prompts
List your saved prompt snippets.
create_saved_prompt
manage:prompts
Save a new prompt snippet for later reuse.
list_projects
read:catalog
List your canvases, workflows and studios.
create_canvas
write:projects
Create a new empty canvas.
create_workflow
write:projects
Create a new empty sequential workflow.
create_studio
write:projects
Create a new empty video studio project.
run_workflow
write:projects
Execute an existing workflow. Accepts optional structured `input` (validated against the workflow's trigger input_schema) and optional `input_prompt`. Debits credits.
Recursos
Seus últimos 100 ativos ficam expostos como URIs asset://<uuid>. Clientes podem anexá-los nas conversas; o servidor devolve URLs assinadas de 1h na leitura.
Prompts
Seus prompts salvos aparecem nativamente no painel de Prompts do cliente e podem ser inseridos com um clique.

Escopos

Ao criar um token, conceda apenas os escopos que seu cliente precisa.

read:catalog

Browse models, characters and projects.

read:assets

List assets and read signed URLs via resources/read.

write:generate

Trigger generations and debit credits.

manage:prompts

List, read and create saved prompt snippets.

write:projects

Create canvases, workflows, studios and run workflows.

Limites & cobrança

Cada token é limitado a 60 requisições por minuto (janela deslizante). Gerações debitam créditos da sua conta; o uso é atribuído por token e visível em Configurações.