-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-context-api.html
More file actions
67 lines (67 loc) · 6.08 KB
/
Copy pathagent-context-api.html
File metadata and controls
67 lines (67 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Agent Context API — maintained x402 tools for coding agents</title>
<meta name="description" content="Use a maintained API for context preflight, secret redaction, agent-work evidence, and fresh Base market data. Open source and self-hostable; pay only for operated results.">
<link rel="canonical" href="https://dacode-dev.github.io/agent-context-api.html">
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"SoftwareApplication",
"name":"Agent Context API",
"applicationCategory":"DeveloperApplication",
"operatingSystem":"Any",
"url":"https://dacode-dev.github.io/agent-context-api.html",
"isAccessibleForFree":true,
"offers":{"@type":"Offer","price":"0.005","priceCurrency":"USD","description":"Per-request x402 pricing for the operated context-preflight route"}
}
</script>
<style>
:root { --bg:#0b0d10; --card:#14171c; --text:#e8eaed; --muted:#9aa0a6; --accent:#6ee7b7; --border:#262a30; --code:#0e1013; }
@media (prefers-color-scheme:light) { :root { --bg:#f7f7f8; --card:#fff; --text:#16181c; --muted:#5f6368; --accent:#047857; --border:#e2e4e8; --code:#f1f2f4; } }
* { box-sizing:border-box; } body { margin:0; padding:42px 20px; background:var(--bg); color:var(--text); font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif; }
.card { max-width:780px; margin:auto; padding:38px; background:var(--card); border:1px solid var(--border); border-radius:16px; }
h1 { margin:0 0 10px; font-size:2rem; line-height:1.2; } h2 { margin:30px 0 10px; font-size:1.2rem; } p { margin:0 0 16px; } .muted { color:var(--muted); }
a { color:var(--accent); } .actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 28px; } .button { display:inline-block; padding:9px 14px; border:1px solid var(--accent); border-radius:8px; text-decoration:none; } .button.primary { background:var(--accent); color:#06251a; font-weight:700; }
table { width:100%; border-collapse:collapse; margin:12px 0 20px; font-size:.92rem; } th,td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--border); vertical-align:top; } th { color:var(--muted); }
pre { overflow:auto; padding:14px; background:var(--code); border:1px solid var(--border); border-radius:9px; font-size:.84rem; } code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; } .note { margin-top:26px; padding-top:18px; border-top:1px solid var(--border); color:var(--muted); font-size:.9rem; }
</style>
</head>
<body>
<main class="card">
<p class="muted">dacode-dev / developer tools</p>
<h1>Agent Context API</h1>
<p class="muted">Small, machine-readable tools for agents that need to make a decision before spending tokens, time, or money.</p>
<div class="actions">
<a class="button primary" href="https://agent-context-api-proxy.agent-context-proxy.workers.dev/">View live API</a>
<a class="button" href="https://github.com/dacode-dev/agent-context-api">Read the source</a>
<a class="button" href="https://agent-context-api-proxy.agent-context-proxy.workers.dev/.well-known/x402">View x402 manifest</a>
<a class="button" href="https://agent-context-api-proxy.agent-context-proxy.workers.dev/mcp">Hosted MCP endpoint</a>
<a class="button" href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.dacode-dev%2Fagent-context-api">Official MCP Registry</a>
</div>
<h2>Available routes</h2>
<table>
<thead><tr><th>Route</th><th>Use</th><th>Price</th></tr></thead>
<tbody>
<tr><td><code>POST /v1/context-preflight</code></td><td>Count tokens, apply a model budget, and redact likely credentials locally.</td><td>$0.005</td></tr>
<tr><td><code>POST /v1/agent-work-brief</code></td><td>Filter live work by canonical escrow evidence, reward, and capital requirements.</td><td>$0.03</td></tr>
<tr><td><code>POST /v1/bounty-radar</code></td><td>Normalize work listings and label funded versus unverified signals.</td><td>$0.01</td></tr>
<tr><td><code>GET /v1/base-market-pulse</code></td><td>Return timestamped ETH, Base, and DEX signals with per-source health.</td><td>$0.01</td></tr>
<tr><td><code>POST /mcp</code></td><td>Connect from an MCP client; local preflight is free up to 12,000 characters, with a paid HTTP upgrade for larger context.</td><td>Free / $0.005 upgrade</td></tr>
</tbody>
</table>
<h2>Why pay if the code is public?</h2>
<p>You do not have to. The repository is open and self-hosting is supported. The hosted charge is for the operated result: upstream polling, normalization, bounded probes, source-health reporting, schema repairs, and a ready HTTPS endpoint. A fork transfers those operating costs to you; it does not create an exclusive data advantage.</p>
<p>Payments use x402 on Base USDC. An unpaid request returns the machine-readable payment requirements; there is no account or subscription flow.</p>
<p>The hosted MCP endpoint is stateless Streamable HTTP for clients such as Claude, Cursor, and other MCP-compatible agents. The public <a href="https://github.com/dacode-dev/agent-context-api/blob/main/server.json">server descriptor</a> documents the endpoint, and the server is published in the <a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.dacode-dev%2Fagent-context-api">official MCP Registry</a>; local stdio self-hosting remains available.</p>
<h2>Try it</h2>
<pre><code>curl -X POST https://agent-context-api-proxy.agent-context-proxy.workers.dev/v1/context-preflight \
-H 'content-type: application/json' \
-d '{"text":"const token = \"sk-example\";", "model":"claude-sonnet", "token_budget":1000}'</code></pre>
<p class="note">The stable public endpoint is a free Cloudflare Worker proxy over the operated origin. The origin tunnel may rotate internally without changing the buyer URL; for durable use, self-host from the <a href="https://github.com/dacode-dev/agent-context-api">public repository</a>. No revenue is claimed until a settled payment is independently recorded.</p>
<p class="muted"><a href="https://dacode-dev.github.io/">Back to dacode-dev</a></p>
</main>
</body>
</html>