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.
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~/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" }
}
}
}
}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"}'# 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
| Nome | Escopo | Descriçã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. |
Escopos
Ao criar um token, conceda apenas os escopos que seu cliente precisa.
Browse models, characters and projects.
List assets and read signed URLs via resources/read.
Trigger generations and debit credits.
List, read and create saved prompt snippets.
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.