@agentdomain/mcp-server 0.6.0 → 0.8.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/NOTICE +5 -0
- package/README.md +81 -68
- package/dist/index.d.ts +4 -2
- package/dist/index.js +444 -526
- package/package.json +28 -7
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -2,51 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
[Model Context Protocol](https://modelcontextprotocol.io) server for AgentDomain.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- `send_agent_email_batch` - queue up to 100 email objects in one API request
|
|
19
|
-
- `list_agent_email` - read agent inbox/outbox messages
|
|
20
|
-
- `get_agent_email_usage` - inspect combined monthly sent and received usage
|
|
21
|
-
- `configure_email_webhook` - configure a signed inbound email webhook
|
|
22
|
-
- `update_primary_email` - change the included primary email username
|
|
23
|
-
- `create_email_alias` - create a Starter/Pro/Enterprise receive-and-send email alias
|
|
24
|
-
- `delete_email_alias` - delete an active email alias
|
|
25
|
-
- `list_dns_records` - list DNS records for an agent domain
|
|
26
|
-
- `create_dns_record` - create a user-managed DNS record
|
|
27
|
-
- `update_dns_record` - update a user-managed DNS record
|
|
28
|
-
- `delete_dns_record` - delete a user-managed DNS record
|
|
29
|
-
- `get_dns_capabilities` - discover all 13 Spaceship-supported types and validation constraints
|
|
30
|
-
- `change_dns_records` - preview or apply a revision-protected merge/replace batch
|
|
31
|
-
- `import_dns_zone` - preview or apply a standard BIND zone import
|
|
32
|
-
- `export_dns_zone` - export user-managed or permitted complete-zone records as BIND
|
|
33
|
-
- `reconfigure_ssl` - rebuild Cloudflare SaaS SSL and DNS validation records
|
|
34
|
-
- `fund_renewal_vault` - top up an agent's renewal vault
|
|
35
|
-
- `withdraw_renewal_vault` - build an owner-signed vault withdrawal transaction
|
|
36
|
-
- `get_renewal_status` - check renewal date, amount, vault balance, and auto-renew state
|
|
37
|
-
- `enable_auto_renew` - enable on-chain auto-renew with the AgentID NFT owner wallet
|
|
38
|
-
- `get_service_plan` - inspect per-agent Included/Starter/Pro/Enterprise limits
|
|
39
|
-
- `purchase_service_plan` - upgrade to Starter, Pro, or Enterprise with x402 USDC
|
|
40
|
-
|
|
41
|
-
## Install
|
|
5
|
+
It lets MCP-compatible clients discover and manage agent identities through the
|
|
6
|
+
[AgentDomain API](https://api.agentdomain.app/api/v1).
|
|
7
|
+
|
|
8
|
+
The server requires Node.js 20 or newer and communicates over standard input
|
|
9
|
+
and output. It does not open a public listener.
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx -y @agentdomain/mcp-server
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For a persistent installation:
|
|
42
18
|
|
|
43
19
|
```bash
|
|
44
20
|
npm install -g @agentdomain/mcp-server
|
|
21
|
+
agentdomain-mcp
|
|
45
22
|
```
|
|
46
23
|
|
|
47
|
-
##
|
|
24
|
+
## Default tools
|
|
25
|
+
|
|
26
|
+
The server starts in read-only mode. It advertises only tools that inspect public
|
|
27
|
+
or authorized account state:
|
|
28
|
+
|
|
29
|
+
- `check_domain_availability` and `quote_registration`
|
|
30
|
+
- `lookup_agent`, `get_agent`, and `search_agents`
|
|
31
|
+
- `list_agent_email` and `get_agent_email_usage`
|
|
32
|
+
- `get_dns_capabilities`, `list_dns_records`, and `export_dns_zone`
|
|
33
|
+
- `get_renewal_status` and `get_service_plan`
|
|
48
34
|
|
|
49
|
-
|
|
35
|
+
An API key may authorize additional reads, but merely supplying one never enables
|
|
36
|
+
mutation tools.
|
|
37
|
+
|
|
38
|
+
## Read-only configuration
|
|
39
|
+
|
|
40
|
+
Start without a signing credential for discovery, lookup, search, and other
|
|
41
|
+
read-only operations. For example:
|
|
50
42
|
|
|
51
43
|
```json
|
|
52
44
|
{
|
|
@@ -55,49 +47,70 @@ npm install -g @agentdomain/mcp-server
|
|
|
55
47
|
"command": "npx",
|
|
56
48
|
"args": ["-y", "@agentdomain/mcp-server"],
|
|
57
49
|
"env": {
|
|
58
|
-
"AGENTDOMAIN_API_URL": "https://agentdomain.app/api/v1"
|
|
59
|
-
"AGENT_PRIVATE_KEY": "0x...",
|
|
60
|
-
"AGENTDOMAIN_NETWORK": "base",
|
|
61
|
-
"RENEWAL_VAULT_ADDRESS": "0x..."
|
|
50
|
+
"AGENTDOMAIN_API_URL": "https://api.agentdomain.app/api/v1"
|
|
62
51
|
}
|
|
63
52
|
}
|
|
64
53
|
}
|
|
65
54
|
}
|
|
66
55
|
```
|
|
67
56
|
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
This remains read-only even if the MCP process receives an ambient API key or
|
|
58
|
+
wallet credential.
|
|
59
|
+
|
|
60
|
+
## Enabling write tools
|
|
61
|
+
|
|
62
|
+
Write tools are omitted from discovery and blocked at dispatch unless
|
|
63
|
+
`AGENTDOMAIN_ENABLE_WRITE_TOOLS` is set to the exact value `true`. Unset or exact
|
|
64
|
+
`false` keeps read-only mode. Empty, mixed-case, numeric, whitespace-padded, or
|
|
65
|
+
otherwise malformed values stop startup rather than guessing intent.
|
|
70
66
|
|
|
71
|
-
|
|
67
|
+
The opt-in exposes registration, email sending/configuration, email deletion,
|
|
68
|
+
DNS mutations, SSL reconfiguration, renewal funding/withdrawal/automation, plan
|
|
69
|
+
purchases/scheduling, and registry-visibility changes. Configure the nonsecret
|
|
70
|
+
opt-in in the MCP process environment, then inject only the narrowly scoped API
|
|
71
|
+
or signing credential required by the selected operation through a trusted
|
|
72
|
+
secret-aware launcher. Do not place either credential in MCP client JSON.
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
platform fee. Email setup, SSL certification, DNS orchestration, and AgentID NFT
|
|
75
|
-
mint/orchestration are included in that platform fee.
|
|
74
|
+
## Signing credentials
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
Supply `AGENT_PRIVATE_KEY` only when an enabled operation requires a wallet
|
|
77
|
+
signature. Inject it through a trusted external secret store or secret-aware
|
|
78
|
+
launcher; never paste it into client JSON, source code, shell history, logs, or a
|
|
79
|
+
repository. Use a dedicated wallet with only the authority and funds required
|
|
80
|
+
for the intended operation.
|
|
78
81
|
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
- `premiumPlan: "included" | "starter" | "pro" | "enterprise"` selects the per-agent plan at registration.
|
|
82
|
+
Owner-authorized renewal changes require the AgentID NFT owner wallet. Paid plan
|
|
83
|
+
purchases likewise require an authorized wallet with sufficient USDC. An
|
|
84
|
+
agent-scoped API key can call its permitted endpoints but cannot sign wallet
|
|
85
|
+
transactions.
|
|
84
86
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
`AGENTDOMAIN_BUILDER_CODE` is the public ERC-8021 application identifier used to
|
|
88
|
+
attribute supported Base transactions. It accepts 1-32 lowercase letters,
|
|
89
|
+
numbers, or underscores and is needed only by tools that explicitly require it.
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
shortfall to fund before the keeper can reserve and complete the renewal.
|
|
91
|
+
## Pricing options
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Registration pricing includes the live domain price and the AgentDomain platform
|
|
94
|
+
fee. Email setup, SSL certification, DNS orchestration, and AgentID NFT
|
|
95
|
+
orchestration are included unless the API response states otherwise.
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
Optional settings include:
|
|
98
|
+
|
|
99
|
+
- `registerBasename: false` to skip Basename
|
|
100
|
+
- `registerEns: false` to skip ENS
|
|
101
|
+
- `emailUsername` to customize the primary inbox local part
|
|
102
|
+
- `premiumPlan: "included" | "starter" | "pro" | "enterprise"` to select a plan
|
|
103
|
+
|
|
104
|
+
Use `quote_registration` before signing a payment. Treat the returned quote,
|
|
105
|
+
limits, expiry, and renewal amount as authoritative for that request.
|
|
99
106
|
|
|
100
107
|
## License
|
|
101
108
|
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
Published package releases are licensed under Apache-2.0.
|
|
110
|
+
|
|
111
|
+
## Links
|
|
112
|
+
|
|
113
|
+
- [MCP guide](https://docs.agentdomain.app/sdk/mcp)
|
|
114
|
+
- [API discovery](https://api.agentdomain.app/api/v1)
|
|
115
|
+
- [Source](https://github.com/0xmdrakib/AgentDomain/tree/main/packages/mcp-server)
|
|
116
|
+
- [Security policy](https://github.com/0xmdrakib/AgentDomain/security/policy)
|
package/dist/index.d.ts
CHANGED
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* "command": "npx",
|
|
15
15
|
* "args": ["-y", "@agentdomain/mcp-server"],
|
|
16
16
|
* "env": {
|
|
17
|
-
* "AGENTDOMAIN_API_URL": "https://agentdomain.app/api/v1"
|
|
18
|
-
* "AGENT_PRIVATE_KEY": "0x..."
|
|
17
|
+
* "AGENTDOMAIN_API_URL": "https://api.agentdomain.app/api/v1"
|
|
19
18
|
* }
|
|
20
19
|
* }
|
|
21
20
|
* }
|
|
22
21
|
* }
|
|
22
|
+
*
|
|
23
|
+
* Inject optional signing credentials through a trusted external secret source,
|
|
24
|
+
* and only when a signing operation is explicitly enabled.
|
|
23
25
|
*/
|
|
24
26
|
export {};
|