@codazen/harmonica-mcp 4.3.0 → 4.3.1
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 +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32914,7 +32914,7 @@ function createHttpClient(config2) {
|
|
|
32914
32914
|
);
|
|
32915
32915
|
const system = result?.system ? {
|
|
32916
32916
|
...result.system,
|
|
32917
|
-
systemId: result.system.id ?? result.system.systemId
|
|
32917
|
+
systemId: result.system.id ?? result.system.systemId,
|
|
32918
32918
|
title: result.system.name ?? result.system.title,
|
|
32919
32919
|
orgId: result.system.organizationId ?? result.system.orgId
|
|
32920
32920
|
} : void 0;
|
|
@@ -32927,14 +32927,14 @@ function createHttpClient(config2) {
|
|
|
32927
32927
|
// Systems (canonical)
|
|
32928
32928
|
listOrgSystems: async (orgId) => {
|
|
32929
32929
|
const raw = await request("GET", `/api/organizations/${encodeURIComponent(orgId)}/systems/summaries`);
|
|
32930
|
-
return (raw ?? []).map((p) => ({ ...p, systemId: p.id,
|
|
32930
|
+
return (raw ?? []).map((p) => ({ ...p, systemId: p.id, title: p.name, orgId: p.organizationId }));
|
|
32931
32931
|
},
|
|
32932
32932
|
getSystem: async (systemId) => {
|
|
32933
32933
|
const raw = await request("GET", `/api/systems/${encodeURIComponent(systemId)}`);
|
|
32934
32934
|
if (!raw) return void 0;
|
|
32935
32935
|
return {
|
|
32936
32936
|
...raw,
|
|
32937
|
-
systemId: raw.id ?? raw.systemId
|
|
32937
|
+
systemId: raw.id ?? raw.systemId,
|
|
32938
32938
|
title: raw.name ?? raw.title,
|
|
32939
32939
|
orgId: raw.organizationId ?? raw.orgId
|
|
32940
32940
|
};
|
|
@@ -32950,17 +32950,17 @@ function createHttpClient(config2) {
|
|
|
32950
32950
|
// is created unlinked — invisible in the Account's Systems list.
|
|
32951
32951
|
...input.accountId !== void 0 && { accountId: input.accountId }
|
|
32952
32952
|
});
|
|
32953
|
-
return { ...raw, systemId: raw?.id ?? raw?.systemId
|
|
32953
|
+
return { ...raw, systemId: raw?.id ?? raw?.systemId, title: raw?.name ?? raw?.title, orgId: raw?.organizationId ?? raw?.orgId };
|
|
32954
32954
|
},
|
|
32955
32955
|
updateSystem: async (systemId, updates) => {
|
|
32956
32956
|
const raw = await request("PATCH", `/api/systems/${encodeURIComponent(systemId)}`, updates);
|
|
32957
32957
|
if (!raw) return void 0;
|
|
32958
|
-
return { ...raw, systemId: raw.id ?? raw.systemId
|
|
32958
|
+
return { ...raw, systemId: raw.id ?? raw.systemId, title: raw.name ?? raw.title, orgId: raw.organizationId ?? raw.orgId };
|
|
32959
32959
|
},
|
|
32960
32960
|
archiveSystem: async (systemId) => {
|
|
32961
32961
|
const raw = await request("PATCH", `/api/systems/${encodeURIComponent(systemId)}/archive`);
|
|
32962
32962
|
if (!raw) return void 0;
|
|
32963
|
-
return { ...raw, systemId: raw.id ?? raw.systemId
|
|
32963
|
+
return { ...raw, systemId: raw.id ?? raw.systemId, title: raw.name ?? raw.title, orgId: raw.organizationId ?? raw.orgId };
|
|
32964
32964
|
},
|
|
32965
32965
|
getSystemFact: async (systemId) => {
|
|
32966
32966
|
const result = await request("GET", `/api/systems/${encodeURIComponent(systemId)}/facts`);
|
|
@@ -35043,7 +35043,7 @@ function loadConfig() {
|
|
|
35043
35043
|
};
|
|
35044
35044
|
}
|
|
35045
35045
|
async function main() {
|
|
35046
|
-
console.error(`[harmonica-mcp] v${"4.3.
|
|
35046
|
+
console.error(`[harmonica-mcp] v${"4.3.1"} starting\u2026`);
|
|
35047
35047
|
const config2 = loadConfig();
|
|
35048
35048
|
const client = createHttpClient({
|
|
35049
35049
|
apiBaseUrl: config2.apiBaseUrl,
|