@agentvalet/register 0.4.2 → 0.4.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
@@ -392,12 +392,12 @@ ${platformSections}
392
392
 
393
393
  ## How to call a platform
394
394
 
395
- All platform calls **must** go through the \`mcp__agent-authority__use_platform\` MCP tool.
395
+ All platform calls **must** go through the \`mcp__agentvalet__use_platform\` MCP tool.
396
396
 
397
397
  **NEVER** write inline JWT signing code, \`node -e\` scripts, or manual HTTP calls. The MCP tool handles all authentication internally.
398
398
 
399
399
  \`\`\`
400
- mcp__agent-authority__use_platform({
400
+ mcp__agentvalet__use_platform({
401
401
  platform: "<platformId>",
402
402
  endpoint: "<endpoint>",
403
403
  method: "POST",
@@ -596,7 +596,7 @@ function ensureHook() {
596
596
  }
597
597
  const perms = settings.permissions ?? {};
598
598
  const allow = perms.allow ?? [];
599
- const mcpAllows = ["mcp__agent-authority__list_platforms", "mcp__agent-authority__use_platform"];
599
+ const mcpAllows = ["mcp__agentvalet__list_platforms", "mcp__agentvalet__use_platform"];
600
600
  const missing = mcpAllows.filter((e) => !allow.includes(e));
601
601
  if (missing.length > 0) {
602
602
  perms.allow = [...allow, ...missing];
@@ -617,7 +617,7 @@ function ensureMcpJson() {
617
617
  }
618
618
  }
619
619
  const servers = mcpConfig.mcpServers ?? {};
620
- if (servers["agent-authority"]) return;
620
+ if (servers["agentvalet"]) return;
621
621
  let agentId;
622
622
  let ownerId;
623
623
  let apiUrl = "https://api.agentvalet.ai";
@@ -652,7 +652,7 @@ function ensureMcpJson() {
652
652
  }
653
653
  }
654
654
  if (!agentId || !ownerId || !keyPath) return;
655
- servers["agent-authority"] = {
655
+ servers["agentvalet"] = {
656
656
  command: "npx",
657
657
  args: ["-y", "@agentvalet/register", "mcp-server"],
658
658
  env: {
@@ -896,10 +896,10 @@ Never call platform APIs (Slack, Stripe, Gmail, GitHub, etc.) directly.
896
896
 
897
897
  ## Making a platform call
898
898
 
899
- Use the \`mcp__agent-authority__use_platform\` MCP tool:
899
+ Use the \`mcp__agentvalet__use_platform\` MCP tool:
900
900
 
901
901
  \`\`\`
902
- mcp__agent-authority__use_platform({
902
+ mcp__agentvalet__use_platform({
903
903
  platform: "slack",
904
904
  endpoint: "/api/chat.postMessage",
905
905
  method: "POST",
@@ -910,8 +910,8 @@ mcp__agent-authority__use_platform({
910
910
 
911
911
  ## Before any platform session
912
912
 
913
- 1. Call \`mcp__agent-authority__list_platforms\` to see approved platforms and scopes
914
- 2. Call \`mcp__agent-authority__authzen_evaluate\` before destructive operations
913
+ 1. Call \`mcp__agentvalet__list_platforms\` to see approved platforms and scopes
914
+ 2. Call \`mcp__agentvalet__authzen_evaluate\` before destructive operations
915
915
  3. If a call returns \`pending_approval\` \u2014 wait, do not retry
916
916
 
917
917
  ## Rules
@@ -1508,7 +1508,7 @@ program.command("refresh").description("Refresh approved permissions and update
1508
1508
  }
1509
1509
  });
1510
1510
  program.command("mcp-server").description("Start the AgentValet MCP server (stdio transport)").action(async () => {
1511
- await import("./mcp-server-LUNOQPUO.js");
1511
+ await import("./mcp-server-SBGWYBP7.js");
1512
1512
  });
1513
1513
  program.parseAsync().catch((err) => {
1514
1514
  console.error(err);
@@ -8,7 +8,7 @@ if (!process.env.AGENT_PRIVATE_KEY && process.env.AGENT_PRIVATE_KEY_PATH) {
8
8
  try {
9
9
  process.env.AGENT_PRIVATE_KEY = readFileSync(process.env.AGENT_PRIVATE_KEY_PATH, "utf-8").trim();
10
10
  } catch (err) {
11
- process.stderr.write(`[agent-authority] Cannot read AGENT_PRIVATE_KEY_PATH: ${err instanceof Error ? err.message : err}
11
+ process.stderr.write(`[agentvalet] Cannot read AGENT_PRIVATE_KEY_PATH: ${err instanceof Error ? err.message : err}
12
12
  `);
13
13
  process.exit(1);
14
14
  }
@@ -16,7 +16,7 @@ if (!process.env.AGENT_PRIVATE_KEY && process.env.AGENT_PRIVATE_KEY_PATH) {
16
16
  var REQUIRED = ["AGENT_PRIVATE_KEY", "AGENT_ID", "OWNER_ID", "PROXY_URL"];
17
17
  for (const key of REQUIRED) {
18
18
  if (!process.env[key]) {
19
- process.stderr.write(`[agent-authority] Missing env var: ${key}
19
+ process.stderr.write(`[agentvalet] Missing env var: ${key}
20
20
  `);
21
21
  process.exit(1);
22
22
  }
@@ -65,7 +65,7 @@ function errResult(msg) {
65
65
  }
66
66
  var ALLOWED_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE"];
67
67
  var server = new Server(
68
- { name: "agent-authority", version: "1.0.0" },
68
+ { name: "agentvalet", version: "1.0.0" },
69
69
  { capabilities: { tools: {} } }
70
70
  );
71
71
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvalet/register",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Self-register AI agents with AgentValet",
5
5
  "type": "module",
6
6
  "bin": {