@sentientui/mcp 0.30.1 → 0.30.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.
- package/dist/{chunk-OTJE277E.js → chunk-5BO3KNZF.js} +11 -3
- package/dist/index.cjs +11 -3
- package/dist/index.js +1 -1
- package/dist/lib.cjs +11 -3
- package/dist/lib.js +1 -1
- package/package.json +1 -1
|
@@ -606,7 +606,8 @@ function registerProjectTools(server, client) {
|
|
|
606
606
|
text: [
|
|
607
607
|
`Created project "${name}" (id: ${created.id}, type: ${resolvedContextType}).`,
|
|
608
608
|
`Public key: ${created.apiKey}`,
|
|
609
|
-
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component
|
|
609
|
+
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component.`,
|
|
610
|
+
`Once the site is deployed, its origin must be allowed (add_origin) \u2014 the first https origin is allowed automatically, once, while the project is new and has no live domain.`
|
|
610
611
|
].join("\n")
|
|
611
612
|
}],
|
|
612
613
|
structuredContent: {
|
|
@@ -622,7 +623,7 @@ function registerProjectTools(server, client) {
|
|
|
622
623
|
"add_origin",
|
|
623
624
|
{
|
|
624
625
|
title: "Add allowed origin",
|
|
625
|
-
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
626
|
+
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Call it right after you deploy or publish a site that uses SentientUI (a ChatGPT Sites, Lovable, v0, Vercel or Netlify URL, or a custom domain): until its origin is allowed, every request from it gets 403 origin_not_allowed (the response body and a browser console warning name the refused origin) and nothing is recorded. A project in its first 14 days with no live domain yet allows its first https origin by itself, once \u2014 every later domain (www vs apex, staging, previews) needs this. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
626
627
|
inputSchema: {
|
|
627
628
|
projectId: projectIdSchema,
|
|
628
629
|
origin: z2.string().min(1).max(500).describe("The site origin, e.g. https://www.example.com (a pasted page URL is reduced to its origin)")
|
|
@@ -3472,6 +3473,13 @@ exception is a visitor arriving on a campaign link, whose first page can already
|
|
|
3472
3473
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
3473
3474
|
4. To learn from real traffic: create a project at https://sentient-ui.com and set
|
|
3474
3475
|
NEXT_PUBLIC_SENTIENT_API_KEY=pk_... in .env.local.
|
|
3476
|
+
5. After you deploy or publish the site, allow its origin (scheme + host, e.g.
|
|
3477
|
+
https://my-site.lovable.app) with add_origin, or dashboard -> Settings -> Allowed domains.
|
|
3478
|
+
Until then every request from it is refused (403 origin_not_allowed \u2014 the JSON body names the
|
|
3479
|
+
origin and the fix, and the browser console shows "[sentient] Not in Allowed domains (MCP
|
|
3480
|
+
add_origin): <origin>") and nothing is recorded. A project under 14 days old with no live domain yet allows its
|
|
3481
|
+
first https origin by itself, once; each further domain (www vs apex, staging, preview deploys,
|
|
3482
|
+
a custom domain added later) must be added. localhost:3000/3001 are allowed from the start.
|
|
3475
3483
|
|
|
3476
3484
|
## Rung 1 \u2014 Style (CSS only)
|
|
3477
3485
|
|
|
@@ -4993,7 +5001,7 @@ Known people (get_known_people): a person is "known" once they have reached the
|
|
|
4993
5001
|
Write tools change what real visitors see: confirm with the user first. Call get_agent_access before a manage_* write.`;
|
|
4994
5002
|
|
|
4995
5003
|
// src/server.ts
|
|
4996
|
-
var PKG_VERSION = true ? "0.30.
|
|
5004
|
+
var PKG_VERSION = true ? "0.30.2" : "0.0.0-dev";
|
|
4997
5005
|
function createMcpServer(client) {
|
|
4998
5006
|
const server = new McpServer(
|
|
4999
5007
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -334,7 +334,8 @@ function registerProjectTools(server, client) {
|
|
|
334
334
|
text: [
|
|
335
335
|
`Created project "${name}" (id: ${created.id}, type: ${resolvedContextType}).`,
|
|
336
336
|
`Public key: ${created.apiKey}`,
|
|
337
|
-
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component
|
|
337
|
+
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component.`,
|
|
338
|
+
`Once the site is deployed, its origin must be allowed (add_origin) \u2014 the first https origin is allowed automatically, once, while the project is new and has no live domain.`
|
|
338
339
|
].join("\n")
|
|
339
340
|
}],
|
|
340
341
|
structuredContent: {
|
|
@@ -350,7 +351,7 @@ function registerProjectTools(server, client) {
|
|
|
350
351
|
"add_origin",
|
|
351
352
|
{
|
|
352
353
|
title: "Add allowed origin",
|
|
353
|
-
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
354
|
+
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Call it right after you deploy or publish a site that uses SentientUI (a ChatGPT Sites, Lovable, v0, Vercel or Netlify URL, or a custom domain): until its origin is allowed, every request from it gets 403 origin_not_allowed (the response body and a browser console warning name the refused origin) and nothing is recorded. A project in its first 14 days with no live domain yet allows its first https origin by itself, once \u2014 every later domain (www vs apex, staging, previews) needs this. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
354
355
|
inputSchema: {
|
|
355
356
|
projectId: projectIdSchema,
|
|
356
357
|
origin: import_v32.z.string().min(1).max(500).describe("The site origin, e.g. https://www.example.com (a pasted page URL is reduced to its origin)")
|
|
@@ -3476,6 +3477,13 @@ exception is a visitor arriving on a campaign link, whose first page can already
|
|
|
3476
3477
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
3477
3478
|
4. To learn from real traffic: create a project at https://sentient-ui.com and set
|
|
3478
3479
|
NEXT_PUBLIC_SENTIENT_API_KEY=pk_... in .env.local.
|
|
3480
|
+
5. After you deploy or publish the site, allow its origin (scheme + host, e.g.
|
|
3481
|
+
https://my-site.lovable.app) with add_origin, or dashboard -> Settings -> Allowed domains.
|
|
3482
|
+
Until then every request from it is refused (403 origin_not_allowed \u2014 the JSON body names the
|
|
3483
|
+
origin and the fix, and the browser console shows "[sentient] Not in Allowed domains (MCP
|
|
3484
|
+
add_origin): <origin>") and nothing is recorded. A project under 14 days old with no live domain yet allows its
|
|
3485
|
+
first https origin by itself, once; each further domain (www vs apex, staging, preview deploys,
|
|
3486
|
+
a custom domain added later) must be added. localhost:3000/3001 are allowed from the start.
|
|
3479
3487
|
|
|
3480
3488
|
## Rung 1 \u2014 Style (CSS only)
|
|
3481
3489
|
|
|
@@ -4997,7 +5005,7 @@ Known people (get_known_people): a person is "known" once they have reached the
|
|
|
4997
5005
|
Write tools change what real visitors see: confirm with the user first. Call get_agent_access before a manage_* write.`;
|
|
4998
5006
|
|
|
4999
5007
|
// src/server.ts
|
|
5000
|
-
var PKG_VERSION = true ? "0.30.
|
|
5008
|
+
var PKG_VERSION = true ? "0.30.2" : "0.0.0-dev";
|
|
5001
5009
|
function createMcpServer(client) {
|
|
5002
5010
|
const server = new import_mcp.McpServer(
|
|
5003
5011
|
{
|
package/dist/index.js
CHANGED
package/dist/lib.cjs
CHANGED
|
@@ -360,7 +360,8 @@ function registerProjectTools(server, client) {
|
|
|
360
360
|
text: [
|
|
361
361
|
`Created project "${name}" (id: ${created.id}, type: ${resolvedContextType}).`,
|
|
362
362
|
`Public key: ${created.apiKey}`,
|
|
363
|
-
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component
|
|
363
|
+
`Next: install @sentientui/react with this key. Ask me to pull the setup guide (get_integration_guide) and I'll wrap your first component.`,
|
|
364
|
+
`Once the site is deployed, its origin must be allowed (add_origin) \u2014 the first https origin is allowed automatically, once, while the project is new and has no live domain.`
|
|
364
365
|
].join("\n")
|
|
365
366
|
}],
|
|
366
367
|
structuredContent: {
|
|
@@ -376,7 +377,7 @@ function registerProjectTools(server, client) {
|
|
|
376
377
|
"add_origin",
|
|
377
378
|
{
|
|
378
379
|
title: "Add allowed origin",
|
|
379
|
-
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
380
|
+
description: "Allow-list a site origin (scheme + host, e.g. https://www.example.com) so the SDK's events from it are accepted. Call it right after you deploy or publish a site that uses SentientUI (a ChatGPT Sites, Lovable, v0, Vercel or Netlify URL, or a custom domain): until its origin is allowed, every request from it gets 403 origin_not_allowed (the response body and a browser console warning name the refused origin) and nothing is recorded. A project in its first 14 days with no live domain yet allows its first https origin by itself, once \u2014 every later domain (www vs apex, staging, previews) needs this. Idempotent: an origin already on the list is left as is. Removing an origin is dashboard-only. Needs an editor/admin login or the project's sk_ server key. Confirm the exact origin with the user first \u2014 an allowed origin can send events into this project.",
|
|
380
381
|
inputSchema: {
|
|
381
382
|
projectId: projectIdSchema,
|
|
382
383
|
origin: import_v32.z.string().min(1).max(500).describe("The site origin, e.g. https://www.example.com (a pasted page URL is reduced to its origin)")
|
|
@@ -3502,6 +3503,13 @@ exception is a visitor arriving on a campaign link, whose first page can already
|
|
|
3502
3503
|
heuristic. No API key needed. Against a real project the key must be one you declared.
|
|
3503
3504
|
4. To learn from real traffic: create a project at https://sentient-ui.com and set
|
|
3504
3505
|
NEXT_PUBLIC_SENTIENT_API_KEY=pk_... in .env.local.
|
|
3506
|
+
5. After you deploy or publish the site, allow its origin (scheme + host, e.g.
|
|
3507
|
+
https://my-site.lovable.app) with add_origin, or dashboard -> Settings -> Allowed domains.
|
|
3508
|
+
Until then every request from it is refused (403 origin_not_allowed \u2014 the JSON body names the
|
|
3509
|
+
origin and the fix, and the browser console shows "[sentient] Not in Allowed domains (MCP
|
|
3510
|
+
add_origin): <origin>") and nothing is recorded. A project under 14 days old with no live domain yet allows its
|
|
3511
|
+
first https origin by itself, once; each further domain (www vs apex, staging, preview deploys,
|
|
3512
|
+
a custom domain added later) must be added. localhost:3000/3001 are allowed from the start.
|
|
3505
3513
|
|
|
3506
3514
|
## Rung 1 \u2014 Style (CSS only)
|
|
3507
3515
|
|
|
@@ -5023,7 +5031,7 @@ Known people (get_known_people): a person is "known" once they have reached the
|
|
|
5023
5031
|
Write tools change what real visitors see: confirm with the user first. Call get_agent_access before a manage_* write.`;
|
|
5024
5032
|
|
|
5025
5033
|
// src/server.ts
|
|
5026
|
-
var PKG_VERSION = true ? "0.30.
|
|
5034
|
+
var PKG_VERSION = true ? "0.30.2" : "0.0.0-dev";
|
|
5027
5035
|
function createMcpServer(client) {
|
|
5028
5036
|
const server = new import_mcp.McpServer(
|
|
5029
5037
|
{
|
package/dist/lib.js
CHANGED