@sentientui/mcp 0.25.0 → 0.26.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 +12 -0
- package/README.md +12 -0
- package/dist/{chunk-U54H74Y7.js → chunk-RRJAIZNT.js} +1258 -475
- package/dist/index.cjs +1265 -476
- package/dist/index.js +8 -2
- package/dist/lib.cjs +1272 -475
- package/dist/lib.d.cts +4 -0
- package/dist/lib.d.ts +4 -0
- package/dist/lib.js +15 -1
- 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-RRJAIZNT.js";
|
|
8
8
|
|
|
9
9
|
// src/tool-catalog.ts
|
|
10
10
|
var TOOL_CATALOG = [
|
|
@@ -49,6 +49,20 @@ var TOOL_CATALOG = [
|
|
|
49
49
|
{ name: "get_agent_traffic", access: "read", summary: "Which AI crawlers, automated browser sessions and agent API callers read the site (windowed)" },
|
|
50
50
|
{ name: "get_traffic_breakdown", access: "read", summary: "Where traffic came from: People vs visitors we could not confirm vs automated (7 groups, windowed)" },
|
|
51
51
|
{ name: "get_agent_legibility", access: "read", summary: "Whether the pages agents read are machine-legible, with fixes" },
|
|
52
|
+
// Agent access reads
|
|
53
|
+
{ 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)" },
|
|
54
|
+
{ 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)" },
|
|
55
|
+
{ name: "get_retargeting_report", access: "read", summary: "One retargeting group's numbers: who came back, clicks, conversions" },
|
|
56
|
+
{ name: "get_audiences", access: "read", summary: "Declared and discovered audiences with evidence, and what blocks promoting the discovered set" },
|
|
57
|
+
{ name: "get_site_styles", access: "read", summary: "Captured site styles per role, whether colors were measured, last scan, and site audit score" },
|
|
58
|
+
{ name: "get_region_history", access: "read", summary: "A region's published versions over time and whether it is still found on the live page" },
|
|
59
|
+
// Agent access writes (one tool per area; each action is one mgmt route)
|
|
60
|
+
{ name: "manage_generation", access: "write", summary: "Generate and edit written versions: queue generation, auto-fill, rewrite depth, regions, campaign versions, pull requests (Generate area)" },
|
|
61
|
+
{ 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)" },
|
|
62
|
+
{ 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)" },
|
|
63
|
+
{ 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)" },
|
|
64
|
+
{ 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)" },
|
|
65
|
+
{ 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
66
|
// Setup
|
|
53
67
|
{ name: "get_integration_guide", access: "read", summary: "SDK setup guide (static \u2014 same for every project)" }
|
|
54
68
|
];
|