Agent Metering
io.github.jdhart81/agent-metering
Serveur MCP OK 11 outils
Usage metering + SLA accounting for agent services (the meter behind x402 micropayments).
Fiche technique
- Auteur
- jdhart81 (espace de noms du registre)
- Dépôt
- github.com/jdhart81/viridis-agent-fleet
- Site
- github.com/jdhart81/viridis-agent-fleet/blob/main/docs/servers/agent-metering.md
- Version
- 0.2.1
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://mcp.viridisconservation.com/metering/mcp Streamable HTTP
- Outils
- 11
- Catégories
- IA, agents et mémoire, Finance et paiement
- Dernière mise à jour
- 16 nov. 2026
- Publication
- 16 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.jdhart81/agent-metering)<a href="https://latlas.dev/mcp/io.github.jdhart81/agent-metering"><img src="https://latlas.dev/badge/fiche/io.github.jdhart81/agent-metering.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://mcp.viridisconservation.com/metering/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:37
- Temps de réponse
- 652 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- agent-metering-agent 0.2.1
- Outils
- 11
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:37 | OK | 652 ms | 11 |
Outils exposés (11, réponse à tools/list, 28 nov. 2026)
create_meter
Create meter
Create a usage meter between a provider and a consumer agent. unit: what is being counted (call, token, kwh, ...). Price is in minor currency units (cents) per unit. Returns the meter_id.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| provider | string | oui | Agent id of the party providing the service. |
| consumer | string | oui | Agent id of the party consuming it. |
| unit | string | oui | What is counted, for example call, token or kwh. |
| price_minor_per_unit | number | oui | Price per unit in minor units (cents). |
| currency | string | non | ISO 4217 currency code, for example USD. |
| sla_target | number | non | Target success rate between 0 and 1. Default 0.99. |
record_usage
Record usage
Record a usage event. Idempotent on event_id (safe to retry — never double-billed). outcome is 'ok' or 'error' and feeds the SLA report.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
| event_id | string | oui | Your id for this usage event; recording it again never double-bills. |
| quantity | number | oui | Units used in this event. |
| outcome | string | non | ok or error. Feeds the SLA report. |
| metadata | object | null | non | Optional. Extra key-value data stored with the record. |
usage_summary
Usage summary
Totals for a meter: event count, total quantity, accrued minor units.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
sla_report
Sla report
Pure SLA report: success_rate vs sla_target, breach flag. No mutation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
close_period
Close period
Freeze all open events into an immutable invoice (exactly-once). The invoice amount is what agent-escrow-agent should settle.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
verify_chain
Verify chain
Verify the tamper-evident event hash chain for a meter.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
list_meters
List meters
List all meters with event/invoice counts.
Aucun paramètre.
list_events
List events
Read usage events (paginated, read-only). Filter by meter, provider, consumer_class (internal|external|unknown), channel, outcome (ok|error), and ISO date range [since, until). Test-flagged events are excluded unless include_test=true. Returns events + next_cursor.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | null | non | The meter id returned by create_meter. |
| provider | string | null | non | Agent id of the party providing the service. |
| consumer_class | string | null | non | Optional filter: internal, external or unknown. |
| channel | string | null | non | Optional filter: the channel the events came through. |
| outcome | string | null | non | ok or error. Feeds the SLA report. |
| since | string | null | non | Optional. ISO-8601 timestamp: only items at or after this time. |
| until | string | null | non | Optional. ISO-8601 timestamp: only items before this time. |
| include_test | boolean | non | Optional. Include events from meters flagged as test. Default false. |
| limit | integer | non | Optional. The most items to return. |
| cursor | string | null | non | Optional. The cursor from your previous answer, to fetch the next page. |
usage_timeseries
Usage timeseries
Usage time series bucketed on each event's recorded_at (UTC; bucket=day|hour), grouped across meters by provider — a real time-series primitive, independent of meter creation times. Includes per-bucket breakdowns by consumer_class / channel / provider. est_accrued_minor is an estimate; authoritative billing stays with usage_summary.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| bucket | string | non | day or hour. |
| provider | string | null | non | Agent id of the party providing the service. |
| meter_id | string | null | non | The meter id returned by create_meter. |
| consumer_class | string | null | non | Optional filter: internal, external or unknown. |
| channel | string | null | non | Optional filter: the channel the events came through. |
| since | string | null | non | Optional. ISO-8601 timestamp: only items at or after this time. |
| until | string | null | non | Optional. ISO-8601 timestamp: only items before this time. |
| include_test | boolean | non | Optional. Include events from meters flagged as test. Default false. |
flag_meter
Flag meter
Admin: flag/unflag a meter as test/synthetic so its events are excluded from usage statistics by default. Touches meter metadata only — never events, never the hash chain, never billing accruals. Requires the server's VIRIDIS_ADMIN_TOKEN.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| meter_id | string | oui | The meter id returned by create_meter. |
| is_test | boolean | oui | True to flag the meter as test traffic, false to clear it. |
| admin_token | string | oui | The server's admin token. Required for this admin action. |
| note | string | non | Optional. Why the flag changed. |
describe_agent
Describe this service
Describe this agent: name, version, purpose, every action it supports and the inputs each one takes. Read-only and free; call it first to learn how to use this server.
Aucun paramètre.
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://mcp.viridisconservation.com/metering/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http agent-metering https://mcp.viridisconservation.com/metering/mcpCustomize > Connectors > + Add > Add custom connector ; Name : agent-metering ; URL : https://mcp.viridisconservation.com/metering/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : agent-metering ; Server URL : https://mcp.viridisconservation.com/metering/mcp ; Create as a plugin{
"mcpServers": {
"agent-metering": {
"url": "https://mcp.viridisconservation.com/metering/mcp"
}
}
}{
"mcpServers": {
"agent-metering": {
"type": "http",
"url": "https://mcp.viridisconservation.com/metering/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"agent-metering": {
"url": "https://mcp.viridisconservation.com/metering/mcp"
}
}
}{
"mcpServers": {
"agent-metering": {
"httpUrl": "https://mcp.viridisconservation.com/metering/mcp"
}
}
}[mcp_servers.agent-metering]
url = "https://mcp.viridisconservation.com/metering/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Agent Metering · L’Atlas · Test du
[Agent Metering — L’Atlas](https://latlas.dev/mcp/io.github.jdhart81/agent-metering)Source : Registre officiel MCP · relevé le 1 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.