mcp-ts-template 3.0.3 → 3.0.4

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-3.0.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2025--11--25-8A2BE2.svg?style=flat-square)](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/changelog.mdx) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.27.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE)
10
+ [![Version](https://img.shields.io/badge/Version-3.0.4-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP Spec](https://img.shields.io/badge/MCP%20Spec-2025--11--25-8A2BE2.svg?style=flat-square)](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/changelog.mdx) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.27.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE)
11
11
 
12
12
  [![Status](https://img.shields.io/badge/Status-Stable-brightgreen.svg?style=flat-square)](https://github.com/cyanheads/mcp-ts-template/issues) [![TypeScript](https://img.shields.io/badge/TypeScript-^5.9.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/) [![Code Coverage](https://img.shields.io/badge/Coverage-86.30%25-brightgreen.svg?style=flat-square)](./coverage/index.html)
13
13
 
package/dist/index.js CHANGED
@@ -144586,7 +144586,7 @@ config(en_default());
144586
144586
  // package.json
144587
144587
  var package_default = {
144588
144588
  name: "mcp-ts-template",
144589
- version: "3.0.2",
144589
+ version: "3.0.4",
144590
144590
  mcpName: "io.github.cyanheads/mcp-ts-template",
144591
144591
  description: "TypeScript template for MCP servers with declarative tools/resources, pluggable auth, multi-backend storage, OpenTelemetry observability, and Cloudflare Workers support.",
144592
144592
  main: "dist/index.js",
@@ -169587,7 +169587,7 @@ var APP_HTML = `<!DOCTYPE html>
169587
169587
  </div>
169588
169588
 
169589
169589
  <script type="module">
169590
- import { App } from "https://esm.sh/@modelcontextprotocol/ext-apps";
169590
+ import { App } from "https://unpkg.com/@modelcontextprotocol/ext-apps@1/app-with-deps";
169591
169591
 
169592
169592
  const app = new App({ name: "Data Explorer", version: "1.0.0" });
169593
169593
 
@@ -169713,7 +169713,7 @@ var APP_HTML = `<!DOCTYPE html>
169713
169713
  const text = "User selected " + selectedRows.length + " row(s):\\n" +
169714
169714
  JSON.stringify(selectedRows, null, 2);
169715
169715
  try {
169716
- await app.sendMessage({ role: "user", content: { type: "text", text } });
169716
+ await app.sendMessage({ role: "user", content: [{ type: "text", text }] });
169717
169717
  } catch (err) {
169718
169718
  console.error("Failed to send selection:", err);
169719
169719
  }
@@ -169773,7 +169773,16 @@ var dataExplorerUiResource = {
169773
169773
  }),
169774
169774
  logic: withResourceAuth(["resource:data-explorer-ui:read"], dataExplorerUiLogic),
169775
169775
  responseFormatter: (result, meta3) => [
169776
- { uri: meta3.uri.href, mimeType: meta3.mimeType, text: result }
169776
+ {
169777
+ uri: meta3.uri.href,
169778
+ mimeType: meta3.mimeType,
169779
+ text: result,
169780
+ _meta: {
169781
+ ui: {
169782
+ csp: { resource_domains: ["https://unpkg.com"] }
169783
+ }
169784
+ }
169785
+ }
169777
169786
  ]
169778
169787
  };
169779
169788
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-ts-template",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "mcpName": "io.github.cyanheads/mcp-ts-template",
5
5
  "description": "TypeScript template for MCP servers with declarative tools/resources, pluggable auth, multi-backend storage, OpenTelemetry observability, and Cloudflare Workers support.",
6
6
  "main": "dist/index.js",