@sentientui/mcp 0.6.0 → 0.6.1

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.
@@ -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: "text/html"
460
+ mimeType: RESOURCE_MIME_TYPE
460
461
  },
461
462
  async (uri) => ({
462
463
  contents: [
463
464
  {
464
465
  uri: uri.href,
465
- mimeType: "text/html",
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
- name: "@sentientui/mcp",
1383
- version: PKG_VERSION
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
@@ -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: "text/html"
468
+ mimeType: RESOURCE_MIME_TYPE
468
469
  },
469
470
  async (uri) => ({
470
471
  contents: [
471
472
  {
472
473
  uri: uri.href,
473
- mimeType: "text/html",
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
- name: "@sentientui/mcp",
1391
- version: PKG_VERSION
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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ApiClient,
4
4
  createMcpServer
5
- } from "./chunk-LZDDLCPW.js";
5
+ } from "./chunk-OQ2K3O7A.js";
6
6
 
7
7
  // src/index.ts
8
8
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/lib.cjs CHANGED
@@ -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: "text/html"
493
+ mimeType: RESOURCE_MIME_TYPE
493
494
  },
494
495
  async (uri) => ({
495
496
  contents: [
496
497
  {
497
498
  uri: uri.href,
498
- mimeType: "text/html",
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
- name: "@sentientui/mcp",
1416
- version: PKG_VERSION
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
@@ -3,7 +3,7 @@ import {
3
3
  ApiClient,
4
4
  ApiError,
5
5
  createMcpServer
6
- } from "./chunk-LZDDLCPW.js";
6
+ } from "./chunk-OQ2K3O7A.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.6.0",
3
+ "version": "0.6.1",
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",