Skip to content

Commit 9010620

Browse files
committed
j
1 parent 1377fb6 commit 9010620

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
▶️ **Runnable full-cycle demo** (read-only, no keys): `npx tsx examples/full-cycle.ts` — live against Base: treasury state → risk regime → attestation verified offline → invest calldata → JIT redemption calldata. [Source](examples/full-cycle.ts).
2424

25-
🌐 **Hosted MCP (Streamable HTTP, no install):** `https://gblin-mcp.gblin-mcp-worker.workers.dev/mcp` — 6 free read-only tools (live risk regime, attestation sample, agent-economy stats, protocol info, and the **Coherence Proof** report), also on [Smithery](https://smithery.ai/servers/gblin-protocol/mcp). Source in [`worker/`](worker/).
25+
🌐 **Hosted MCP (Streamable HTTP, no install):** `https://gblin-mcp.gblin-mcp-worker.workers.dev/mcp`**8 free tools**, no auth, no session: `get_market_risk_regime`, `get_attestation_sample`, `get_agent_economy_stats`, `get_protocol_info`, `get_coherence_report`, plus AI Action Receipts (`seal_action` demo 5/day/IP, `get_receipt`, `verify_receipt` — pure-math verification, no trust in this server). Docs are **MCP resources**, not tools: `gblin://howto/attestation`, `gblin://howto/seal`, `gblin://limits`, `gblin://keys` (verifier keys + key-rotation policy). Nothing is paid over MCP.
26+
> **GET-only audit** (for reviewers and clients that cannot POST): [`/meta`](https://gblin-mcp.gblin-mcp-worker.workers.dev/meta) (counts + `manifest_hash`) · [`/tools.json`](https://gblin-mcp.gblin-mcp-worker.workers.dev/tools.json) · [`/resources.json`](https://gblin-mcp.gblin-mcp-worker.workers.dev/resources.json) · [`/conformance`](https://gblin-mcp.gblin-mcp-worker.workers.dev/conformance) · [`/v1/verify/:index`](https://gblin-mcp.gblin-mcp-worker.workers.dev/v1/verify/0) (per-check booleans + on-chain anchor consistency).
27+
> This hosted surface is **deliberately different** from the npm stdio package below (13 tools, treasury/governance included). Also on [Smithery](https://smithery.ai/servers/gblin-protocol/mcp). Source in [`worker/`](worker/).
2628
2729
---
2830

@@ -167,7 +169,7 @@ Add to `claude_desktop_config.json` (on Windows: `%APPDATA%\Claude\claude_deskto
167169
}
168170
```
169171

170-
Restart Claude Desktop. The 10 GBLIN tools appear in the tool picker.
172+
Restart Claude Desktop. The 13 GBLIN tools appear in the tool picker.
171173

172174
### Windsurf / Cursor
173175

@@ -224,7 +226,7 @@ Also supports Cline, Continue.dev, and any agent that implements the MCP client
224226

225227
---
226228

227-
## The 10 tools
229+
## The 13 tools (npm stdio package)
228230

229231
### Free tools (no payment required)
230232

@@ -348,7 +350,7 @@ src/
348350
client.ts # viem PublicClient + on-chain timestamp helper
349351
helpers.ts # NAV, basket state, slippage, cooldown, reverse quote
350352
keeper.ts # keeper bounty finder (incentivizedRebalance math)
351-
tools.ts # the 10 tool implementations + zod schemas
353+
tools.ts # the 10 treasury tool implementations + zod schemas (receipts.ts adds 3)
352354
index.ts # MCP stdio server entry
353355
scripts/
354356
test.ts # live smoke test

worker/src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const FALLBACK_RPCS = [
4444
];
4545
const SITE = "https://gblin.digital";
4646
const SUPPORTED_PROTOCOLS = ["2025-06-18", "2025-03-26", "2024-11-05"];
47-
const SERVER_INFO = { name: "gblin-mcp-http", version: "0.3.1" };
47+
const SERVER_INFO = { name: "gblin-mcp-http", version: "0.3.2" };
4848

4949
// ── Tools ───────────────────────────────────────────────────────────────────
5050

@@ -953,7 +953,10 @@ const SURFACE_META = {
953953
transport: "streamable-http (stateless, no auth)",
954954
tool_count: 8,
955955
paid_over_mcp: false,
956-
sibling_package: { name: "@gblin-protocol/mcp-server", transport: "stdio (npm)", tool_count: 10, note: "different tool set: treasury/swap/governance tools; only get_market_risk_regime is shared" },
956+
sibling_package: {
957+
name: "@gblin-protocol/mcp-server", version: "0.3.0", transport: "stdio (npm)", tool_count: 13,
958+
note: "Different, larger tool set: the 10 treasury/governance tools (get_treasury_state, quote_safe_swap, swap_gblin_to_usdc_jit, invest_usdc_to_gblin, analyze_treasury_health, get_governance_state, share_skill_with_peer, find_keeper_bounty, verify_risk_attestation) plus get_market_risk_regime, and 3 receipts tools (seal_action_demo, get_receipt, how_to_seal_paid). Only get_market_risk_regime and get_receipt behave identically here; this hosted server adds verify_receipt and the GET audit surface.",
959+
},
957960
resources: ["gblin://howto/attestation", "gblin://howto/seal", "gblin://limits", "gblin://keys"],
958961
get_audit_urls: { meta: "/meta", tools: "/tools.json", resources: "/resources.json", conformance: "/conformance", verify: "/v1/verify/:index" },
959962
};

0 commit comments

Comments
 (0)