@sentientui/mcp 0.25.1 → 0.27.0
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/AGENTS.md +71 -7
- package/README.md +33 -3
- package/dist/{chunk-QF2U745P.js → chunk-K2UZ3IVC.js} +1551 -552
- package/dist/index.cjs +1558 -553
- package/dist/index.js +8 -2
- package/dist/lib.cjs +1568 -554
- package/dist/lib.d.cts +4 -0
- package/dist/lib.d.ts +4 -0
- package/dist/lib.js +18 -3
- package/package.json +1 -1
package/dist/lib.d.cts
CHANGED
|
@@ -24,6 +24,7 @@ declare class ApiClient {
|
|
|
24
24
|
private baseUrl;
|
|
25
25
|
private apiKey;
|
|
26
26
|
private refreshApiKey?;
|
|
27
|
+
private agentClient?;
|
|
27
28
|
constructor(opts: {
|
|
28
29
|
apiKey: string;
|
|
29
30
|
baseUrl?: string;
|
|
@@ -33,9 +34,12 @@ declare class ApiClient {
|
|
|
33
34
|
* null to give up and surface the original error.
|
|
34
35
|
*/
|
|
35
36
|
refreshApiKey?: () => Promise<string | null>;
|
|
37
|
+
/** Names this client in the project's agent activity log (x-sentient-agent-client). */
|
|
38
|
+
agentClient?: string;
|
|
36
39
|
});
|
|
37
40
|
get<T = unknown>(path: string): Promise<T>;
|
|
38
41
|
post<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
42
|
+
put<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
39
43
|
patch<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
40
44
|
delete<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
41
45
|
private request;
|
package/dist/lib.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare class ApiClient {
|
|
|
24
24
|
private baseUrl;
|
|
25
25
|
private apiKey;
|
|
26
26
|
private refreshApiKey?;
|
|
27
|
+
private agentClient?;
|
|
27
28
|
constructor(opts: {
|
|
28
29
|
apiKey: string;
|
|
29
30
|
baseUrl?: string;
|
|
@@ -33,9 +34,12 @@ declare class ApiClient {
|
|
|
33
34
|
* null to give up and surface the original error.
|
|
34
35
|
*/
|
|
35
36
|
refreshApiKey?: () => Promise<string | null>;
|
|
37
|
+
/** Names this client in the project's agent activity log (x-sentient-agent-client). */
|
|
38
|
+
agentClient?: string;
|
|
36
39
|
});
|
|
37
40
|
get<T = unknown>(path: string): Promise<T>;
|
|
38
41
|
post<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
42
|
+
put<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
39
43
|
patch<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
40
44
|
delete<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
41
45
|
private request;
|
package/dist/lib.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ApiError,
|
|
5
5
|
PUBLIC_UI_RESOURCE_URIS,
|
|
6
6
|
createMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K2UZ3IVC.js";
|
|
8
8
|
|
|
9
9
|
// src/tool-catalog.ts
|
|
10
10
|
var TOOL_CATALOG = [
|
|
@@ -33,7 +33,7 @@ var TOOL_CATALOG = [
|
|
|
33
33
|
{ name: "get_funnel_report", access: "read", summary: "Step-by-step funnel drop-off" },
|
|
34
34
|
{ name: "list_guardrail_events", access: "read", summary: "Every variant currently paused by a guardrail (optionally only pauses from the last N days)" },
|
|
35
35
|
// Audience and layout
|
|
36
|
-
{ name: "get_persona_breakdown", access: "read", summary: "
|
|
36
|
+
{ name: "get_persona_breakdown", access: "read", summary: "Visitors per audience they were served as (30 days, the Matrix share), plus behaviour groups \u2014 visitors who behaved alike, never audiences" },
|
|
37
37
|
{ name: "get_stage_breakdown", access: "read", summary: "E-commerce funnel stages: stage mix, arrival channel x stage, stage moves between visits, tested holdout lift per first-visit context and channel, and versions per context (windowed, observational)" },
|
|
38
38
|
{ name: "get_layout_stats", access: "read", summary: "Per-persona section order with bandit pulls and reward (cumulative state)" },
|
|
39
39
|
// Insights
|
|
@@ -47,8 +47,23 @@ var TOOL_CATALOG = [
|
|
|
47
47
|
{ name: "review_cell", access: "write", summary: "Approve (publish) or reject one generated version waiting for review" },
|
|
48
48
|
// Agent traffic
|
|
49
49
|
{ name: "get_agent_traffic", access: "read", summary: "Which AI crawlers, automated browser sessions and agent API callers read the site (windowed)" },
|
|
50
|
-
{ name: "get_traffic_breakdown", access: "read", summary: "Where traffic came from: People vs visitors we could not confirm vs automated
|
|
50
|
+
{ name: "get_traffic_breakdown", access: "read", summary: "Where traffic came from: People vs visitors we could not confirm vs automated vs your team / test sites (windowed)" },
|
|
51
|
+
{ name: "get_internal_traffic_rules", access: "read", summary: "How the project keeps its team and test sites out of its numbers: internal sites, team email domains and masked emails, browser link, sessions marked internal (7 days)" },
|
|
51
52
|
{ name: "get_agent_legibility", access: "read", summary: "Whether the pages agents read are machine-legible, with fixes" },
|
|
53
|
+
// Agent access reads
|
|
54
|
+
{ name: "get_agent_access", access: "read", summary: "Which areas a person has allowed agents to change in this project (Generate, Approve and publish, Run tests, Goals and funnels, Campaigns and audiences, Project settings)" },
|
|
55
|
+
{ name: "list_campaigns", access: "read", summary: "Named campaigns, retargeting groups and campaigns seen in traffic; with campaignId, one campaign's card (clicks, people, conversions, control group; windowed)" },
|
|
56
|
+
{ name: "get_retargeting_report", access: "read", summary: "One retargeting group's numbers: who came back, clicks, conversions" },
|
|
57
|
+
{ name: "get_audiences", access: "read", summary: "Declared and discovered audiences with evidence, and what blocks promoting the discovered set" },
|
|
58
|
+
{ name: "get_site_styles", access: "read", summary: "Captured site styles per role, whether colors were measured, last scan, and site audit score" },
|
|
59
|
+
{ name: "get_region_history", access: "read", summary: "A region's published versions over time and whether it is still found on the live page" },
|
|
60
|
+
// Agent access writes (one tool per area; each action is one mgmt route)
|
|
61
|
+
{ name: "manage_generation", access: "write", summary: "Generate and edit written versions: queue generation, auto-fill, rewrite depth, regions, campaign versions, pull requests (Generate area)" },
|
|
62
|
+
{ name: "manage_approvals", access: "write", summary: "Approve or reject generated versions, require approval, publish, roll back or pin a region version, promote a variant (Approve and publish area)" },
|
|
63
|
+
{ name: "manage_tests", access: "write", summary: "Archive or restore components and regions, lift guardrail pauses, proof window, observation-only mode, restrict versions by context (Run tests area)" },
|
|
64
|
+
{ name: "manage_goals", access: "write", summary: "Edit, publish or archive goals and funnels, set a goal role, confirm or dismiss discovered goals and goal-name warnings (Goals and funnels area)" },
|
|
65
|
+
{ name: "manage_campaigns", access: "write", summary: "Campaigns, retargeting and audiences: create, update, promote or roll back, plus stage and search settings (Campaigns and audiences area)" },
|
|
66
|
+
{ name: "manage_settings", access: "write", summary: "Project settings: edit the project, origins, webhooks, site styles, report shares, previews, models, test events (Project settings area); accept, dismiss or save a structured insight is always allowed" },
|
|
52
67
|
// Setup
|
|
53
68
|
{ name: "get_integration_guide", access: "read", summary: "SDK setup guide (static \u2014 same for every project)" }
|
|
54
69
|
];
|