@arcisprotocol/mcp 0.1.3 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +30 -36
  2. package/package.json +22 -6
package/README.md CHANGED
@@ -2,54 +2,41 @@
2
2
 
3
3
  Arcis Protocol MCP Server — connect any AI agent to DeFi vaults in one tool call.
4
4
 
5
- Supports **two modes**: local (stdio) for Claude Desktop/Code, and remote (HTTP) for Claude.ai custom connectors.
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install @arcisprotocol/mcp
11
- ```
5
+ Three deployment modes: local stdio, self-hosted HTTP, and Vercel serverless.
12
6
 
13
7
  ## Mode 1: Local (Claude Desktop / Claude Code)
14
8
 
15
- Add to `~/.claude/claude_desktop_config.json`:
16
-
17
9
  ```json
18
10
  {
19
11
  "mcpServers": {
20
- "arcis": {
21
- "command": "npx",
22
- "args": ["@arcisprotocol/mcp"]
23
- }
12
+ "arcis": { "command": "npx", "args": ["@arcisprotocol/mcp"] }
24
13
  }
25
14
  }
26
15
  ```
27
16
 
28
- ## Mode 2: Remote (Claude.ai Custom Connector)
29
-
30
- Start the HTTP server:
17
+ ## Mode 2: Self-Hosted HTTP
31
18
 
32
19
  ```bash
33
- npx @arcisprotocol/mcp start:remote
34
- # or
35
- PORT=3001 node -e "import('@arcisprotocol/mcp/dist/remote.js')"
20
+ PORT=3001 npx @arcisprotocol/mcp start:remote
36
21
  ```
37
22
 
38
- Then in Claude.ai: **Settings Connectors Add Custom Connector** → paste your server URL (e.g. `https://mcp.arcis.money/mcp`).
23
+ Deploy to Railway, Render, or Fly.io for a persistent URL.
39
24
 
40
- ### Deploy to production
25
+ ## Mode 3: Vercel Serverless (Claude.ai Custom Connector)
41
26
 
42
- ```bash
43
- git clone https://github.com/Arcis-Protocol/mcp.git
44
- cd mcp && npm install && npm run build
45
- PORT=3001 node dist/remote.js
46
- ```
27
+ This repo deploys directly to Vercel as a Next.js app with Streamable HTTP transport.
28
+
29
+ 1. Import this repo at [vercel.com/new](https://vercel.com/new)
30
+ 2. Deploy — zero config needed
31
+ 3. Your MCP endpoint: `https://your-project.vercel.app/api/mcp`
32
+
33
+ Then in Claude.ai: **Settings → Connectors → Add Custom Connector** → paste the URL.
47
34
 
48
- Use a reverse proxy (nginx, Caddy) or deploy to Railway / Render / Fly.io for a persistent URL.
35
+ Uses `mcp-handler` Vercel's official MCP deployment package.
49
36
 
50
37
  ## Tools
51
38
 
52
- ### Read (no auth required)
39
+ ### Read (7 tools, no auth)
53
40
 
54
41
  | Tool | Description |
55
42
  |---|---|
@@ -59,24 +46,31 @@ Use a reverse proxy (nginx, Caddy) or deploy to Railway / Render / Fly.io for a
59
46
  | `arcis_credit_status` | Lending pool, total borrowed, utilization |
60
47
  | `arcis_credit_tiers` | ERC-8004 reputation tier table |
61
48
  | `arcis_credit_health` | Check loan health + total owed |
62
- | `arcis_contracts` | All 7 deployed contract addresses |
49
+ | `arcis_contracts` | All deployed contract addresses |
63
50
 
64
- ### Write (private key required)
51
+ ### Write (2 tools, rate-limited)
65
52
 
66
53
  | Tool | Description |
67
54
  |---|---|
68
- | `arcis_deposit` | Deposit USDC → raUSDC (auto-approval) |
55
+ | `arcis_deposit` | Deposit USDC → raUSDC (auto-approval, 60s cooldown) |
69
56
  | `arcis_withdraw` | Redeem raUSDC → USDC (supports withdraw_all) |
70
57
 
71
- ### Resources
58
+ ## Project Structure
72
59
 
73
- | URI | Description |
74
- |---|---|
75
- | `arcis://protocol-info` | Protocol overview, ATI spec, product descriptions |
60
+ ```
61
+ src/
62
+ index.ts → stdio entry (npx / Claude Desktop)
63
+ remote.ts → HTTP entry (self-hosted, PORT env)
64
+ server.ts → shared tool definitions (mcp-use)
65
+ app/
66
+ api/mcp/
67
+ route.ts → Vercel serverless (mcp-handler, Streamable HTTP)
68
+ page.tsx → Landing page at /
69
+ ```
76
70
 
77
71
  ## Network
78
72
 
79
- Currently targets Base Sepolia testnet. Mainnet addresses updated after deployment.
73
+ Base Sepolia testnet. Mainnet addresses updated after deployment.
80
74
 
81
75
  ---
82
76
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcisprotocol/mcp",
3
- "version": "0.1.3",
4
- "description": "Arcis Protocol MCP Server connect any AI agent to DeFi vaults in one tool call",
3
+ "version": "0.2.0",
4
+ "description": "Arcis Protocol MCP Server \u2014 connect any AI agent to DeFi vaults in one tool call",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
@@ -17,9 +17,19 @@
17
17
  "dev:remote": "tsx src/remote.ts",
18
18
  "start": "node dist/index.js",
19
19
  "start:remote": "node dist/remote.js",
20
- "prepublishOnly": "npm run build"
20
+ "prepublishOnly": "npm run build",
21
+ "dev:vercel": "next dev",
22
+ "build:vercel": "next build"
21
23
  },
22
- "keywords": ["arcis", "mcp", "model-context-protocol", "defi", "ai-agents", "vault", "base"],
24
+ "keywords": [
25
+ "arcis",
26
+ "mcp",
27
+ "model-context-protocol",
28
+ "defi",
29
+ "ai-agents",
30
+ "vault",
31
+ "base"
32
+ ],
23
33
  "author": "Arcis Protocol <dev@arcis.money>",
24
34
  "license": "MIT",
25
35
  "repository": {
@@ -33,12 +43,18 @@
33
43
  "dependencies": {
34
44
  "mcp-use": "^0.14.0",
35
45
  "viem": "^2.21.0",
36
- "zod": "^3.23.0"
46
+ "zod": "^3.23.0",
47
+ "mcp-handler": "^0.1.0"
37
48
  },
38
49
  "devDependencies": {
39
50
  "typescript": "^5.6.0",
40
51
  "tsup": "^8.3.0",
41
52
  "tsx": "^4.19.0",
42
53
  "@types/node": "^22.0.0"
54
+ },
55
+ "optionalDependencies": {
56
+ "next": "^15.0.0",
57
+ "react": "^19.0.0",
58
+ "react-dom": "^19.0.0"
43
59
  }
44
- }
60
+ }