@gblin-protocol/mcp-server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llms.txt ADDED
@@ -0,0 +1,52 @@
1
+ # GBLIN MCP Server
2
+
3
+ > Treasury standard for autonomous AI agents on Base mainnet. Provides
4
+ > on-chain quotes, Just-In-Time GBLIN→USDC swaps for x402 payments, and
5
+ > treasury analytics through the Model Context Protocol.
6
+
7
+ GBLIN is an algorithmic on-chain index on Base (45% cbBTC / 45% WETH / 10%
8
+ USDC) with an automated Crash Shield that reduces risk-asset exposure during
9
+ >20% drawdowns. Designed as a yielding alternative to holding pure USDC for
10
+ AI agent operating capital.
11
+
12
+ ## Why agents use GBLIN
13
+
14
+ - **Treasury yield**: holding GBLIN earns basket appreciation vs flat USDC
15
+ - **JIT compatible**: native `sellGBLINForToken(USDC)` works in a single
16
+ atomic tx on any wallet (EOA, ERC-4337, EIP-7702)
17
+ - **MEV-safe quotes**: every tool returns positive `minOut` values from
18
+ on-chain quotes + dynamic slippage (never accepts 0)
19
+ - **Oracle-verified prices**: NAV is computed from `quoteSellGBLIN` × the
20
+ Chainlink ETH/USD feed with 24h staleness guard
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ npx @gblin-protocol/mcp-server
26
+ ```
27
+
28
+ Claude Desktop config:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "gblin": { "command": "npx", "args": ["-y", "@gblin-protocol/mcp-server"] }
34
+ }
35
+ }
36
+ ```
37
+
38
+ ## Tools
39
+
40
+ 1. `get_treasury_state` — NAV, basket composition, Crash Shield status
41
+ 2. `quote_safe_swap` — preview buy/sell with dynamic slippage buffer
42
+ 3. `swap_gblin_to_usdc_jit` — generate calldata for x402 JIT payments
43
+ 4. `invest_usdc_to_gblin` — convert USDC earnings back to GBLIN treasury
44
+ 5. `analyze_treasury_health` — balances, gas, runway, rebalance advice
45
+
46
+ ## Links
47
+
48
+ - Source: https://github.com/gblinproject/GBLIN-MCP
49
+ - Docs: https://gblin.digital/agents
50
+ - Contract: https://basescan.org/address/0x38DcDB3A381677239BBc652aed9811F2f8496345
51
+ - Network: Base mainnet (chain id 8453)
52
+ - License: MIT
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@gblin-protocol/mcp-server",
3
+ "version": "0.1.0",
4
+ "description": "Model Context Protocol server for GBLIN \u2014 Treasury Standard for AI Agents on Base mainnet. Provides on-chain quotes, JIT swaps, and treasury analytics for x402-paying agents.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "gblin-mcp": "dist/index.js"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "README.md",
14
+ "LICENSE",
15
+ "llms.txt"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "start": "node dist/index.js",
20
+ "dev": "tsx src/index.ts",
21
+ "test": "tsx scripts/test.ts",
22
+ "prepublishOnly": "npm run build"
23
+ },
24
+ "keywords": [
25
+ "mcp",
26
+ "model-context-protocol",
27
+ "gblin",
28
+ "base",
29
+ "base-mainnet",
30
+ "defi",
31
+ "ai-agents",
32
+ "agent-treasury",
33
+ "x402",
34
+ "coinbase-agentkit",
35
+ "eliza",
36
+ "jit-swap",
37
+ "chainlink",
38
+ "uniswap"
39
+ ],
40
+ "author": "GBLIN Protocol",
41
+ "license": "MIT",
42
+ "homepage": "https://gblin.digital/agents",
43
+ "bugs": {
44
+ "url": "https://github.com/gblinproject/GBLIN-MCP/issues"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/gblinproject/GBLIN-MCP.git"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "dependencies": {
54
+ "@modelcontextprotocol/sdk": "^1.0.4",
55
+ "viem": "^2.21.0",
56
+ "zod": "^3.23.8"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^20.14.0",
60
+ "tsx": "^4.19.0",
61
+ "typescript": "^5.5.4"
62
+ },
63
+ "engines": {
64
+ "node": ">=20"
65
+ }
66
+ }