@codespar/mcp-dock 0.2.0-alpha.1 → 0.2.0-alpha.3

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/README.md CHANGED
@@ -73,20 +73,30 @@ Add to `.cursor/mcp.json` or `.vscode/mcp.json`:
73
73
  }
74
74
  ```
75
75
 
76
- ## Tools
77
-
78
- | Tool | Description |
79
- |------|-------------|
80
- | `create_account` | Open a digital account for an end user |
81
- | `get_account` | Retrieve account balance, status, coordinates |
82
- | `send_pix` | Outbound Pix transfer from a Dock account |
83
- | `get_pix` | Retrieve Pix payment by endToEndId |
84
- | `create_pix_qr_static` | Reusable Pix QR (points-of-sale, donations) |
85
- | `create_pix_qr_dynamic` | Single-use expiring Pix QR (e-commerce checkouts) |
86
- | `refund_pix` | Refund (devolução) a Pix payment |
87
- | `resolve_dict_key` | DICT lookup resolve Pix key to account holder |
88
- | `issue_card` | Issue debit / credit / prepaid / virtual card Dock's differentiator |
89
- | `get_card` | Retrieve card status, masked PAN, limits |
76
+ ## Tools (20)
77
+
78
+ | Tool | Purpose |
79
+ |---|---|
80
+ | `create_account` | Create a digital account for an end user (CPF holder) on Dock. |
81
+ | `get_account` | Retrieve a Dock account by id. |
82
+ | `send_pix` | Initiate an outbound Pix transfer from a Dock account to any Pix key in BR. |
83
+ | `get_pix` | Retrieve an outbound Pix payment by endToEndId. |
84
+ | `create_pix_qr_static` | Create a static Pix QR (reusable, tied to a merchant Pix key). |
85
+ | `create_pix_qr_dynamic` | Create a dynamic Pix QR (single-use, expiring). |
86
+ | `refund_pix` | Refund (devolução) a Pix payment. |
87
+ | `resolve_dict_key` | Resolve a Pix DICT key to the account holder's identity and ISPB/branch/account. |
88
+ | `issue_card` | Issue a card (debit / credit / prepaid / virtual) against a Dock account. |
89
+ | `get_card` | Retrieve a card by id. |
90
+ | `list_accounts` | List Dock accounts under the merchant. |
91
+ | `freeze_account` | Freeze (block) a Dock account. |
92
+ | `unfreeze_account` | Unfreeze a previously frozen Dock account, restoring Pix and card operations. |
93
+ | `block_card` | Block a card temporarily (reversible). |
94
+ | `unblock_card` | Unblock a card that was previously blocked (reversible). |
95
+ | `change_card_status` | Change a card's lifecycle status: ACTIVE / BLOCKED / CANCELED. |
96
+ | `list_transactions` | List transactions on a Dock account (Pix in/out, card auths, fees, transfers). |
97
+ | `get_transaction` | Retrieve a single transaction by id. |
98
+ | `create_webhook` | Register a webhook endpoint to receive Dock event notifications (account.*, pix.*, card.*, transaction.*). |
99
+ | `list_webhooks` | List all webhook endpoints registered for the merchant. |
90
100
 
91
101
  ## Authentication
92
102
 
@@ -133,13 +143,13 @@ PR welcome from anyone with a Dock sandbox.
133
143
  - TED / bank transfers (non-Pix rails)
134
144
  - Credit underwriting endpoints (Dock's credit stack)
135
145
 
136
- Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-brasil) or [request a tool](https://github.com/codespar/mcp-dev-brasil/issues).
146
+ Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-latam) or [request a tool](https://github.com/codespar/mcp-dev-latam/issues).
137
147
 
138
148
  ## Links
139
149
 
140
150
  - [Dock](https://www.dock.tech)
141
151
  - [Dock Developers](https://developers.dock.tech) (gated — requires merchant login)
142
- - [MCP Dev Brasil](https://github.com/codespar/mcp-dev-brasil)
152
+ - [MCP Dev LATAM](https://github.com/codespar/mcp-dev-latam)
143
153
  - [Landing Page](https://codespar.dev/mcp)
144
154
 
145
155
  ## Enterprise
package/dist/index.js CHANGED
@@ -109,7 +109,10 @@ async function dockRequest(method, path, body) {
109
109
  const text = await res.text();
110
110
  return text ? JSON.parse(text) : {};
111
111
  }
112
- const server = new Server({ name: "mcp-dock", version: "0.2.0" }, { capabilities: { tools: {} } });
112
+ // Managed-tier pointer surfaced to the agent via MCP `instructions`.
113
+ // Informational only — nothing CodeSpar-hosted is called (MIT-safe).
114
+ const MANAGED_TIER_HINT = "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
115
+ const server = new Server({ name: "mcp-dock", version: "0.2.0" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
113
116
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
114
117
  tools: [
115
118
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codespar/mcp-dock",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.3",
4
4
  "description": "MCP server for Dock — Brazilian Banking-as-a-Service (accounts, Pix, card issuing) for fintechs and embedded-finance products",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/server.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.codespar/mcp-dock",
4
- "description": "MCP server for Dock — Brazilian Banking-as-a-Service (accounts, Pix, card issuing) for fintechs and embedded-finance products",
4
+ "description": "MCP server for Dock — Brazilian Banking-as-a-Service: accounts, Pix, card issuing for fintechs",
5
5
  "repository": {
6
- "url": "https://github.com/codespar/mcp-dev-brasil",
6
+ "url": "https://github.com/codespar/mcp-dev-latam",
7
7
  "source": "github",
8
8
  "subfolder": "packages/banking/dock"
9
9
  },
10
- "version": "0.2.0-alpha.1",
10
+ "version": "0.2.0-alpha.3",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "@codespar/mcp-dock",
15
- "version": "0.2.0-alpha.1",
15
+ "version": "0.2.0-alpha.3",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },
@@ -40,5 +40,14 @@
40
40
  }
41
41
  ]
42
42
  }
43
- ]
43
+ ],
44
+ "provider": {
45
+ "homepage": "https://www.dock.tech",
46
+ "logoUrl": "https://logo.clearbit.com/dock.tech",
47
+ "logoFallback": "https://www.google.com/s2/favicons?domain=dock.tech&sz=128",
48
+ "docsUrl": "https://docs.dock.tech",
49
+ "sandbox": {
50
+ "available": true
51
+ }
52
+ }
44
53
  }
package/src/index.ts CHANGED
@@ -118,9 +118,14 @@ async function dockRequest(method: string, path: string, body?: unknown): Promis
118
118
  return text ? JSON.parse(text) : {};
119
119
  }
120
120
 
121
+ // Managed-tier pointer surfaced to the agent via MCP `instructions`.
122
+ // Informational only — nothing CodeSpar-hosted is called (MIT-safe).
123
+ const MANAGED_TIER_HINT =
124
+ "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
125
+
121
126
  const server = new Server(
122
127
  { name: "mcp-dock", version: "0.2.0" },
123
- { capabilities: { tools: {} } },
128
+ { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT },
124
129
  );
125
130
 
126
131
  server.setRequestHandler(ListToolsRequestSchema, async () => ({