@sentientui/mcp 0.6.0 → 0.7.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/dist/{chunk-LZDDLCPW.js → chunk-AGEOG4RI.js} +23 -7
- package/dist/index.cjs +23 -7
- package/dist/index.js +1 -1
- package/dist/lib.cjs +23 -7
- package/dist/lib.js +1 -1
- package/package.json +1 -1
|
@@ -78,7 +78,7 @@ function registerProjectTools(server, client) {
|
|
|
78
78
|
inputSchema: {
|
|
79
79
|
name: z.string().min(1).describe("Human-readable project name"),
|
|
80
80
|
contextType: z.enum(["saas", "ecommerce", "marketing", "internal"]).optional().describe("What kind of product this is; defaults to saas"),
|
|
81
|
-
framework: z.enum(["next
|
|
81
|
+
framework: z.enum(["next", "react", "core"]).optional().describe("How the site is built \u2014 next, react, or core (website builder/CMS); defaults to next"),
|
|
82
82
|
websiteUrl: z.string().optional().describe("Production site origin to allow-list so the SDK's events aren't origin-blocked on day one")
|
|
83
83
|
},
|
|
84
84
|
outputSchema: {
|
|
@@ -429,6 +429,7 @@ ${BOOTSTRAP_JS}
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
// src/ui/index.ts
|
|
432
|
+
var RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
432
433
|
var UI_TOOL_VIZ = {
|
|
433
434
|
get_persona_breakdown: "persona-breakdown",
|
|
434
435
|
get_variant_performance: "variant-performance",
|
|
@@ -456,13 +457,13 @@ function registerUiResources(server) {
|
|
|
456
457
|
{
|
|
457
458
|
title: `${VIZ_TITLES[id]} (UI)`,
|
|
458
459
|
description: `Interactive ${VIZ_TITLES[id]} view for agent hosts that support MCP UI.`,
|
|
459
|
-
mimeType:
|
|
460
|
+
mimeType: RESOURCE_MIME_TYPE
|
|
460
461
|
},
|
|
461
462
|
async (uri) => ({
|
|
462
463
|
contents: [
|
|
463
464
|
{
|
|
464
465
|
uri: uri.href,
|
|
465
|
-
mimeType:
|
|
466
|
+
mimeType: RESOURCE_MIME_TYPE,
|
|
466
467
|
text: buildTemplate(id)
|
|
467
468
|
}
|
|
468
469
|
]
|
|
@@ -1378,10 +1379,25 @@ function registerIntegrationGuideTools(server) {
|
|
|
1378
1379
|
// src/server.ts
|
|
1379
1380
|
var { version: PKG_VERSION } = createRequire(import.meta.url)("../package.json");
|
|
1380
1381
|
function createMcpServer(client) {
|
|
1381
|
-
const server = new McpServer(
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1382
|
+
const server = new McpServer(
|
|
1383
|
+
{
|
|
1384
|
+
name: "@sentientui/mcp",
|
|
1385
|
+
version: PKG_VERSION
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
// MCP Apps (SEP-1865): advertise the `io.modelcontextprotocol/ui` extension
|
|
1389
|
+
// in the initialize handshake so UI-capable hosts and agent-readiness
|
|
1390
|
+
// scanners negotiate it. Merged with the tools/resources capabilities the
|
|
1391
|
+
// SDK adds as they're registered below.
|
|
1392
|
+
capabilities: {
|
|
1393
|
+
extensions: {
|
|
1394
|
+
"io.modelcontextprotocol/ui": {
|
|
1395
|
+
mimeTypes: [RESOURCE_MIME_TYPE]
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
);
|
|
1385
1401
|
registerUiResources(server);
|
|
1386
1402
|
registerProjectTools(server, client);
|
|
1387
1403
|
registerComponentTools(server, client);
|
package/dist/index.cjs
CHANGED
|
@@ -86,7 +86,7 @@ function registerProjectTools(server, client) {
|
|
|
86
86
|
inputSchema: {
|
|
87
87
|
name: import_zod.z.string().min(1).describe("Human-readable project name"),
|
|
88
88
|
contextType: import_zod.z.enum(["saas", "ecommerce", "marketing", "internal"]).optional().describe("What kind of product this is; defaults to saas"),
|
|
89
|
-
framework: import_zod.z.enum(["next
|
|
89
|
+
framework: import_zod.z.enum(["next", "react", "core"]).optional().describe("How the site is built \u2014 next, react, or core (website builder/CMS); defaults to next"),
|
|
90
90
|
websiteUrl: import_zod.z.string().optional().describe("Production site origin to allow-list so the SDK's events aren't origin-blocked on day one")
|
|
91
91
|
},
|
|
92
92
|
outputSchema: {
|
|
@@ -437,6 +437,7 @@ ${BOOTSTRAP_JS}
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
// src/ui/index.ts
|
|
440
|
+
var RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
440
441
|
var UI_TOOL_VIZ = {
|
|
441
442
|
get_persona_breakdown: "persona-breakdown",
|
|
442
443
|
get_variant_performance: "variant-performance",
|
|
@@ -464,13 +465,13 @@ function registerUiResources(server) {
|
|
|
464
465
|
{
|
|
465
466
|
title: `${VIZ_TITLES[id]} (UI)`,
|
|
466
467
|
description: `Interactive ${VIZ_TITLES[id]} view for agent hosts that support MCP UI.`,
|
|
467
|
-
mimeType:
|
|
468
|
+
mimeType: RESOURCE_MIME_TYPE
|
|
468
469
|
},
|
|
469
470
|
async (uri) => ({
|
|
470
471
|
contents: [
|
|
471
472
|
{
|
|
472
473
|
uri: uri.href,
|
|
473
|
-
mimeType:
|
|
474
|
+
mimeType: RESOURCE_MIME_TYPE,
|
|
474
475
|
text: buildTemplate(id)
|
|
475
476
|
}
|
|
476
477
|
]
|
|
@@ -1386,10 +1387,25 @@ function registerIntegrationGuideTools(server) {
|
|
|
1386
1387
|
// src/server.ts
|
|
1387
1388
|
var { version: PKG_VERSION } = (0, import_node_module.createRequire)(importMetaUrl)("../package.json");
|
|
1388
1389
|
function createMcpServer(client) {
|
|
1389
|
-
const server = new import_mcp.McpServer(
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1390
|
+
const server = new import_mcp.McpServer(
|
|
1391
|
+
{
|
|
1392
|
+
name: "@sentientui/mcp",
|
|
1393
|
+
version: PKG_VERSION
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
// MCP Apps (SEP-1865): advertise the `io.modelcontextprotocol/ui` extension
|
|
1397
|
+
// in the initialize handshake so UI-capable hosts and agent-readiness
|
|
1398
|
+
// scanners negotiate it. Merged with the tools/resources capabilities the
|
|
1399
|
+
// SDK adds as they're registered below.
|
|
1400
|
+
capabilities: {
|
|
1401
|
+
extensions: {
|
|
1402
|
+
"io.modelcontextprotocol/ui": {
|
|
1403
|
+
mimeTypes: [RESOURCE_MIME_TYPE]
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
);
|
|
1393
1409
|
registerUiResources(server);
|
|
1394
1410
|
registerProjectTools(server, client);
|
|
1395
1411
|
registerComponentTools(server, client);
|
package/dist/index.js
CHANGED
package/dist/lib.cjs
CHANGED
|
@@ -111,7 +111,7 @@ function registerProjectTools(server, client) {
|
|
|
111
111
|
inputSchema: {
|
|
112
112
|
name: import_zod.z.string().min(1).describe("Human-readable project name"),
|
|
113
113
|
contextType: import_zod.z.enum(["saas", "ecommerce", "marketing", "internal"]).optional().describe("What kind of product this is; defaults to saas"),
|
|
114
|
-
framework: import_zod.z.enum(["next
|
|
114
|
+
framework: import_zod.z.enum(["next", "react", "core"]).optional().describe("How the site is built \u2014 next, react, or core (website builder/CMS); defaults to next"),
|
|
115
115
|
websiteUrl: import_zod.z.string().optional().describe("Production site origin to allow-list so the SDK's events aren't origin-blocked on day one")
|
|
116
116
|
},
|
|
117
117
|
outputSchema: {
|
|
@@ -462,6 +462,7 @@ ${BOOTSTRAP_JS}
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
// src/ui/index.ts
|
|
465
|
+
var RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
465
466
|
var UI_TOOL_VIZ = {
|
|
466
467
|
get_persona_breakdown: "persona-breakdown",
|
|
467
468
|
get_variant_performance: "variant-performance",
|
|
@@ -489,13 +490,13 @@ function registerUiResources(server) {
|
|
|
489
490
|
{
|
|
490
491
|
title: `${VIZ_TITLES[id]} (UI)`,
|
|
491
492
|
description: `Interactive ${VIZ_TITLES[id]} view for agent hosts that support MCP UI.`,
|
|
492
|
-
mimeType:
|
|
493
|
+
mimeType: RESOURCE_MIME_TYPE
|
|
493
494
|
},
|
|
494
495
|
async (uri) => ({
|
|
495
496
|
contents: [
|
|
496
497
|
{
|
|
497
498
|
uri: uri.href,
|
|
498
|
-
mimeType:
|
|
499
|
+
mimeType: RESOURCE_MIME_TYPE,
|
|
499
500
|
text: buildTemplate(id)
|
|
500
501
|
}
|
|
501
502
|
]
|
|
@@ -1411,10 +1412,25 @@ function registerIntegrationGuideTools(server) {
|
|
|
1411
1412
|
// src/server.ts
|
|
1412
1413
|
var { version: PKG_VERSION } = (0, import_node_module.createRequire)(importMetaUrl)("../package.json");
|
|
1413
1414
|
function createMcpServer(client) {
|
|
1414
|
-
const server = new import_mcp.McpServer(
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1415
|
+
const server = new import_mcp.McpServer(
|
|
1416
|
+
{
|
|
1417
|
+
name: "@sentientui/mcp",
|
|
1418
|
+
version: PKG_VERSION
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
// MCP Apps (SEP-1865): advertise the `io.modelcontextprotocol/ui` extension
|
|
1422
|
+
// in the initialize handshake so UI-capable hosts and agent-readiness
|
|
1423
|
+
// scanners negotiate it. Merged with the tools/resources capabilities the
|
|
1424
|
+
// SDK adds as they're registered below.
|
|
1425
|
+
capabilities: {
|
|
1426
|
+
extensions: {
|
|
1427
|
+
"io.modelcontextprotocol/ui": {
|
|
1428
|
+
mimeTypes: [RESOURCE_MIME_TYPE]
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
);
|
|
1418
1434
|
registerUiResources(server);
|
|
1419
1435
|
registerProjectTools(server, client);
|
|
1420
1436
|
registerComponentTools(server, client);
|
package/dist/lib.js
CHANGED