@agtnames/mcp 1.0.0 → 1.0.1
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 +8 -6
- package/dist/index.js +1 -1
- package/package.json +42 -42
package/README.md
CHANGED
|
@@ -16,21 +16,23 @@ MCP server for `.agt` agent names. Resolve a name to its owner, records and **si
|
|
|
16
16
|
|
|
17
17
|
## Configure
|
|
18
18
|
|
|
19
|
+
No configuration is needed for Polygon mainnet: the registry, resolver and RPC defaults are built in (`@agtnames/resolver` 1.0.2 or later). Everything below is optional.
|
|
20
|
+
|
|
19
21
|
```
|
|
20
|
-
AGT_CHAIN=polygon # polygon | amoy | localhost
|
|
21
|
-
AGT_REGISTRY=0x… # required
|
|
22
|
-
AGT_RPC_URL=… #
|
|
23
|
-
AGT_LEGACY=1 #
|
|
22
|
+
AGT_CHAIN=polygon # polygon (default) | amoy | localhost
|
|
23
|
+
AGT_REGISTRY=0x… # override the registry (required only for localhost / a custom deployment)
|
|
24
|
+
AGT_RPC_URL=… # override the RPC endpoint
|
|
25
|
+
AGT_LEGACY=1 # Registry v1 (Freename) + DNS TXT fallbacks
|
|
24
26
|
AGT_IPFS_GATEWAY=https://dweb.link/ipfs/ # must be allow-listed
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
## Claude Code
|
|
28
30
|
|
|
29
31
|
```
|
|
30
|
-
claude mcp add agt
|
|
32
|
+
claude mcp add agt -- npx -y @agtnames/mcp
|
|
31
33
|
```
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
Any other MCP-compatible client works the same way: run `npx -y @agtnames/mcp` over stdio. From a checkout: `claude mcp add agt -- node packages/mcp/dist/index.js`; against a local testbed add `-e AGT_CHAIN=localhost -e AGT_REGISTRY=0x… -e AGT_RPC_URL=http://127.0.0.1:8545`.
|
|
34
36
|
|
|
35
37
|
## Hardening
|
|
36
38
|
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Config (env)
|
|
13
13
|
* AGT_CHAIN polygon | amoy | localhost (default: polygon)
|
|
14
14
|
* AGT_RPC_URL override RPC
|
|
15
|
-
* AGT_REGISTRY override registry address (
|
|
15
|
+
* AGT_REGISTRY override registry address (optional: polygon and amoy default to the deployed Registry v2)
|
|
16
16
|
* AGT_FNS Freename FNS address for the legacy fallback (default from chain)
|
|
17
17
|
* AGT_LEGACY=1 enable Registry v1 (FNS.ownerOf) + DNS TXT fallbacks
|
|
18
18
|
* AGT_IPFS_GATEWAY one of the allow-listed gateways (default https://dweb.link/ipfs/)
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agtnames/mcp",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MCP server for .agt agent names: resolve, verify and discover agents by name against AGT Registry v2. Works with any MCP-compatible client (Claude Code, Cursor, custom agents).",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"agt-mcp": "dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"main": "./dist/index.js",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"README.md"
|
|
13
|
-
],
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">=20"
|
|
16
|
-
},
|
|
17
|
-
"publishConfig": {
|
|
18
|
-
"access": "public"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsc -p tsconfig.json",
|
|
22
|
-
"start": "node dist/index.js",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@agtnames/resolver": "^1.0.
|
|
27
|
-
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
28
|
-
"zod": "^3.23.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.0.0",
|
|
32
|
-
"typescript": "^5.6.0"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"mcp",
|
|
36
|
-
"agt",
|
|
37
|
-
"agent-identity",
|
|
38
|
-
"naming",
|
|
39
|
-
"claude-code"
|
|
40
|
-
],
|
|
41
|
-
"license": "MIT"
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@agtnames/mcp",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "MCP server for .agt agent names: resolve, verify and discover agents by name against AGT Registry v2. Works with any MCP-compatible client (Claude Code, Cursor, custom agents).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agt-mcp": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc -p tsconfig.json",
|
|
22
|
+
"start": "node dist/index.js",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@agtnames/resolver": "^1.0.2",
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
28
|
+
"zod": "^3.23.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.0.0",
|
|
32
|
+
"typescript": "^5.6.0"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"mcp",
|
|
36
|
+
"agt",
|
|
37
|
+
"agent-identity",
|
|
38
|
+
"naming",
|
|
39
|
+
"claude-code"
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT"
|
|
42
|
+
}
|