Margin
io.trymargin/margin
Tests a model or prompt change on your own evals and says if it holds, before your agent ships it.
Description fournie par l’auteur dans le registre officiel MCP (en anglais).
- Site
- trymargin.io/docs
- Adresse du serveur
https://trymargin.io/api/mcp?tools=core(streamable-http)- Version
- 0.2.0
- Auteur
- trymargin.io (espace de noms vérifié par le registre)
- Source
- Registre officiel MCP (mis à jour le 26 nov. 2026)
Comment l’installer
Le serveur accepte et demande un en-tête : Authorization. Remplacez VOTRE_CLE par votre clé.
Claude Code
Dans un terminal :
claude mcp add --transport http margin https://trymargin.io/api/mcp?tools=core \
--header "Authorization: Bearer VOTRE_CLE"Claude (application et claude.ai)
Ouvrez Réglages, puis Connecteurs, et ajoutez un connecteur personnalisé avec cette adresse. Si le serveur demande une connexion, Claude vous la proposera.
https://trymargin.io/api/mcp?tools=coreChatGPT
Dans Réglages, partie Applications et connecteurs, activez le mode développeur, puis créez un connecteur avec cette adresse.
https://trymargin.io/api/mcp?tools=coreCursor ~/.cursor/mcp.json
Ajoutez ceci au fichier ~/.cursor/mcp.json (ou .cursor/mcp.json dans le projet) :
{
"mcpServers": {
"margin": {
"url": "https://trymargin.io/api/mcp?tools=core",
"headers": {
"Authorization": "Bearer VOTRE_CLE"
}
}
}
}VS Code .vscode/mcp.json
Ajoutez ceci au fichier .vscode/mcp.json de votre projet :
{
"servers": {
"margin": {
"type": "http",
"url": "https://trymargin.io/api/mcp?tools=core",
"headers": {
"Authorization": "Bearer VOTRE_CLE"
}
}
}
}Ces configurations sont construites à partir des informations publiées par l’auteur. Vérifiez le dépôt avant d’installer un serveur local.
Notre test
Répond Le serveur répond au protocole MCP et liste ses outils.
- Date
- 28 nov. 2026, 11:07 (test fait par L’Atlas)
- Temps de réponse
- 614 ms (test complet)
- Outils trouvés
- 16
- Nom annoncé
- margin 0.1.0
- Protocole
- MCP 2025-11-25
- Prochain test
- 5 déc. 2026
Voir les outils (16)
margin_jobs
Where YOUR project's money goes, per job: each model-calling step over the last 30 days with its calls, cost, live model and whether any eval has exercised it, plus how concentrated the spend is in the top 5/10/20 jobs. A job is labelled 'cmargin_optimize
WHAT TO TEST NEXT for YOUR project: every candidate change Margin can name, ranked, each labelled by its basis: measured (a face-off ran and gave a verdict), detected, prior, or untested. A listed move is a candidate, not a verdict; the vermargin_faceoff_status
YOUR project's latest measured run, every face-off queued against it with its status and verdict, and the post-merge watch on each change you registered (holding, slipped, or still waiting for graded outcomes). Pull requests open from the cmargin_test_move
Ask Margin to TEST one move on YOUR project: a cheaper model, an output cap or a host pin, exactly as a move listed by margin_optimize (pass its level, target and lever). Margin re-runs your own evals with the move applied, in its sandbox,margin_test_model
Ask Margin to face off ONE model you name (an OpenRouter slug such as openai/gpt-4.1-mini, or a release from this week) against YOUR project's latest measured run, on your own evals, in Margin's sandbox. Optionally name one `agent` to swapmargin_delegate_key
Hand a narrower agent key to another agent: a boss agent to a department agent, a department agent to one agent. Pass a spend limit (taken out of YOUR key's limit), an optional label, an optional list of agent files it may test (inside yourmargin_my_keys
YOUR agent key: its spend limit, how much is reserved, which agents it covers, and the keys it has handed out to other agents. Needs an agent key.margin_fit_check
Before spending anything: can YOUR eval set prove a model switch? Pass the export's text (a promptfoo results file, a Braintrust or LangSmith dataset export, or JSONL of {input or messages, expected, check}). Returns how many cases Margin cmargin_replay_dataset
Replay YOUR eval dataset against a candidate model, with no repo run: each case goes to `baseline` and `candidate` with the same messages (and the same structured-output schema, when the case has one), is graded by the case's own check, andmargin_check_experiments
Did this change help or hurt, and is it proven? Compares two experiments your team ALREADY ran and scored (Braintrust export or experiment id): the model in use vs a cheaper model, an old prompt vs a new one, or the same setup last week vsmargin_report_outcome
After a change Margin gave a verdict on has shipped (or did not ship): record what happened. `verdict_id` is the one the replay or check returned; `outcome` is held, regressed or not_shipped; `note` says how you know (an incident, a metric,margin_change_record
One verdict as a change record you can attach to your customer's change notice: what changed, the decision, the cases and the gap with its 95% bound, each segment's reading, the cases that got worse, cost per case, what the record does notmargin_verdict_receipt
One verdict as a receipt someone outside your team can check: an in-toto Statement in a DSSE envelope (`receipt`), signed by Margin with Ed25519 when `signed` is true, with the decoded `statement` beside it. It carries the decision, the barmargin_track_record
Margin's verdicts for your project and how they turned out: how many said ship, do not ship or not enough evidence, and of the ship verdicts your team reported on, how many held. Unreported ones are pending, never counted as held. Free.margin_draft_checks
When the fit check says your cases cannot be graded (free-text answers, common for support, ops and finance agents): pass what the agent is for (`task`, with its rules written out, e.g. 'never offer a coupon') and up to 20 real outputs (`samargin_pin_drift_check
Watch one setup for quality drift (a provider changing a model under its name, your retrieval or tools moving): pin your eval cases (`dataset`, the export's text) and a `model`, at a `cadence` of daily or weekly. Each run replays the cases
Ce que fait le test : il ouvre une session MCP (initialize) et demande la liste des outils (tools/list), sans clé ni compte. Aucun outil n’est appelé. En savoir plus
Avis
Pas encore d’avis.
Connectez-vous pour donner votre avis. Il suffit de votre e-mail.
Commentaires
Pas encore de commentaire. Une question, une astuce ? Lancez la discussion.
Connectez-vous pour commenter.
C’est votre projet ? Connectez-vous pour revendiquer la fiche.
Badge pour votre README
Montrez que votre projet est référencé (et testé, s’il répond) : collez ce code dans votre README. Le badge suit le dernier test et renvoie vers cette fiche.
Markdown (GitHub)
[](https://lagora.dev/fiche/io.trymargin/margin)HTML
<a href="https://lagora.dev/fiche/io.trymargin/margin"><img src="https://lagora.dev/badge/io.trymargin/margin.svg" alt="io.trymargin/margin sur L’Agora" height="20"></a>Réservé à l’auteur de la fiche : connectez-vous pour continuer.