w
This commit is contained in:
+2
-1
@@ -52,7 +52,8 @@ export function registerPeopleTools(server: McpServer): void {
|
||||
const addrList = Array.isArray(addrs) ? addrs : [addrs];
|
||||
for (const a of addrList) {
|
||||
if (a?.Key === "Business") {
|
||||
const parts = [a.Street, a.City, a.PostalCode, a.CountryOrRegion].filter(Boolean);
|
||||
const parts = [a.Street, a.City, a.PostalCode, a.CountryOrRegion]
|
||||
.filter(Boolean);
|
||||
if (parts.length) {
|
||||
person.address = parts.join(", ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user