@agentvalet/register 1.1.0 → 1.1.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/dist/index.js
CHANGED
|
@@ -983,7 +983,9 @@ function ensureMcpJson() {
|
|
|
983
983
|
const { agentId, ownerId, apiUrl, keyPath } = creds;
|
|
984
984
|
servers["agentvalet"] = {
|
|
985
985
|
command: "npx",
|
|
986
|
-
|
|
986
|
+
// Pin @latest — unversioned lets npx reuse a stale global install that
|
|
987
|
+
// shadows the current build (see apps/cli/src/config/ide.ts).
|
|
988
|
+
args: ["-y", "@agentvalet/register@latest", "mcp-server"],
|
|
987
989
|
env: {
|
|
988
990
|
AGENT_ID: agentId,
|
|
989
991
|
OWNER_ID: ownerId,
|
|
@@ -1185,7 +1187,11 @@ import os2 from "os";
|
|
|
1185
1187
|
function buildMcpEntry(params) {
|
|
1186
1188
|
return {
|
|
1187
1189
|
command: "npx",
|
|
1188
|
-
|
|
1190
|
+
// Pin @latest so npx always resolves the published version from the registry.
|
|
1191
|
+
// Unversioned `@agentvalet/register` lets npx silently reuse a stale global
|
|
1192
|
+
// install (e.g. an old 0.5.0 bundling mcp-server@0.2.1), which shadows the
|
|
1193
|
+
// current build and drops newer tool params like use_platform's connection_id.
|
|
1194
|
+
args: ["-y", "@agentvalet/register@latest", "mcp-server"],
|
|
1189
1195
|
env: {
|
|
1190
1196
|
AGENT_ID: params.agentId,
|
|
1191
1197
|
OWNER_ID: params.ownerId,
|
|
@@ -1270,7 +1276,7 @@ function buildCodexTomlBlock(params) {
|
|
|
1270
1276
|
return `
|
|
1271
1277
|
[mcp_servers.agentvalet]
|
|
1272
1278
|
command = "npx"
|
|
1273
|
-
args = ["-y", "@agentvalet/register", "mcp-server"]
|
|
1279
|
+
args = ["-y", "@agentvalet/register@latest", "mcp-server"]
|
|
1274
1280
|
env = { AGENT_ID = "${params.agentId}", OWNER_ID = "${params.ownerId}", PROXY_URL = "${params.proxyUrl}", AGENT_PRIVATE_KEY_PATH = "${params.keyPath.replace(/\\/g, "/")}" }
|
|
1275
1281
|
`;
|
|
1276
1282
|
}
|
|
@@ -2837,7 +2843,7 @@ program.command("refresh").description("Refresh approved permissions and update
|
|
|
2837
2843
|
}
|
|
2838
2844
|
});
|
|
2839
2845
|
program.command("mcp-server").description("Start the AgentValet MCP server (stdio transport)").action(async () => {
|
|
2840
|
-
const { mcpServerCommand } = await import("./mcp-server-
|
|
2846
|
+
const { mcpServerCommand } = await import("./mcp-server-MFHDR2TL.js");
|
|
2841
2847
|
await mcpServerCommand();
|
|
2842
2848
|
});
|
|
2843
2849
|
program.addCommand(listCommand());
|
|
@@ -16,7 +16,7 @@ function resolveMcpServerBin() {
|
|
|
16
16
|
}
|
|
17
17
|
async function mcpServerCommand() {
|
|
18
18
|
const binPath = resolveMcpServerBin();
|
|
19
|
-
const [cmd, args] = binPath ? [process.execPath, [binPath]] : ["npx", ["--yes", "@agentvalet/mcp-server"]];
|
|
19
|
+
const [cmd, args] = binPath ? [process.execPath, [binPath]] : ["npx", ["--yes", "@agentvalet/mcp-server@latest"]];
|
|
20
20
|
const child = spawn(cmd, args, {
|
|
21
21
|
stdio: "inherit",
|
|
22
22
|
env: process.env,
|