@agentistics/mcp 2.10.0 → 2.10.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/agentistics-mcp.js +5 -5
- package/package.json +1 -1
package/dist/agentistics-mcp.js
CHANGED
|
@@ -817,7 +817,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
817
817
|
const data = await apiGet("/api/data");
|
|
818
818
|
if (!harness || harness === "all" || harness === "claude") {
|
|
819
819
|
const usage = data.statsCache?.modelUsage ?? {};
|
|
820
|
-
const
|
|
820
|
+
const breakdown = Object.entries(usage).map(([model, u]) => ({
|
|
821
821
|
model,
|
|
822
822
|
inputTokens: u.inputTokens ?? 0,
|
|
823
823
|
outputTokens: u.outputTokens ?? 0,
|
|
@@ -826,7 +826,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
826
826
|
totalTokens: u.totalTokens ?? 0,
|
|
827
827
|
estimatedCostUSD: u.costUSD ?? 0
|
|
828
828
|
})).sort((a, b) => b.totalTokens - a.totalTokens);
|
|
829
|
-
return { content: [{ type: "text", text: JSON.stringify(
|
|
829
|
+
return { content: [{ type: "text", text: JSON.stringify(breakdown, null, 2) }] };
|
|
830
830
|
}
|
|
831
831
|
const byModel = {};
|
|
832
832
|
for (const s of filterSessions(data.sessions ?? [], harness)) {
|
|
@@ -1120,9 +1120,9 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
case "agentistics_team_status": {
|
|
1122
1122
|
const prefs = await getPrefs();
|
|
1123
|
-
const
|
|
1124
|
-
const mode =
|
|
1125
|
-
const connections = (
|
|
1123
|
+
const team = prefs.team;
|
|
1124
|
+
const mode = team?.mode ?? "solo";
|
|
1125
|
+
const connections = (team?.connections ?? []).map((c) => ({
|
|
1126
1126
|
id: c.id,
|
|
1127
1127
|
label: c.label ?? null,
|
|
1128
1128
|
endpoint: c.endpoint
|