@jclvsh/iris 0.17.0 → 0.18.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.
- package/dist/commands/contacts.js +12 -0
- package/dist/tools/contacts.js +11 -0
- package/package.json +1 -1
|
@@ -38,6 +38,18 @@ export function registerContactCommands(program, client) {
|
|
|
38
38
|
handleError(error);
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
+
contacts
|
|
42
|
+
.command("handles <id>")
|
|
43
|
+
.description("the contact's social handles - verify a handle write landed")
|
|
44
|
+
.action(async (id) => {
|
|
45
|
+
try {
|
|
46
|
+
const result = await client.get(`/contacts/${id}/handles`);
|
|
47
|
+
formatOutput(result, getFormat(program.opts()));
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
handleError(error);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
41
53
|
contacts
|
|
42
54
|
.command("create")
|
|
43
55
|
.description("create a new contact")
|
package/dist/tools/contacts.js
CHANGED
|
@@ -50,6 +50,17 @@ export function registerContactTools(server, client) {
|
|
|
50
50
|
return formatMcpError(error);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
+
server.tool("get_contact_handles", "the contact's social handles (instagram/twitter/tiktok) - verify a handle write landed. requires read scope.", {
|
|
54
|
+
id: z.string().uuid().describe("contact ID"),
|
|
55
|
+
}, async ({ id }) => {
|
|
56
|
+
try {
|
|
57
|
+
const result = await client.get(`/contacts/${id}/handles`);
|
|
58
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
return formatMcpError(error);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
53
64
|
server.tool("update_contact", "update a contact's details. requires write scope.", {
|
|
54
65
|
id: z.string().uuid().describe("contact ID"),
|
|
55
66
|
email: z.string().email().optional().describe("email address"),
|