@sentientui/mcp 0.9.1 → 0.9.2

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.
@@ -1418,12 +1418,14 @@ function registerAgentTrafficTools(server, client) {
1418
1418
  engines: z13.array(
1419
1419
  z13.object({
1420
1420
  engine: z13.string(),
1421
+ intent: z13.string().describe("user | search | training | other"),
1421
1422
  count: z13.number(),
1422
1423
  sharePct: z13.number(),
1423
1424
  lastSeen: z13.string(),
1424
1425
  firstSeenInRange: z13.boolean().describe("First observed within the queried period")
1425
1426
  })
1426
1427
  ),
1428
+ intents: z13.object({ user: z13.number(), search: z13.number(), training: z13.number(), other: z13.number() }).describe("Crawler fetches by purpose: user = an assistant answering a real person live"),
1427
1429
  topPaths: z13.array(z13.object({ path: z13.string(), count: z13.number(), engines: z13.number() }))
1428
1430
  },
1429
1431
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
@@ -1431,7 +1433,7 @@ function registerAgentTrafficTools(server, client) {
1431
1433
  withApiErrorGuidance(async ({ projectId }) => {
1432
1434
  const id = encodeURIComponent(projectId);
1433
1435
  const s = await client.get(`/projects/${id}/agent-activity/summary`);
1434
- const structuredContent = { totals: s.totals, engines: s.engines, topPaths: s.topPaths };
1436
+ const structuredContent = { totals: s.totals, engines: s.engines, intents: s.intents, topPaths: s.topPaths };
1435
1437
  const total = s.totals.crawler + s.totals.api + s.totals.browser;
1436
1438
  if (total === 0) {
1437
1439
  return {
@@ -1444,6 +1446,7 @@ function registerAgentTrafficTools(server, client) {
1444
1446
  }
1445
1447
  const lines = [
1446
1448
  `Agent traffic: ${s.totals.crawler} crawler fetches, ${s.totals.api} agent API calls, ${s.totals.browser} agentic browser sessions.`,
1449
+ `Live user fetches: ${s.intents.user} \xB7 Search index: ${s.intents.search} \xB7 Training: ${s.intents.training}${s.intents.other ? ` \xB7 Other: ${s.intents.other}` : ""} (a "live user fetch" = an AI assistant reading your site to answer a real person).`,
1447
1450
  "",
1448
1451
  "Engines:",
1449
1452
  ...s.engines.map((e) => `- ${e.engine}: ${e.count} fetches (${e.sharePct}%)${e.firstSeenInRange ? " \u2014 NEW this period" : ""}`),
@@ -1507,7 +1510,7 @@ function registerAgentTrafficTools(server, client) {
1507
1510
  }
1508
1511
 
1509
1512
  // src/server.ts
1510
- var PKG_VERSION = true ? "0.9.1" : "0.0.0-dev";
1513
+ var PKG_VERSION = true ? "0.9.2" : "0.0.0-dev";
1511
1514
  function createMcpServer(client) {
1512
1515
  const server = new McpServer(
1513
1516
  {
package/dist/index.cjs CHANGED
@@ -1422,12 +1422,14 @@ function registerAgentTrafficTools(server, client) {
1422
1422
  engines: import_zod13.z.array(
1423
1423
  import_zod13.z.object({
1424
1424
  engine: import_zod13.z.string(),
1425
+ intent: import_zod13.z.string().describe("user | search | training | other"),
1425
1426
  count: import_zod13.z.number(),
1426
1427
  sharePct: import_zod13.z.number(),
1427
1428
  lastSeen: import_zod13.z.string(),
1428
1429
  firstSeenInRange: import_zod13.z.boolean().describe("First observed within the queried period")
1429
1430
  })
1430
1431
  ),
1432
+ intents: import_zod13.z.object({ user: import_zod13.z.number(), search: import_zod13.z.number(), training: import_zod13.z.number(), other: import_zod13.z.number() }).describe("Crawler fetches by purpose: user = an assistant answering a real person live"),
1431
1433
  topPaths: import_zod13.z.array(import_zod13.z.object({ path: import_zod13.z.string(), count: import_zod13.z.number(), engines: import_zod13.z.number() }))
1432
1434
  },
1433
1435
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
@@ -1435,7 +1437,7 @@ function registerAgentTrafficTools(server, client) {
1435
1437
  withApiErrorGuidance(async ({ projectId }) => {
1436
1438
  const id = encodeURIComponent(projectId);
1437
1439
  const s = await client.get(`/projects/${id}/agent-activity/summary`);
1438
- const structuredContent = { totals: s.totals, engines: s.engines, topPaths: s.topPaths };
1440
+ const structuredContent = { totals: s.totals, engines: s.engines, intents: s.intents, topPaths: s.topPaths };
1439
1441
  const total = s.totals.crawler + s.totals.api + s.totals.browser;
1440
1442
  if (total === 0) {
1441
1443
  return {
@@ -1448,6 +1450,7 @@ function registerAgentTrafficTools(server, client) {
1448
1450
  }
1449
1451
  const lines = [
1450
1452
  `Agent traffic: ${s.totals.crawler} crawler fetches, ${s.totals.api} agent API calls, ${s.totals.browser} agentic browser sessions.`,
1453
+ `Live user fetches: ${s.intents.user} \xB7 Search index: ${s.intents.search} \xB7 Training: ${s.intents.training}${s.intents.other ? ` \xB7 Other: ${s.intents.other}` : ""} (a "live user fetch" = an AI assistant reading your site to answer a real person).`,
1451
1454
  "",
1452
1455
  "Engines:",
1453
1456
  ...s.engines.map((e) => `- ${e.engine}: ${e.count} fetches (${e.sharePct}%)${e.firstSeenInRange ? " \u2014 NEW this period" : ""}`),
@@ -1511,7 +1514,7 @@ function registerAgentTrafficTools(server, client) {
1511
1514
  }
1512
1515
 
1513
1516
  // src/server.ts
1514
- var PKG_VERSION = true ? "0.9.1" : "0.0.0-dev";
1517
+ var PKG_VERSION = true ? "0.9.2" : "0.0.0-dev";
1515
1518
  function createMcpServer(client) {
1516
1519
  const server = new import_mcp.McpServer(
1517
1520
  {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ApiClient,
4
4
  createMcpServer
5
- } from "./chunk-E2BGACKB.js";
5
+ } from "./chunk-KUOPKVVD.js";
6
6
 
7
7
  // src/index.ts
8
8
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/lib.cjs CHANGED
@@ -1447,12 +1447,14 @@ function registerAgentTrafficTools(server, client) {
1447
1447
  engines: import_zod13.z.array(
1448
1448
  import_zod13.z.object({
1449
1449
  engine: import_zod13.z.string(),
1450
+ intent: import_zod13.z.string().describe("user | search | training | other"),
1450
1451
  count: import_zod13.z.number(),
1451
1452
  sharePct: import_zod13.z.number(),
1452
1453
  lastSeen: import_zod13.z.string(),
1453
1454
  firstSeenInRange: import_zod13.z.boolean().describe("First observed within the queried period")
1454
1455
  })
1455
1456
  ),
1457
+ intents: import_zod13.z.object({ user: import_zod13.z.number(), search: import_zod13.z.number(), training: import_zod13.z.number(), other: import_zod13.z.number() }).describe("Crawler fetches by purpose: user = an assistant answering a real person live"),
1456
1458
  topPaths: import_zod13.z.array(import_zod13.z.object({ path: import_zod13.z.string(), count: import_zod13.z.number(), engines: import_zod13.z.number() }))
1457
1459
  },
1458
1460
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
@@ -1460,7 +1462,7 @@ function registerAgentTrafficTools(server, client) {
1460
1462
  withApiErrorGuidance(async ({ projectId }) => {
1461
1463
  const id = encodeURIComponent(projectId);
1462
1464
  const s = await client.get(`/projects/${id}/agent-activity/summary`);
1463
- const structuredContent = { totals: s.totals, engines: s.engines, topPaths: s.topPaths };
1465
+ const structuredContent = { totals: s.totals, engines: s.engines, intents: s.intents, topPaths: s.topPaths };
1464
1466
  const total = s.totals.crawler + s.totals.api + s.totals.browser;
1465
1467
  if (total === 0) {
1466
1468
  return {
@@ -1473,6 +1475,7 @@ function registerAgentTrafficTools(server, client) {
1473
1475
  }
1474
1476
  const lines = [
1475
1477
  `Agent traffic: ${s.totals.crawler} crawler fetches, ${s.totals.api} agent API calls, ${s.totals.browser} agentic browser sessions.`,
1478
+ `Live user fetches: ${s.intents.user} \xB7 Search index: ${s.intents.search} \xB7 Training: ${s.intents.training}${s.intents.other ? ` \xB7 Other: ${s.intents.other}` : ""} (a "live user fetch" = an AI assistant reading your site to answer a real person).`,
1476
1479
  "",
1477
1480
  "Engines:",
1478
1481
  ...s.engines.map((e) => `- ${e.engine}: ${e.count} fetches (${e.sharePct}%)${e.firstSeenInRange ? " \u2014 NEW this period" : ""}`),
@@ -1536,7 +1539,7 @@ function registerAgentTrafficTools(server, client) {
1536
1539
  }
1537
1540
 
1538
1541
  // src/server.ts
1539
- var PKG_VERSION = true ? "0.9.1" : "0.0.0-dev";
1542
+ var PKG_VERSION = true ? "0.9.2" : "0.0.0-dev";
1540
1543
  function createMcpServer(client) {
1541
1544
  const server = new import_mcp.McpServer(
1542
1545
  {
package/dist/lib.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  ApiClient,
4
4
  ApiError,
5
5
  createMcpServer
6
- } from "./chunk-E2BGACKB.js";
6
+ } from "./chunk-KUOPKVVD.js";
7
7
  export {
8
8
  ApiClient,
9
9
  ApiError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentientui/mcp",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "MCP server for SentientUI — exposes project data and actions to AI agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://sentient-ui.com",