mcp-ts-template 3.0.2 → 3.0.3
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 +15 -0
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
+
> **Try it live** — A public demo instance is running at `https://mcp-ts-template.caseyjhand.com/mcp`. Connect any MCP client to test the template's tools and resources without installing anything.
|
|
19
|
+
|
|
18
20
|
## Features
|
|
19
21
|
|
|
20
22
|
- Define tools and resources in single, self-contained files. The framework handles registration.
|
|
@@ -120,6 +122,19 @@ Add the following to your MCP client configuration file.
|
|
|
120
122
|
}
|
|
121
123
|
```
|
|
122
124
|
|
|
125
|
+
Or connect to the public demo server over HTTP — no installation required:
|
|
126
|
+
|
|
127
|
+
```json
|
|
128
|
+
{
|
|
129
|
+
"mcpServers": {
|
|
130
|
+
"mcp-ts-template": {
|
|
131
|
+
"type": "streamable-http",
|
|
132
|
+
"url": "https://mcp-ts-template.caseyjhand.com/mcp"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
123
138
|
### Prerequisites
|
|
124
139
|
|
|
125
140
|
- [Bun v1.2.0](https://bun.sh/) or higher.
|
package/dist/index.js
CHANGED
|
@@ -169300,6 +169300,7 @@ var Pe = g.object({ method: g.literal("ui/notifications/host-context-changed"),
|
|
|
169300
169300
|
var M6 = g.object({ method: g.literal("ui/update-model-context"), params: g.object({ content: g.array(ContentBlockSchema).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: g.record(g.string(), g.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) });
|
|
169301
169301
|
var R6 = g.object({ method: g.literal("ui/initialize"), params: g.object({ appInfo: ImplementationSchema.describe("App identification (name and version)."), appCapabilities: XI.describe("Features and capabilities this app provides."), protocolVersion: g.string().describe("Protocol version this app supports.") }) });
|
|
169302
169302
|
var je = g.object({ protocolVersion: g.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: ImplementationSchema.describe("Host application identification and version."), hostCapabilities: VI.describe("Features and capabilities provided by the host."), hostContext: Se.describe("Rich context about the host environment.") }).passthrough();
|
|
169303
|
+
var Je = "ui/resourceUri";
|
|
169303
169304
|
var AI = "text/html;profile=mcp-app";
|
|
169304
169305
|
|
|
169305
169306
|
class h6 extends Protocol {
|
|
@@ -171909,7 +171910,7 @@ class TaskManager {
|
|
|
171909
171910
|
// src/mcp-server/tools/definitions/template-async-countdown.task-tool.ts
|
|
171910
171911
|
var TOOL_NAME = "template_async_countdown";
|
|
171911
171912
|
var TOOL_TITLE = "Async Countdown (Task Demo)";
|
|
171912
|
-
var TOOL_DESCRIPTION = "Demonstrates the MCP Tasks API with a countdown timer.
|
|
171913
|
+
var TOOL_DESCRIPTION = "Demonstrates the MCP Tasks API with a countdown timer. When the client supports tasks, returns immediately with a task handle for polling. Otherwise, runs synchronously and returns the result directly.";
|
|
171913
171914
|
var InputSchema = exports_external.object({
|
|
171914
171915
|
seconds: exports_external.number().int().min(1).max(60).describe("Number of seconds to count down (1-60)"),
|
|
171915
171916
|
message: exports_external.string().optional().describe("Optional message to include in the final result"),
|
|
@@ -172016,7 +172017,7 @@ var asyncCountdownTaskTool = {
|
|
|
172016
172017
|
openWorldHint: false
|
|
172017
172018
|
},
|
|
172018
172019
|
execution: {
|
|
172019
|
-
taskSupport: "
|
|
172020
|
+
taskSupport: "optional"
|
|
172020
172021
|
},
|
|
172021
172022
|
taskHandlers: {
|
|
172022
172023
|
createTask: async (args, extra) => {
|
|
@@ -172323,7 +172324,8 @@ var dataExplorerAppTool = {
|
|
|
172323
172324
|
logic: withToolAuth(["tool:data-explorer:read"], dataExplorerLogic),
|
|
172324
172325
|
responseFormatter: responseFormatter3,
|
|
172325
172326
|
_meta: {
|
|
172326
|
-
ui: { resourceUri: UI_RESOURCE_URI }
|
|
172327
|
+
ui: { resourceUri: UI_RESOURCE_URI },
|
|
172328
|
+
[Je]: UI_RESOURCE_URI
|
|
172327
172329
|
}
|
|
172328
172330
|
};
|
|
172329
172331
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-ts-template",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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",
|