@agentvalet/register 1.0.2 → 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/dist/index.js
CHANGED
|
@@ -2791,7 +2791,7 @@ program.command("refresh").description("Refresh approved permissions and update
|
|
|
2791
2791
|
}
|
|
2792
2792
|
});
|
|
2793
2793
|
program.command("mcp-server").description("Start the AgentValet MCP server (stdio transport)").action(async () => {
|
|
2794
|
-
const { mcpServerCommand } = await import("./mcp-server-
|
|
2794
|
+
const { mcpServerCommand } = await import("./mcp-server-77VYWZUZ.js");
|
|
2795
2795
|
await mcpServerCommand();
|
|
2796
2796
|
});
|
|
2797
2797
|
program.addCommand(listCommand());
|
|
@@ -2,35 +2,25 @@
|
|
|
2
2
|
import { spawn } from "child_process";
|
|
3
3
|
import { createRequire } from "module";
|
|
4
4
|
function resolveMcpServerBin() {
|
|
5
|
+
const require2 = createRequire(import.meta.url);
|
|
5
6
|
try {
|
|
6
|
-
const require2 = createRequire(import.meta.url);
|
|
7
7
|
return require2.resolve("@agentvalet/mcp-server/dist/index.js");
|
|
8
8
|
} catch {
|
|
9
9
|
try {
|
|
10
|
-
const require2 = createRequire(import.meta.url);
|
|
11
10
|
const pkgRoot = require2.resolve("@agentvalet/mcp-server/package.json");
|
|
12
11
|
return pkgRoot.replace("package.json", "dist/index.js");
|
|
13
12
|
} catch {
|
|
14
|
-
|
|
15
|
-
"@agentvalet/mcp-server is not installed. Run: npx @agentvalet/register"
|
|
16
|
-
);
|
|
13
|
+
return null;
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
17
|
async function mcpServerCommand() {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} catch (err) {
|
|
25
|
-
process.stderr.write(
|
|
26
|
-
`[agentvalet] ${err instanceof Error ? err.message : String(err)}
|
|
27
|
-
`
|
|
28
|
-
);
|
|
29
|
-
process.exit(1);
|
|
30
|
-
}
|
|
31
|
-
const child = spawn(process.execPath, [binPath], {
|
|
18
|
+
const binPath = resolveMcpServerBin();
|
|
19
|
+
const [cmd, args] = binPath ? [process.execPath, [binPath]] : ["npx", ["--yes", "@agentvalet/mcp-server"]];
|
|
20
|
+
const child = spawn(cmd, args, {
|
|
32
21
|
stdio: "inherit",
|
|
33
|
-
env: process.env
|
|
22
|
+
env: process.env,
|
|
23
|
+
shell: process.platform === "win32"
|
|
34
24
|
});
|
|
35
25
|
child.on("error", (err) => {
|
|
36
26
|
process.stderr.write(`[agentvalet] Failed to start MCP server: ${err.message}
|
package/package.json
CHANGED
|
@@ -1,65 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agentvalet/register",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Self-register AI agents with AgentValet",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"agentvalet-register": "dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"dist",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
},
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"license": "MIT"
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentvalet/register",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Self-register AI agents with AgentValet",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agentvalet-register": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
15
|
+
"@octokit/auth-oauth-device": "^7.0.0",
|
|
16
|
+
"chalk": "^5.3.0",
|
|
17
|
+
"commander": "^12.0.0",
|
|
18
|
+
"conf": "^13.0.0",
|
|
19
|
+
"open": "^10.0.0",
|
|
20
|
+
"ora": "^8.0.1",
|
|
21
|
+
"prompts": "^2.4.2",
|
|
22
|
+
"undici": "^6.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "^20.0.0",
|
|
26
|
+
"@types/prompts": "^2.4.0",
|
|
27
|
+
"tsup": "^8.0.0",
|
|
28
|
+
"tsx": "^4.0.0",
|
|
29
|
+
"typescript": "^5.0.0",
|
|
30
|
+
"vitest": "^1.5.0",
|
|
31
|
+
"@agentvalet/mcp-server": "^1.4.1"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=18"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/agentvalet/agentvalet.git"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://agentvalet.ai",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/agentvalet/agentvalet/issues"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"ai",
|
|
49
|
+
"agents",
|
|
50
|
+
"auth",
|
|
51
|
+
"credentials",
|
|
52
|
+
"mcp",
|
|
53
|
+
"valet",
|
|
54
|
+
"agentvalet"
|
|
55
|
+
],
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup src/index.ts --format esm --dts --clean --shims",
|
|
59
|
+
"dev": "tsx src/index.ts",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"typecheck": "tsc --noEmit"
|
|
62
|
+
}
|
|
63
|
+
}
|