@jclvsh/iris 0.9.0 → 0.10.0

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/tools/keys.js +12 -0
  2. package/package.json +1 -1
@@ -54,6 +54,18 @@ export function registerKeyTools(server, client) {
54
54
  return formatMcpError(error);
55
55
  }
56
56
  });
57
+ server.tool("rename_api_key", "rename an API key — updates the key's display name without changing the key value, scopes, or any other property. Useful for keeping API key inventory organized. (requires admin scope)", {
58
+ id: z.string().uuid().describe("API key ID to rename"),
59
+ name: z.string().min(1).max(100).describe("new key name (1-100 characters)"),
60
+ }, async ({ id, name }) => {
61
+ try {
62
+ const result = await client.patch(`/keys/${id}`, { name });
63
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
64
+ }
65
+ catch (error) {
66
+ return formatMcpError(error);
67
+ }
68
+ });
57
69
  server.tool("revoke_api_key", "revoke (delete) an API key. requires admin scope.", {
58
70
  id: z.string().uuid().describe("API key ID to revoke"),
59
71
  }, async ({ id }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclvsh/iris",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "MCP server for the Iris API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",