@agentvalet/register 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -223,25 +223,20 @@ ${platformSections}
223
223
 
224
224
  ## How to call a platform
225
225
 
226
- All platform calls **must** go through AgentValet \u2014 never call Slack, Gmail, Stripe etc. directly.
226
+ All platform calls **must** go through the \`mcp__agent-authority__use_platform\` MCP tool.
227
227
 
228
- Copy the pattern from \`test-agent.mjs\` (already in this repo):
228
+ **NEVER** write inline JWT signing code, \`node -e\` scripts, or manual HTTP calls. The MCP tool handles all authentication internally.
229
229
 
230
- 1. Read the private key from \`agentvalet.key\`
231
- 2. Sign a short-lived RS256 JWT: \`{ agent_id, owner_id, iat, exp: iat + 300 }\`
232
- 3. POST to \`https://api.agentvalet.ai/v1/actions\`:
233
-
234
- \`\`\`json
235
- {
236
- "platform": "<platformId>",
237
- "endpoint": "<endpoint>",
238
- "method": "POST",
239
- "scope": "<scope>",
240
- "data": { ... }
241
- }
230
+ \`\`\`
231
+ mcp__agent-authority__use_platform({
232
+ platform: "<platformId>",
233
+ endpoint: "<endpoint>",
234
+ method: "POST",
235
+ scope: "<scope>",
236
+ data: { ... }
237
+ })
242
238
  \`\`\`
243
239
 
244
- Run \`node test-agent.mjs\` for a live smoke-test.
245
240
  To refresh this file: \`agentvalet-register refresh\`
246
241
  `;
247
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvalet/register",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Self-register AI agents with AgentValet",
5
5
  "type": "module",
6
6
  "bin": {