Mida MCP

Peça ao seu agente para rodar o teste

Instale a tag, crie a variante, leia o resultado. As tarefas que você normalmente faria clicando em um painel, entregues ao agente com o qual você já programa.

Abrir no Claude Code
Abrir no Codex
o prompt de configuração
Set up Mida A/B testing in this project. Work through these in order, and stop to ask me whenever something is ambiguous.

1. Check I have a Mida account. If I do not, send me to https://app.mida.so/sign-up and wait for me to finish — creating the account is my job, not yours.

2. Connect the Mida MCP server so you can read and write my experiments directly. The endpoint is https://mcp.mida.so/mcp over streamable HTTP with browser authorization. In Claude Code: claude mcp add --transport http mida https://mcp.mida.so/mcp
   Once connected, call select_project before any other Mida tool, or every call returns 404. list_projects returns a project_key for each of my projects — that value IS the key the tag needs in step 3, so read it from there rather than asking me to copy it out of the dashboard.

3. Work out where this site actually lives before you change anything: a codebase you can edit, or a hosted platform I log into. Check the repo if there is one, and check the live page. Tell me what you found.

4. Get the tag from Mida rather than assembling it. Call the get_install_snippet MCP tool — it returns the finished tag with the region-correct host and my real project key already substituted, and you paste that exactly. This is the shape, not the value:
   <script type="text/javascript" async src="https://CDN_HOST/js/optimize.js?key=PROJECT_KEY"></script>
   CDN_HOST is cdn-eu.mida.so for an EU account and cdn.mida.so otherwise. The tag reads its API region from the host it was loaded from, so a hand-assembled tag with the wrong host installs cleanly and then silently finds no experiments. If that tool is not available, take the whole snippet from the install page in my dashboard, or ask me which region I am on.

5. Install it the way that suits where the site lives, and tell me which path you took and why:
   - A codebase: put the tag in <head>, as high as possible, and do not defer it — variants have to apply before first paint or the page will flicker. On server-rendered pages where you want zero flicker, use a server-side SDK instead — mida-node, mida-nextjs, mida-php, or mida-python. Docs: https://docs.mida.so/docs/server-side/sdks
   - A hosted platform that has its own MCP server: connect it and install through it, so I never have to paste code. Prefer the platform's remote MCP endpoint with browser authorization over a local setup with an API token — some platforms only allow their custom code endpoints for apps authorized that way, so a token setup can fail on the exact call you need. Register the tag as site-wide custom code in the head, apply it to the site, then publish if that platform needs a publish for custom code to go live. Ask me first if the site is live.
   - A hosted platform with no MCP server: do not try to click your way through the admin UI. Tell me exactly where the tag goes on that platform, give me the tag, and wait for me.

6. Verify it before you call this done. Load a page and confirm the script fetches, the project key is correct, and a pageview reaches Mida. If a tag manager, a consent gate, or a script optimizer such as WP Meteor is rewriting or deferring the tag, say so plainly — any of those will silently stop it working.

7. Do not create a test yet. Report what you installed, then ask me what I want to test first. When I tell you, build it from selectors you have read in my actual markup — never guess at something like "h1".

Abre o app se você o tiver instalado. No Cursor, Windsurf, VS Code ou Gemini CLI, copie o prompt.

Um agente é tão bom quanto a plataforma por trás dele

Escrever uma variante é a parte fácil, e é o que toda ferramenta de IA já faz hoje. A parte difícil é o que acontece na página e na matemática: um teste que pisca, atribui variantes no navegador ou não distingue um vencedor de ruído vai entregar ao seu agente uma resposta confiante, porém errada. Essa é a parte em que dedicamos anos de trabalho.

~15KB

Sem flicker para contornar

A tag é pequena e aplica as variantes antes da primeira renderização, então seu agente não precisa escrever gambiarras anti-flicker para esconder um script lento.

Server-side

Atribuição de variantes que seu agente não consegue distorcer

A atribuição e a alocação multi-armed bandit acontecem do nosso lado, não em código do cliente que um agente poderia reescrever. A divisão que você configurou é a divisão que você recebe.

Bayesiano

Números que ele pode citar, não inventar

A Mida devolve as estatísticas, então o agente relata um resultado em vez de calcular a significância num rascunho e arredondar a seu favor.

59 ferramentas, não uma simples caixa de chat

O Mida MCP expõe o painel como ferramentas que seu agente chama diretamente. A leitura é aberta a qualquer cliente conectado; qualquer coisa que altere um experimento ativo é controlada pelo seu próprio perfil de acesso.

Instale do jeito certo

A única coisa que um agente não consegue descobrir sozinho é em qual região sua conta está. Ele pergunta, em vez de chutar um host de CDN e instalar uma tag que não reporta nada, sem avisar.

get_install_snippet list_projects get_project_configuration

Crie testes como rascunhos, sem surpresas

Seu agente cria o experimento, define a meta e devolve uma URL de pré-visualização para cada variante. Nada recebe tráfego até você autorizar.

create_experiment create_goal generate_preview_url

Leia os resultados sem precisar recalculá-los

Exposições, conversões, intervalos de credibilidade e divisões por variante chegam como dados. Uma variante sem tráfego é lida como um bug, não como uma derrota.

get_experiment_result compute_experiment_statistics get_experiment_distribution

Saiba o que você já testou

Antes de propor pela terceira vez o mesmo teste de título, ele pode consultar seu histórico e ver como esse padrão performou em sites parecidos com o seu.

get_my_testing_history get_testing_benchmarks find_similar_tests

Traga seu próprio agente

Um servidor MCP remoto, autorizado no navegador com a sua conta Mida. Sem chaves de API para colar, sem licença extra para comprar.

Dê ao seu agente algo para testar

100.000 usuários testados por mês no plano gratuito, com o servidor MCP incluído. Conecte, aponte seu agente para uma página e veja o que ele traz de volta.

Sem cartão de crédito. O agente faz a configuração.