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 +1 -1
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/changelog.mdx) [](https://modelcontextprotocol.io/) [](./LICENSE)
|
|
11
11
|
|
|
12
12
|
[](https://github.com/cyanheads/mcp-ts-template/issues) [](https://www.typescriptlang.org/) [](https://bun.sh/) [](./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.
|
|
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://
|
|
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
|
-
{
|
|
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
|
+
"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",
|