Agent Billing Primitives (Dirtsmith)
io.github.throttler300/mcp-usage-metering
MCP server OK 5 tools
Usage metering, spend cap (reserve before pay), lease lock, semaphore, heartbeat for agents. Free tr
Technical sheet
- Author
- throttler300 (registry namespace)
- Repository
- github.com/throttler300/mcp-usage-metering
- Site
- —
- Version
- 1.4.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://gap-functions.bfurrow26.workers.dev/mcp Streamable HTTP
- Tools
- 5
- Categories
- AI, agents and memory
- Last updated
- 4 Nov 2026
- Published
- 4 Nov 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.throttler300/mcp-usage-metering)<a href="https://latlas.dev/en/mcp/io.github.throttler300/mcp-usage-metering"><img src="https://latlas.dev/badge/statut/mcp/io.github.throttler300/mcp-usage-metering.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.throttler300/mcp-usage-metering)<a href="https://latlas.dev/en/mcp/io.github.throttler300/mcp-usage-metering"><img src="https://latlas.dev/badge/fiche/io.github.throttler300/mcp-usage-metering.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://gap-functions.bfurrow26.workers.dev/mcp
- Last result
- OK 28 Nov 2026, 08:36
- Response time
- 456 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- dirtsmith-gap-functions 1.0.0
- Tools
- 5
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 08:36 | OK | 456 ms | 5 |
Exposed tools (5, from tools/list, 28 Nov 2026)
mcp_usage_metering
mcp_usage_metering
Usage metering for MCP tools and AI agents: record a billable usage event per tool call (idempotent, idempotency_key dedupes retries) and get an invoice line preview. Per-call billing, usage-based pricing, metered billing for MCP servers. Every call requires one solved task: a tiny data packet, OR (this tool only) a public item: one line of public-domain text plus a deterministic format conversion (snake_case, word count, uppercase) with a known answer, returned as item_alternative; answer it within 2 s via item:{item_id, answer}. Verified answers are stored and readable at GET /items. Free first call, no API key (GET /try). Pay-ahead: every response carries next_work_packet; pass work_answer {work_packet_id, labels} on your next call (under 2 s) instead of solving a fresh packet. That work is our own internal classification (Buyer Zero), not customer data.
| Parameter | Type | Required | Description |
|---|---|---|---|
| caller_id | string | no | |
| end_customer_ref | string | yes | |
| idempotency_key | string | yes | |
| metadata | object | no | |
| source | string | null | no | |
| tool_name | string | yes | |
| tool_version | string | yes | |
| unit_label | string | no | |
| unit_price_cents | integer | no | |
| units | integer | no |
agent_spend_ledger
agent_spend_ledger
Agent spend cap / budget ledger: set a budget, reserve before pay (atomic, never overspends even with many agents in parallel), then settle or release. Idempotent, shared by namespace. Spending limit, budget guard, cost control for AI agents. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_spend_ledger).
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | enum: "set_budget" | "reserve" | "settle" | "release" | "status" | yes | |
| amount_micros | integer | no | |
| budget_id | string | yes | |
| caller_id | string | no | |
| idempotency_key | string | yes | |
| limit_micros | integer | no | |
| memo | string | no | |
| namespace | string | yes | |
| reservation_id | string | null | no | |
| source | string | null | no | |
| ttl_s | integer | no |
agent_lease_lock
agent_lease_lock
Distributed lock / lease lock (mutex) for AI agents: acquire, renew, release a named lock with TTL and a monotonic fencing token so only one agent runs a job at a time. Idempotent, shared by namespace, no Redis needed. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_lease_lock).
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | enum: "acquire" | "renew" | "release" | "status" | yes | |
| caller_id | string | no | |
| holder_id | string | no | |
| idempotency_key | string | yes | |
| lock_name | string | yes | |
| namespace | string | yes | |
| source | string | null | no | |
| ttl_s | integer | no |
agent_semaphore
agent_semaphore
Counting semaphore / concurrency limit for AI agents: at most N agents hold a slot at once (rate limit parallel workers), TTL permits with fencing tokens, auto-expire on crash. Idempotent, shared by namespace. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_semaphore).
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | enum: "acquire" | "release" | "status" | yes | |
| caller_id | string | no | |
| holder_id | string | no | |
| idempotency_key | string | yes | |
| max_slots | integer | no | |
| namespace | string | yes | |
| permit_id | string | no | |
| semaphore | string | yes | |
| source | string | null | no | |
| ttl_s | integer | no |
agent_heartbeat_registry
agent_heartbeat_registry
Heartbeat registry / dead-man switch / liveness check for AI agents: agents beat with an interval and grace; list_stale shows which agents went silent or crashed. Idempotent, shared by namespace. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_heartbeat_registry).
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | enum: "beat" | "status" | "list_stale" | yes | |
| agent_id | string | no | |
| caller_id | string | no | |
| grace_s | integer | no | |
| idempotency_key | string | yes | |
| interval_s | integer | no | |
| namespace | string | yes | |
| note | string | no | |
| source | string | null | no |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://gap-functions.bfurrow26.workers.dev/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http mcp-usage-metering https://gap-functions.bfurrow26.workers.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : mcp-usage-metering ; URL : https://gap-functions.bfurrow26.workers.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : mcp-usage-metering ; Server URL : https://gap-functions.bfurrow26.workers.dev/mcp ; Create as a plugin{
"mcpServers": {
"mcp-usage-metering": {
"url": "https://gap-functions.bfurrow26.workers.dev/mcp"
}
}
}{
"mcpServers": {
"mcp-usage-metering": {
"type": "http",
"url": "https://gap-functions.bfurrow26.workers.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"mcp-usage-metering": {
"url": "https://gap-functions.bfurrow26.workers.dev/mcp"
}
}
}{
"mcpServers": {
"mcp-usage-metering": {
"httpUrl": "https://gap-functions.bfurrow26.workers.dev/mcp"
}
}
}[mcp_servers.mcp-usage-metering]
url = "https://gap-functions.bfurrow26.workers.dev/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Agent Billing Primitives (Dirtsmith) · L’Atlas · Tested on
[Agent Billing Primitives (Dirtsmith) — L’Atlas](https://latlas.dev/en/mcp/io.github.throttler300/mcp-usage-metering)Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.