@authn8/mcp-server 1.0.1 → 1.0.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 +23 -4
- package/dist/index.js +15 -9
- package/package.json +1 -1
- package/src/index.ts +15 -9
package/README.md
CHANGED
|
@@ -44,6 +44,27 @@ Add to your Claude Desktop configuration file:
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
### Claude Code (CLI)
|
|
48
|
+
|
|
49
|
+
Add to your Claude Code configuration file:
|
|
50
|
+
|
|
51
|
+
**macOS:** `~/.claude.json`
|
|
52
|
+
**Windows:** `%USERPROFILE%\.claude.json`
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcpServers": {
|
|
57
|
+
"authn8": {
|
|
58
|
+
"command": "npx",
|
|
59
|
+
"args": ["-y", "@authn8/mcp-server"],
|
|
60
|
+
"env": {
|
|
61
|
+
"AUTHN8_API_KEY": "pat_your_token_here"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
47
68
|
### Cursor
|
|
48
69
|
|
|
49
70
|
Add to your Cursor MCP settings:
|
|
@@ -81,8 +102,7 @@ Returns all 2FA accounts accessible to this token.
|
|
|
81
102
|
{
|
|
82
103
|
"id": "924c52a6-4457-4970-a39f-4dc620217683",
|
|
83
104
|
"name": "AWS Production",
|
|
84
|
-
"
|
|
85
|
-
"issuer": "Amazon"
|
|
105
|
+
"issuer": "amazon.com"
|
|
86
106
|
}
|
|
87
107
|
]
|
|
88
108
|
```
|
|
@@ -101,8 +121,7 @@ Provide either `account_id` or `account_name`. If multiple accounts match the na
|
|
|
101
121
|
```json
|
|
102
122
|
{
|
|
103
123
|
"account": "AWS Production",
|
|
104
|
-
"
|
|
105
|
-
"expires_in_seconds": 18
|
|
124
|
+
"code": "483920"
|
|
106
125
|
}
|
|
107
126
|
```
|
|
108
127
|
|
package/dist/index.js
CHANGED
|
@@ -271,10 +271,12 @@ async function main() {
|
|
|
271
271
|
name: "authn8-mcp",
|
|
272
272
|
version: "1.0.0"
|
|
273
273
|
});
|
|
274
|
-
server.
|
|
274
|
+
server.registerTool(
|
|
275
275
|
"list_accounts",
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
{
|
|
277
|
+
description: toolDefinitions.list_accounts.description,
|
|
278
|
+
inputSchema: toolDefinitions.list_accounts.inputSchema
|
|
279
|
+
},
|
|
278
280
|
async () => {
|
|
279
281
|
try {
|
|
280
282
|
return await handleListAccounts();
|
|
@@ -290,10 +292,12 @@ async function main() {
|
|
|
290
292
|
}
|
|
291
293
|
}
|
|
292
294
|
);
|
|
293
|
-
server.
|
|
295
|
+
server.registerTool(
|
|
294
296
|
"get_otp",
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
{
|
|
298
|
+
description: toolDefinitions.get_otp.description,
|
|
299
|
+
inputSchema: toolDefinitions.get_otp.inputSchema
|
|
300
|
+
},
|
|
297
301
|
async (args) => {
|
|
298
302
|
try {
|
|
299
303
|
return await handleGetOtp(args);
|
|
@@ -309,10 +313,12 @@ async function main() {
|
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
315
|
);
|
|
312
|
-
server.
|
|
316
|
+
server.registerTool(
|
|
313
317
|
"whoami",
|
|
314
|
-
|
|
315
|
-
|
|
318
|
+
{
|
|
319
|
+
description: toolDefinitions.whoami.description,
|
|
320
|
+
inputSchema: toolDefinitions.whoami.inputSchema
|
|
321
|
+
},
|
|
316
322
|
async () => {
|
|
317
323
|
try {
|
|
318
324
|
return await handleWhoami();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -48,10 +48,12 @@ async function main(): Promise<void> {
|
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
// Register tools
|
|
51
|
-
server.
|
|
51
|
+
server.registerTool(
|
|
52
52
|
"list_accounts",
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
{
|
|
54
|
+
description: toolDefinitions.list_accounts.description,
|
|
55
|
+
inputSchema: toolDefinitions.list_accounts.inputSchema,
|
|
56
|
+
},
|
|
55
57
|
async () => {
|
|
56
58
|
try {
|
|
57
59
|
return await handleListAccounts();
|
|
@@ -68,10 +70,12 @@ async function main(): Promise<void> {
|
|
|
68
70
|
}
|
|
69
71
|
);
|
|
70
72
|
|
|
71
|
-
server.
|
|
73
|
+
server.registerTool(
|
|
72
74
|
"get_otp",
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
{
|
|
76
|
+
description: toolDefinitions.get_otp.description,
|
|
77
|
+
inputSchema: toolDefinitions.get_otp.inputSchema,
|
|
78
|
+
},
|
|
75
79
|
async (args) => {
|
|
76
80
|
try {
|
|
77
81
|
return await handleGetOtp(args as { account_id?: string; account_name?: string });
|
|
@@ -88,10 +92,12 @@ async function main(): Promise<void> {
|
|
|
88
92
|
}
|
|
89
93
|
);
|
|
90
94
|
|
|
91
|
-
server.
|
|
95
|
+
server.registerTool(
|
|
92
96
|
"whoami",
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
{
|
|
98
|
+
description: toolDefinitions.whoami.description,
|
|
99
|
+
inputSchema: toolDefinitions.whoami.inputSchema,
|
|
100
|
+
},
|
|
95
101
|
async () => {
|
|
96
102
|
try {
|
|
97
103
|
return await handleWhoami();
|