@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.
@@ -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 breakdown2 = Object.entries(usage).map(([model, u]) => ({
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(breakdown2, null, 2) }] };
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 team2 = prefs.team;
1124
- const mode = team2?.mode ?? "solo";
1125
- const connections = (team2?.connections ?? []).map((c) => ({
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentistics/mcp",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "Agentistics MCP server — Claude Code analytics for Claude Desktop and Claude Code",
5
5
  "type": "module",
6
6
  "main": "./dist/agentistics-mcp.js",