mcp-ts-template 2.3.0 → 2.3.2
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 +3 -4
- package/package.json +16 -19
- package/dist/worker.js +0 -62618
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<div align="center">
|
|
7
7
|
|
|
8
|
-
[](./CHANGELOG.md) [](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-06-18/changelog.mdx) [](https://modelcontextprotocol.io/) [](./LICENSE) [](https://github.com/cyanheads/mcp-ts-template/issues) [](https://www.typescriptlang.org/) [](https://bun.sh/) [](./coverage/lcov-report/)
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
11
|
|
package/dist/index.js
CHANGED
|
@@ -117536,7 +117536,7 @@ var ErrorSchema = z.object({
|
|
|
117536
117536
|
// package.json
|
|
117537
117537
|
var package_default = {
|
|
117538
117538
|
name: "mcp-ts-template",
|
|
117539
|
-
version: "2.
|
|
117539
|
+
version: "2.3.0",
|
|
117540
117540
|
mcpName: "io.github.cyanheads/mcp-ts-template",
|
|
117541
117541
|
description: "The definitive, production-grade template for building powerful and scalable Model Context Protocol (MCP) servers with TypeScript, featuring built-in observability (OpenTelemetry), declarative tooling, robust error handling, and a modular, DI-driven architecture.",
|
|
117542
117542
|
main: "dist/index.js",
|
|
@@ -125056,7 +125056,7 @@ var _deployments_endpoints = new Set([
|
|
|
125056
125056
|
"/batches",
|
|
125057
125057
|
"/images/edits"
|
|
125058
125058
|
]);
|
|
125059
|
-
// src/services/llm
|
|
125059
|
+
// src/services/llm/providers/openrouter.provider.ts
|
|
125060
125060
|
var import_tsyringe2 = __toESM(require_cjs3(), 1);
|
|
125061
125061
|
class OpenRouterProvider {
|
|
125062
125062
|
rateLimiter;
|
|
@@ -125492,7 +125492,7 @@ WhisperProvider = __legacyDecorateClassTS([
|
|
|
125492
125492
|
])
|
|
125493
125493
|
], WhisperProvider);
|
|
125494
125494
|
|
|
125495
|
-
// src/services/speech/
|
|
125495
|
+
// src/services/speech/core/SpeechService.ts
|
|
125496
125496
|
function createSpeechProvider(config2) {
|
|
125497
125497
|
logger.debug(`Creating speech provider: ${config2.provider}`);
|
|
125498
125498
|
switch (config2.provider) {
|
|
@@ -125554,7 +125554,6 @@ class SpeechService2 {
|
|
|
125554
125554
|
};
|
|
125555
125555
|
}
|
|
125556
125556
|
}
|
|
125557
|
-
|
|
125558
125557
|
// src/storage/core/StorageService.ts
|
|
125559
125558
|
var import_tsyringe5 = __toESM(require_cjs3(), 1);
|
|
125560
125559
|
function requireTenantId(context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-ts-template",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"mcpName": "io.github.cyanheads/mcp-ts-template",
|
|
5
5
|
"description": "The definitive, production-grade template for building powerful and scalable Model Context Protocol (MCP) servers with TypeScript, featuring built-in observability (OpenTelemetry), declarative tooling, robust error handling, and a modular, DI-driven architecture.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,30 +31,27 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "bun build ./src/index.ts --outdir ./dist --target node",
|
|
33
33
|
"build:worker": "bun build ./src/worker.ts --outdir ./dist --target bun --no-external",
|
|
34
|
-
"deploy:dev": "bunx wrangler dev",
|
|
35
|
-
"deploy:prod": "bunx wrangler deploy",
|
|
34
|
+
"deploy:dev": "MCP_TRANSPORT_TYPE=http bunx wrangler dev",
|
|
35
|
+
"deploy:prod": "MCP_TRANSPORT_TYPE=http bunx wrangler deploy",
|
|
36
36
|
"start": "bun ./dist/index.js",
|
|
37
|
-
"start:stdio": "
|
|
38
|
-
"start:http": "
|
|
39
|
-
"start:agent": "MCP_LOG_LEVEL=debug bun ./dist/agent/cli/boot.js",
|
|
37
|
+
"start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
|
|
38
|
+
"start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js",
|
|
40
39
|
"dev": "bun --watch src/index.ts",
|
|
41
40
|
"dev:stdio": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio bun --watch src/index.ts",
|
|
42
41
|
"dev:http": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http bun --watch src/index.ts",
|
|
43
|
-
"dev:agent": "MCP_LOG_LEVEL=debug bun --watch src/agent/cli/boot.ts",
|
|
44
42
|
"devdocs": "bun run scripts/devdocs.ts",
|
|
45
43
|
"devcheck": "bun run scripts/devcheck.ts",
|
|
46
44
|
"rebuild": "bun run scripts/clean.ts && bun run build",
|
|
47
|
-
"docs:generate": "typedoc",
|
|
45
|
+
"docs:generate": "bunx typedoc",
|
|
48
46
|
"depcheck": "bunx depcheck",
|
|
49
|
-
"lint": "eslint .",
|
|
50
|
-
"lint:fix": "eslint . --fix",
|
|
51
|
-
"typecheck": "tsc --noEmit",
|
|
47
|
+
"lint": "bunx eslint .",
|
|
48
|
+
"lint:fix": "bunx eslint . --fix",
|
|
49
|
+
"typecheck": "bunx tsc --noEmit",
|
|
52
50
|
"tree": "bun run scripts/tree.ts",
|
|
53
51
|
"fetch-spec": "bun run scripts/fetch-openapi-spec.ts",
|
|
54
|
-
"format": "
|
|
55
|
-
"prepare": "
|
|
52
|
+
"format": "bunx prettier --write \"**/*.{ts,js,json,md,html,css}\"",
|
|
53
|
+
"prepare": "bunx husky",
|
|
56
54
|
"inspector": "bunx mcp-inspector --config mcp.json --server mcp-ts-template",
|
|
57
|
-
"db:duckdb-example": "MCP_LOG_LEVEL=debug tsc && node dist/storage/duckdbExample.js",
|
|
58
55
|
"test": "bun test --config vitest.config.ts",
|
|
59
56
|
"test:coverage": "bun test --coverage",
|
|
60
57
|
"audit": "bun audit",
|
|
@@ -83,7 +80,7 @@
|
|
|
83
80
|
"jose": "^6.1.0",
|
|
84
81
|
"js-yaml": "^4.1.0",
|
|
85
82
|
"node-cron": "^4.2.1",
|
|
86
|
-
"openai": "^6.0.
|
|
83
|
+
"openai": "^6.0.1",
|
|
87
84
|
"papaparse": "^5.5.3",
|
|
88
85
|
"partial-json": "^0.1.7",
|
|
89
86
|
"pdf-lib": "^1.17.1",
|
|
@@ -97,7 +94,7 @@
|
|
|
97
94
|
"zod": "^3.23.8"
|
|
98
95
|
},
|
|
99
96
|
"devDependencies": {
|
|
100
|
-
"@cloudflare/workers-types": "^4.
|
|
97
|
+
"@cloudflare/workers-types": "^4.20251001.0",
|
|
101
98
|
"@eslint/js": "^9.36.0",
|
|
102
99
|
"@opentelemetry/api": "^1.9.0",
|
|
103
100
|
"@opentelemetry/auto-instrumentations-node": "^0.64.6",
|
|
@@ -111,7 +108,7 @@
|
|
|
111
108
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
112
109
|
"@types/bun": "^1.2.23",
|
|
113
110
|
"@types/js-yaml": "^4.0.9",
|
|
114
|
-
"@types/node": "^24.6.
|
|
111
|
+
"@types/node": "^24.6.2",
|
|
115
112
|
"@types/node-cron": "^3.0.11",
|
|
116
113
|
"@types/papaparse": "^5.3.16",
|
|
117
114
|
"@types/sanitize-html": "^2.16.0",
|
|
@@ -130,9 +127,9 @@
|
|
|
130
127
|
"pino-pretty": "^13.1.1",
|
|
131
128
|
"prettier": "^3.6.2",
|
|
132
129
|
"typedoc": "^0.28.13",
|
|
133
|
-
"typescript": "^5.9.
|
|
130
|
+
"typescript": "^5.9.2",
|
|
134
131
|
"typescript-eslint": "8.45.0",
|
|
135
|
-
"vite": "^7.1.
|
|
132
|
+
"vite": "^7.1.8",
|
|
136
133
|
"vite-tsconfig-paths": "^5.1.4",
|
|
137
134
|
"vitest": "^3.2.4"
|
|
138
135
|
},
|