Mida MCP

Demandez à votre agent de lancer le test

Installez le tag, créez la variante, lisez le résultat. Les tâches que vous feriez normalement en cliquant dans un tableau de bord, confiées à l'agent avec lequel vous codez déjà.

Ouvrir dans Claude Code
Ouvrir dans Codex
le prompt d'installation
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".

Ouvre l'application si elle est installée. Sur Cursor, Windsurf, VS Code ou Gemini CLI, copiez plutôt le prompt.

Un agent n'est aussi bon que la plateforme sur laquelle il s'appuie

Rédiger une variante est la partie facile, et c'est ce que tous les outils d'IA font désormais. Le plus difficile se joue sur la page et dans les calculs : un test qui scintille, qui attribue les variantes dans le navigateur ou qui ne sait pas distinguer un gagnant du simple bruit donnera à votre agent une réponse pleine d'assurance, mais fausse. C'est sur ce point que nous travaillons depuis des années.

~15Ko

Aucun scintillement à contourner

Le tag est léger et applique les variantes avant le premier affichage, de sorte que votre agent n'a pas à écrire de bricolages anti-flicker pour masquer un script lent.

Côté serveur

Une attribution des variantes que votre agent ne peut pas fausser

L'attribution et l'allocation par bandit manchot se font de notre côté, et non dans du code client qu'un agent pourrait réécrire. La répartition que vous avez configurée est celle que vous obtenez.

Bayésien

Des chiffres à citer plutôt qu'à inventer

Mida renvoie les statistiques : l'agent rapporte donc un résultat au lieu de calculer la significativité dans un coin et d'arrondir en votre faveur.

59 outils, pas une simple fenêtre de chat

Mida MCP expose le tableau de bord sous forme d'outils que votre agent appelle directement. La lecture est ouverte à tout client connecté ; tout ce qui modifie une expérience en cours est soumis à votre propre rôle.

Une installation correcte

La seule chose qu'un agent ne peut pas deviner, c'est la région de votre compte. Il pose la question, au lieu de deviner un hôte CDN et d'installer un tag qui ne remonte silencieusement aucune donnée.

get_install_snippet list_projects get_project_configuration

Des tests créés en brouillon, sans mauvaise surprise

Votre agent crée l'expérience, définit l'objectif et renvoie une URL de prévisualisation pour chaque variante. Aucun trafic n'est servi tant que vous ne l'avez pas décidé.

create_experiment create_goal generate_preview_url

Lire les résultats sans les recalculer

Expositions, conversions, intervalles de crédibilité et répartitions par variante sont renvoyés sous forme de données. Une variante sans trafic est considérée comme un bug, et non comme une défaite.

get_experiment_result compute_experiment_statistics get_experiment_distribution

Savoir ce que vous avez déjà essayé

Avant qu'il ne propose pour la troisième fois le même test de titre, il peut consulter votre historique et voir comment ce type de test a performé sur des sites comme le vôtre.

get_my_testing_history get_testing_benchmarks find_similar_tests

Utilisez votre propre agent

Un seul serveur MCP distant, autorisé dans votre navigateur avec votre compte Mida. Aucune clé API à coller, aucun siège supplémentaire à acheter.

Donnez à votre agent de quoi tester

100 000 utilisateurs testés par mois avec l'offre gratuite, serveur MCP inclus. Connectez-le, indiquez une page à votre agent et voyez ce qu'il vous propose.

Aucune carte bancaire. L'agent s'occupe de la configuration.