@cyanheads/mcp-ts-core 0.8.17 → 0.8.19
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/CLAUDE.md +47 -46
- package/README.md +36 -38
- package/changelog/0.8.x/0.8.18.md +17 -0
- package/changelog/0.8.x/0.8.19.md +33 -0
- package/changelog/template.md +71 -44
- package/dist/cli/init.js +12 -5
- package/dist/cli/init.js.map +1 -1
- package/dist/logs/combined.log +6 -6
- package/dist/logs/error.log +4 -4
- package/dist/utils/internal/requestContext.d.ts +7 -0
- package/dist/utils/internal/requestContext.d.ts.map +1 -1
- package/dist/utils/internal/requestContext.js +1 -0
- package/dist/utils/internal/requestContext.js.map +1 -1
- package/package.json +20 -18
- package/scripts/build-changelog.ts +27 -18
- package/skills/api-telemetry/SKILL.md +222 -0
- package/skills/api-utils/SKILL.md +3 -1
- package/skills/maintenance/SKILL.md +16 -6
- package/skills/polish-docs-meta/references/package-meta.md +1 -1
- package/skills/report-issue-framework/SKILL.md +5 -3
- package/skills/report-issue-local/SKILL.md +5 -3
- package/skills/setup/SKILL.md +10 -9
- package/templates/AGENTS.md +20 -10
- package/templates/CLAUDE.md +20 -10
- package/templates/Dockerfile +2 -2
- package/templates/changelog/template.md +71 -44
- package/templates/package.json +2 -2
package/dist/cli/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,YAAY,GAAG,IAAI,CAAC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5
|
-
{"level":50,"time":
|
|
6
|
-
{"level":50,"time":
|
|
1
|
+
{"level":40,"time":1778235929533,"env":"testing","version":"0.8.19","pid":78428,"transport":"http","requestId":"Q8627-MFEM4","timestamp":"2026-05-08T10:25:29.532Z","operation":"TransportManager.start","component":"HttpTransportSetup","msg":"MCP_ALLOWED_ORIGINS is not set — CORS is wildcard for CLI clients; browser Origin headers are restricted to loopback. Set MCP_ALLOWED_ORIGINS for production deployments accepting remote browser origins."}
|
|
2
|
+
{"level":40,"time":1778235931406,"env":"testing","version":"0.8.19","pid":78428,"transport":"http","requestId":"Q8627-MFEM4","timestamp":"2026-05-08T10:25:29.532Z","operation":"TransportManager.start","component":"HttpTransportSetup","sessionId":"not-a-real-session-1778235931406","msg":"Session validation failed - invalid or hijacked session"}
|
|
3
|
+
{"level":50,"time":1778235936218,"env":"testing","version":"0.0.0-test","pid":78583,"requestId":"IF69M-6JUK9","timestamp":"2026-05-08T10:25:36.217Z","operation":"HandleToolRequest","critical":false,"errorCode":-32005,"originalErrorType":"McpError","finalErrorType":"McpError","sessionId":"4b3d45f04700813199bd658614b7755a161937d0cc1af8148285dc3ab3570631","toolName":"scoped_echo","tenantId":"authz-tenant","auth":{"sub":"authz-user","scopes":["tool:other:read"],"clientId":"authz-client","tenantId":"authz-tenant","token":"[REDACTED]"},"errorData":{"sessionId":"4b3d45f04700813199bd658614b7755a161937d0cc1af8148285dc3ab3570631","toolName":"scoped_echo","requestId":"IF69M-6JUK9","timestamp":"2026-05-08T10:25:36.217Z","tenantId":"authz-tenant","operation":"HandleToolRequest","auth":{"sub":"authz-user","scopes":["tool:other:read"],"clientId":"authz-client","tenantId":"authz-tenant","token":"[REDACTED]"},"originalErrorName":"McpError","originalMessage":"Insufficient permissions.","originalStack":"McpError: Insufficient permissions.\n at forbidden (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:84:58)\n at withRequiredScopes (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/lib/authUtils.js:61:15)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/tools/utils/toolHandlerFactory.js:146:17)\n at executeToolHandler (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:231:34)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:126:43)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Insufficient permissions.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/tools/utils/toolHandlerFactory.js:182:26)\n at executeToolHandler (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:231:34)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:126:43)\n at processTicksAndRejections (native:7:39)","msg":"Error in tool:scoped_echo: Insufficient permissions."}
|
|
4
|
+
{"level":50,"time":1778235937205,"env":"testing","version":"0.8.19","pid":78590,"requestId":"5EPAW-MLFXN","timestamp":"2026-05-08T10:25:37.204Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"POST","errorData":{"path":"/mcp","method":"POST","requestId":"5EPAW-MLFXN","timestamp":"2026-05-08T10:25:37.204Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Missing or invalid Authorization header. Bearer scheme required.","originalStack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at authMiddleware (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/authMiddleware.js:64:19)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpTransport.js:232:22)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at cors2 (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/middleware/cors/index.js:79:11)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Missing or invalid Authorization header. Bearer scheme required."}
|
|
5
|
+
{"level":50,"time":1778235937222,"env":"testing","version":"0.8.19","pid":78590,"requestId":"GJ6K8-V54G5","timestamp":"2026-05-08T10:25:37.222Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"POST","errorData":{"path":"/mcp","method":"POST","requestId":"GJ6K8-V54G5","timestamp":"2026-05-08T10:25:37.222Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Token has expired.","originalStack":"McpError: Token has expired.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at handleJoseVerifyError (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/lib/claimParser.js:56:11)\n at verify (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/strategies/jwtStrategy.js:91:13)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Token has expired.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Token has expired."}
|
|
6
|
+
{"level":50,"time":1778235937225,"env":"testing","version":"0.8.19","pid":78590,"requestId":"8DTH5-7ODPW","timestamp":"2026-05-08T10:25:37.225Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"GET","errorData":{"path":"/mcp","method":"GET","requestId":"8DTH5-7ODPW","timestamp":"2026-05-08T10:25:37.225Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Missing or invalid Authorization header. Bearer scheme required.","originalStack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at authMiddleware (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/authMiddleware.js:64:19)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpTransport.js:232:22)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at cors2 (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/middleware/cors/index.js:79:11)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Missing or invalid Authorization header. Bearer scheme required."}
|
package/dist/logs/error.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{"level":50,"time":
|
|
2
|
-
{"level":50,"time":
|
|
3
|
-
{"level":50,"time":
|
|
4
|
-
{"level":50,"time":
|
|
1
|
+
{"level":50,"time":1778235936218,"env":"testing","version":"0.0.0-test","pid":78583,"requestId":"IF69M-6JUK9","timestamp":"2026-05-08T10:25:36.217Z","operation":"HandleToolRequest","critical":false,"errorCode":-32005,"originalErrorType":"McpError","finalErrorType":"McpError","sessionId":"4b3d45f04700813199bd658614b7755a161937d0cc1af8148285dc3ab3570631","toolName":"scoped_echo","tenantId":"authz-tenant","auth":{"sub":"authz-user","scopes":["tool:other:read"],"clientId":"authz-client","tenantId":"authz-tenant","token":"[REDACTED]"},"errorData":{"sessionId":"4b3d45f04700813199bd658614b7755a161937d0cc1af8148285dc3ab3570631","toolName":"scoped_echo","requestId":"IF69M-6JUK9","timestamp":"2026-05-08T10:25:36.217Z","tenantId":"authz-tenant","operation":"HandleToolRequest","auth":{"sub":"authz-user","scopes":["tool:other:read"],"clientId":"authz-client","tenantId":"authz-tenant","token":"[REDACTED]"},"originalErrorName":"McpError","originalMessage":"Insufficient permissions.","originalStack":"McpError: Insufficient permissions.\n at forbidden (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:84:58)\n at withRequiredScopes (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/lib/authUtils.js:61:15)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/tools/utils/toolHandlerFactory.js:146:17)\n at executeToolHandler (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:231:34)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:126:43)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Insufficient permissions.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/tools/utils/toolHandlerFactory.js:182:26)\n at executeToolHandler (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:231:34)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:126:43)\n at processTicksAndRejections (native:7:39)","msg":"Error in tool:scoped_echo: Insufficient permissions."}
|
|
2
|
+
{"level":50,"time":1778235937205,"env":"testing","version":"0.8.19","pid":78590,"requestId":"5EPAW-MLFXN","timestamp":"2026-05-08T10:25:37.204Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"POST","errorData":{"path":"/mcp","method":"POST","requestId":"5EPAW-MLFXN","timestamp":"2026-05-08T10:25:37.204Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Missing or invalid Authorization header. Bearer scheme required.","originalStack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at authMiddleware (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/authMiddleware.js:64:19)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpTransport.js:232:22)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at cors2 (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/middleware/cors/index.js:79:11)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Missing or invalid Authorization header. Bearer scheme required."}
|
|
3
|
+
{"level":50,"time":1778235937222,"env":"testing","version":"0.8.19","pid":78590,"requestId":"GJ6K8-V54G5","timestamp":"2026-05-08T10:25:37.222Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"POST","errorData":{"path":"/mcp","method":"POST","requestId":"GJ6K8-V54G5","timestamp":"2026-05-08T10:25:37.222Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Token has expired.","originalStack":"McpError: Token has expired.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at handleJoseVerifyError (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/lib/claimParser.js:56:11)\n at verify (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/strategies/jwtStrategy.js:91:13)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Token has expired.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Token has expired."}
|
|
4
|
+
{"level":50,"time":1778235937225,"env":"testing","version":"0.8.19","pid":78590,"requestId":"8DTH5-7ODPW","timestamp":"2026-05-08T10:25:37.225Z","operation":"httpErrorHandler","critical":false,"errorCode":-32006,"originalErrorType":"McpError","finalErrorType":"McpError","path":"/mcp","method":"GET","errorData":{"path":"/mcp","method":"GET","requestId":"8DTH5-7ODPW","timestamp":"2026-05-08T10:25:37.225Z","operation":"httpErrorHandler","originalErrorName":"McpError","originalMessage":"Missing or invalid Authorization header. Bearer scheme required.","originalStack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at unauthorized (/Users/casey/Developer/github/mcp-ts-core/dist/types-global/errors.js:86:61)\n at authMiddleware (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/auth/authMiddleware.js:64:19)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpTransport.js:232:22)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:22:23)\n at cors2 (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/middleware/cors/index.js:79:11)\n at processTicksAndRejections (native:7:39)"},"stack":"McpError: Missing or invalid Authorization header. Bearer scheme required.\n at handleError (/Users/casey/Developer/github/mcp-ts-core/dist/utils/internal/error-handler/errorHandler.js:170:23)\n at <anonymous> (/Users/casey/Developer/github/mcp-ts-core/dist/mcp-server/transports/http/httpErrorHandler.js:59:39)\n at dispatch (/Users/casey/Developer/github/mcp-ts-core/node_modules/hono/dist/compose.js:26:25)\n at processTicksAndRejections (native:7:39)","msg":"Error in httpTransport: Missing or invalid Authorization header. Bearer scheme required."}
|
|
@@ -23,6 +23,13 @@ export interface AuthContext {
|
|
|
23
23
|
sub: string;
|
|
24
24
|
/** Tenant identifier from the `tid` JWT claim. Present only for multi-tenant tokens. */
|
|
25
25
|
tenantId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Raw bearer token from the validated request. Forwarded so handlers can
|
|
28
|
+
* relay it to upstream APIs in on-behalf-of / PAT pass-through flows.
|
|
29
|
+
* Redacted by the framework logger's pino-redact paths (`*.token`,
|
|
30
|
+
* `*.*.token`); avoid passing it to telemetry sinks that bypass that layer.
|
|
31
|
+
*/
|
|
32
|
+
token?: string;
|
|
26
33
|
/** Additional token payload properties not mapped to named fields. */
|
|
27
34
|
[key: string]: unknown;
|
|
28
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestContext.d.ts","sourceRoot":"","sources":["../../../src/utils/internal/requestContext.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"requestContext.d.ts","sourceRoot":"","sources":["../../../src/utils/internal/requestContext.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAc9E;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,WAAW;IAC1B,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,2HAA2H;IAC3H,GAAG,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B;;;;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
|
"name": "@cyanheads/mcp-ts-core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.19",
|
|
4
4
|
"mcpName": "io.github.cyanheads/mcp-ts-core",
|
|
5
5
|
"description": "Agent-native TypeScript framework for building MCP servers. Declarative definitions with auth, multi-backend storage, OpenTelemetry, and first-class support for Bun/Node/Cloudflare Workers.",
|
|
6
6
|
"main": "dist/core/index.js",
|
|
@@ -165,41 +165,42 @@
|
|
|
165
165
|
},
|
|
166
166
|
"devDependencies": {
|
|
167
167
|
"@biomejs/biome": "2.4.14",
|
|
168
|
-
"@cloudflare/vitest-pool-workers": "^0.16.
|
|
169
|
-
"@cloudflare/workers-types": "^4.
|
|
168
|
+
"@cloudflare/vitest-pool-workers": "^0.16.3",
|
|
169
|
+
"@cloudflare/workers-types": "^4.20260508.1",
|
|
170
170
|
"@duckdb/node-api": "^1.5.2-r.1",
|
|
171
|
-
"@hono/otel": "^1.1.
|
|
172
|
-
"@opentelemetry/exporter-metrics-otlp-http": "^0.
|
|
173
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
174
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
175
|
-
"@opentelemetry/instrumentation-pino": "^0.
|
|
171
|
+
"@hono/otel": "^1.1.2",
|
|
172
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.217.0",
|
|
173
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.217.0",
|
|
174
|
+
"@opentelemetry/instrumentation-http": "^0.217.0",
|
|
175
|
+
"@opentelemetry/instrumentation-pino": "^0.63.0",
|
|
176
176
|
"@opentelemetry/resources": "^2.7.1",
|
|
177
177
|
"@opentelemetry/sdk-metrics": "^2.7.1",
|
|
178
|
-
"@opentelemetry/sdk-node": "^0.
|
|
178
|
+
"@opentelemetry/sdk-node": "^0.217.0",
|
|
179
179
|
"@opentelemetry/sdk-trace-node": "^2.7.1",
|
|
180
180
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
181
181
|
"@supabase/supabase-js": "^2.105.3",
|
|
182
182
|
"@types/bun": "^1.3.13",
|
|
183
183
|
"@types/js-yaml": "^4.0.9",
|
|
184
|
-
"@types/node": "^25.6.
|
|
184
|
+
"@types/node": "^25.6.2",
|
|
185
185
|
"@types/papaparse": "^5.5.2",
|
|
186
186
|
"@types/sanitize-html": "^2.16.1",
|
|
187
187
|
"@types/validator": "^13.15.10",
|
|
188
188
|
"@vitest/coverage-istanbul": "4.1.5",
|
|
189
189
|
"@vitest/ui": "4.1.5",
|
|
190
190
|
"bun-types": "^1.3.13",
|
|
191
|
-
"chrono-node": "^2.9.
|
|
191
|
+
"chrono-node": "^2.9.1",
|
|
192
192
|
"clipboardy": "^5.3.1",
|
|
193
193
|
"defuddle": "^0.18.1",
|
|
194
194
|
"depcheck": "^1.4.7",
|
|
195
195
|
"diff": "^9.0.0",
|
|
196
196
|
"execa": "^9.6.1",
|
|
197
197
|
"fast-check": "^4.7.0",
|
|
198
|
+
"fast-xml-parser": "^5.7.3",
|
|
198
199
|
"ignore": "^7.0.5",
|
|
199
200
|
"js-yaml": "^4.1.1",
|
|
200
201
|
"linkedom": "^0.18.12",
|
|
201
202
|
"node-cron": "^4.2.1",
|
|
202
|
-
"openai": "^6.
|
|
203
|
+
"openai": "^6.37.0",
|
|
203
204
|
"papaparse": "^5.5.3",
|
|
204
205
|
"partial-json": "^0.1.7",
|
|
205
206
|
"pdf-lib": "^1.17.1",
|
|
@@ -211,7 +212,7 @@
|
|
|
211
212
|
"typescript": "^6.0.3",
|
|
212
213
|
"unpdf": "^1.6.2",
|
|
213
214
|
"validator": "^13.15.35",
|
|
214
|
-
"vite": "8.0.
|
|
215
|
+
"vite": "8.0.11",
|
|
215
216
|
"vitest": "^4.1.5"
|
|
216
217
|
},
|
|
217
218
|
"keywords": [
|
|
@@ -219,13 +220,14 @@
|
|
|
219
220
|
"agent-native",
|
|
220
221
|
"ai",
|
|
221
222
|
"ai-agent",
|
|
223
|
+
"bun",
|
|
222
224
|
"cloudflare-workers",
|
|
223
225
|
"declarative",
|
|
224
|
-
"edge",
|
|
225
226
|
"framework",
|
|
226
227
|
"llm",
|
|
227
228
|
"mcp",
|
|
228
229
|
"mcp-server",
|
|
230
|
+
"mcp-framework",
|
|
229
231
|
"model-context-protocol",
|
|
230
232
|
"observability",
|
|
231
233
|
"opentelemetry",
|
|
@@ -246,8 +248,8 @@
|
|
|
246
248
|
],
|
|
247
249
|
"packageManager": "bun@1.3.2",
|
|
248
250
|
"engines": {
|
|
249
|
-
"bun": ">=1.
|
|
250
|
-
"node": ">=
|
|
251
|
+
"bun": ">=1.3.0",
|
|
252
|
+
"node": ">=24.0.0"
|
|
251
253
|
},
|
|
252
254
|
"depcheck": {
|
|
253
255
|
"ignores": [
|
|
@@ -264,12 +266,12 @@
|
|
|
264
266
|
},
|
|
265
267
|
"dependencies": {
|
|
266
268
|
"@hono/mcp": "^0.2.5",
|
|
267
|
-
"@hono/node-server": "^2.0.
|
|
269
|
+
"@hono/node-server": "^2.0.2",
|
|
268
270
|
"@modelcontextprotocol/ext-apps": "^1.7.1",
|
|
269
271
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
270
272
|
"@opentelemetry/api": "^1.9.1",
|
|
271
273
|
"dotenv": "^17.4.2",
|
|
272
|
-
"hono": "^4.12.
|
|
274
|
+
"hono": "^4.12.18",
|
|
273
275
|
"jose": "^6.2.3",
|
|
274
276
|
"pino": "^10.3.1",
|
|
275
277
|
"zod": "^4.4.3"
|
|
@@ -6,23 +6,25 @@
|
|
|
6
6
|
* YAML frontmatter declaring:
|
|
7
7
|
* • summary (required) — ≤250-char headline, no markdown, one line
|
|
8
8
|
* • breaking (optional) — `true` flags releases with breaking changes
|
|
9
|
+
* • security (optional) — `true` flags releases with security fixes
|
|
9
10
|
*
|
|
10
11
|
* The rollup is a thin **index**, not a copy of bodies — each entry is just a
|
|
11
12
|
* clickable header + one-line summary. Full content stays in the per-version files.
|
|
12
13
|
*
|
|
13
14
|
* Rendered rollup entry:
|
|
14
|
-
* ## [X.Y.Z](changelog/N.N.x/X.Y.Z.md) — YYYY-MM-DD · ⚠️ Breaking
|
|
15
|
+
* ## [X.Y.Z](changelog/N.N.x/X.Y.Z.md) — YYYY-MM-DD · ⚠️ Breaking · 🛡️ Security
|
|
15
16
|
*
|
|
16
17
|
* <summary>
|
|
17
18
|
*
|
|
18
|
-
*
|
|
19
|
+
* Badges only render when their flag is `true`. Order is fixed: Breaking before
|
|
20
|
+
* Security when both are set.
|
|
19
21
|
*
|
|
20
22
|
* Modes:
|
|
21
23
|
* • default → regenerate CHANGELOG.md
|
|
22
24
|
* • --check → exit 1 if CHANGELOG.md differs from what would be generated
|
|
23
25
|
*
|
|
24
26
|
* Missing `summary`: warning (not failure) — the entry renders header-only.
|
|
25
|
-
* Summary > 250 chars, or malformed `breaking`: hard error.
|
|
27
|
+
* Summary > 250 chars, or malformed `breaking` / `security`: hard error.
|
|
26
28
|
*
|
|
27
29
|
* @module scripts/build-changelog
|
|
28
30
|
*/
|
|
@@ -50,6 +52,7 @@ interface VersionEntry {
|
|
|
50
52
|
|
|
51
53
|
interface Frontmatter {
|
|
52
54
|
breaking: boolean;
|
|
55
|
+
security: boolean;
|
|
53
56
|
summary: string | null;
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -75,13 +78,13 @@ function compareSemverDesc(a: string, b: string): number {
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
/**
|
|
78
|
-
* Parse minimal YAML frontmatter. Only recognizes `summary
|
|
79
|
-
* other keys are ignored, so the format stays extensible without
|
|
80
|
-
* parser. Throws on malformed values we actually care about.
|
|
81
|
+
* Parse minimal YAML frontmatter. Only recognizes `summary`, `breaking`, and
|
|
82
|
+
* `security` — other keys are ignored, so the format stays extensible without
|
|
83
|
+
* touching the parser. Throws on malformed values we actually care about.
|
|
81
84
|
*/
|
|
82
85
|
function parseFrontmatter(content: string, fileLabel: string): Frontmatter {
|
|
83
86
|
const match = content.match(/^---\n([\s\S]*?)\n---\n?/);
|
|
84
|
-
if (!match) return { summary: null, breaking: false };
|
|
87
|
+
if (!match) return { summary: null, breaking: false, security: false };
|
|
85
88
|
|
|
86
89
|
const block = match[1] as string;
|
|
87
90
|
|
|
@@ -101,18 +104,21 @@ function parseFrontmatter(content: string, fileLabel: string): Frontmatter {
|
|
|
101
104
|
);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const val = breakingMatch[1];
|
|
107
|
+
const parseBool = (key: string): boolean => {
|
|
108
|
+
const m = block.match(new RegExp(`^${key}:\\s*(\\S+)\\s*$`, 'm'));
|
|
109
|
+
if (!m) return false;
|
|
110
|
+
const val = m[1];
|
|
109
111
|
if (val !== 'true' && val !== 'false') {
|
|
110
|
-
throw new Error(`${fileLabel}:
|
|
112
|
+
throw new Error(`${fileLabel}: ${key} must be 'true' or 'false', got '${val}'.`);
|
|
111
113
|
}
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
+
return val === 'true';
|
|
115
|
+
};
|
|
114
116
|
|
|
115
|
-
return {
|
|
117
|
+
return {
|
|
118
|
+
summary,
|
|
119
|
+
breaking: parseBool('breaking'),
|
|
120
|
+
security: parseBool('security'),
|
|
121
|
+
};
|
|
116
122
|
}
|
|
117
123
|
|
|
118
124
|
/** Extract the release date from the H1 heading. */
|
|
@@ -128,8 +134,11 @@ function extractDate(body: string, fileLabel: string): string {
|
|
|
128
134
|
|
|
129
135
|
function renderEntry(entry: VersionEntry, fm: Frontmatter, date: string): string {
|
|
130
136
|
const link = `changelog/${entry.series}/${entry.version}.md`;
|
|
131
|
-
const
|
|
132
|
-
|
|
137
|
+
const badges = [fm.breaking ? '⚠️ Breaking' : null, fm.security ? '🛡️ Security' : null].filter(
|
|
138
|
+
(b): b is string => b !== null,
|
|
139
|
+
);
|
|
140
|
+
const badgeSuffix = badges.length > 0 ? ` · ${badges.join(' · ')}` : '';
|
|
141
|
+
const header = `## [${entry.version}](${link}) — ${date}${badgeSuffix}`;
|
|
133
142
|
if (fm.summary) {
|
|
134
143
|
return `${header}\n\n${fm.summary}\n`;
|
|
135
144
|
}
|