@cyanheads/mcp-ts-core 0.5.3 → 0.6.0

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.
Files changed (143) hide show
  1. package/CLAUDE.md +41 -2
  2. package/README.md +1 -1
  3. package/changelog/0.1.x/0.1.0.md +78 -0
  4. package/changelog/0.1.x/0.1.1.md +28 -0
  5. package/changelog/0.1.x/0.1.10.md +32 -0
  6. package/changelog/0.1.x/0.1.11.md +51 -0
  7. package/changelog/0.1.x/0.1.12.md +21 -0
  8. package/changelog/0.1.x/0.1.13.md +16 -0
  9. package/changelog/0.1.x/0.1.14.md +20 -0
  10. package/changelog/0.1.x/0.1.15.md +24 -0
  11. package/changelog/0.1.x/0.1.16.md +17 -0
  12. package/changelog/0.1.x/0.1.17.md +14 -0
  13. package/changelog/0.1.x/0.1.18.md +18 -0
  14. package/changelog/0.1.x/0.1.19.md +19 -0
  15. package/changelog/0.1.x/0.1.2.md +25 -0
  16. package/changelog/0.1.x/0.1.20.md +21 -0
  17. package/changelog/0.1.x/0.1.21.md +17 -0
  18. package/changelog/0.1.x/0.1.22.md +28 -0
  19. package/changelog/0.1.x/0.1.23.md +23 -0
  20. package/changelog/0.1.x/0.1.24.md +17 -0
  21. package/changelog/0.1.x/0.1.25.md +16 -0
  22. package/changelog/0.1.x/0.1.26.md +22 -0
  23. package/changelog/0.1.x/0.1.27.md +30 -0
  24. package/changelog/0.1.x/0.1.28.md +16 -0
  25. package/changelog/0.1.x/0.1.29.md +19 -0
  26. package/changelog/0.1.x/0.1.3.md +22 -0
  27. package/changelog/0.1.x/0.1.4.md +17 -0
  28. package/changelog/0.1.x/0.1.5.md +25 -0
  29. package/changelog/0.1.x/0.1.6.md +26 -0
  30. package/changelog/0.1.x/0.1.7.md +29 -0
  31. package/changelog/0.1.x/0.1.8.md +33 -0
  32. package/changelog/0.1.x/0.1.9.md +19 -0
  33. package/changelog/0.2.x/0.2.0.md +32 -0
  34. package/changelog/0.2.x/0.2.1.md +12 -0
  35. package/changelog/0.2.x/0.2.10.md +38 -0
  36. package/changelog/0.2.x/0.2.11.md +29 -0
  37. package/changelog/0.2.x/0.2.12.md +31 -0
  38. package/changelog/0.2.x/0.2.2.md +19 -0
  39. package/changelog/0.2.x/0.2.3.md +15 -0
  40. package/changelog/0.2.x/0.2.4.md +24 -0
  41. package/changelog/0.2.x/0.2.5.md +27 -0
  42. package/changelog/0.2.x/0.2.6.md +23 -0
  43. package/changelog/0.2.x/0.2.7.md +23 -0
  44. package/changelog/0.2.x/0.2.8.md +12 -0
  45. package/changelog/0.2.x/0.2.9.md +25 -0
  46. package/changelog/0.3.x/0.3.0.md +45 -0
  47. package/changelog/0.3.x/0.3.1.md +16 -0
  48. package/changelog/0.3.x/0.3.2.md +24 -0
  49. package/changelog/0.3.x/0.3.3.md +31 -0
  50. package/changelog/0.3.x/0.3.4.md +31 -0
  51. package/changelog/0.3.x/0.3.5.md +32 -0
  52. package/changelog/0.3.x/0.3.6.md +48 -0
  53. package/changelog/0.3.x/0.3.7.md +23 -0
  54. package/changelog/0.3.x/0.3.8.md +21 -0
  55. package/changelog/0.4.x/0.4.0.md +38 -0
  56. package/changelog/0.4.x/0.4.1.md +31 -0
  57. package/changelog/0.5.x/0.5.0.md +29 -0
  58. package/changelog/0.5.x/0.5.1.md +18 -0
  59. package/changelog/0.5.x/0.5.2.md +38 -0
  60. package/changelog/0.5.x/0.5.3.md +26 -0
  61. package/changelog/0.5.x/0.5.4.md +29 -0
  62. package/changelog/0.6.x/0.6.0.md +39 -0
  63. package/changelog/unreleased.md +40 -0
  64. package/dist/cli/init.js +1 -0
  65. package/dist/cli/init.js.map +1 -1
  66. package/dist/core/app.d.ts +13 -3
  67. package/dist/core/app.d.ts.map +1 -1
  68. package/dist/core/app.js +20 -13
  69. package/dist/core/app.js.map +1 -1
  70. package/dist/core/index.d.ts +1 -0
  71. package/dist/core/index.d.ts.map +1 -1
  72. package/dist/core/index.js.map +1 -1
  73. package/dist/core/serverManifest.d.ts +237 -0
  74. package/dist/core/serverManifest.d.ts.map +1 -0
  75. package/dist/core/serverManifest.js +310 -0
  76. package/dist/core/serverManifest.js.map +1 -0
  77. package/dist/core/worker.d.ts.map +1 -1
  78. package/dist/core/worker.js +2 -2
  79. package/dist/core/worker.js.map +1 -1
  80. package/dist/linter/rules/landing-rules.d.ts +15 -0
  81. package/dist/linter/rules/landing-rules.d.ts.map +1 -0
  82. package/dist/linter/rules/landing-rules.js +125 -0
  83. package/dist/linter/rules/landing-rules.js.map +1 -0
  84. package/dist/linter/types.d.ts +5 -2
  85. package/dist/linter/types.d.ts.map +1 -1
  86. package/dist/linter/validate.d.ts.map +1 -1
  87. package/dist/linter/validate.js +26 -2
  88. package/dist/linter/validate.js.map +1 -1
  89. package/dist/mcp-server/transports/http/httpTransport.d.ts +4 -3
  90. package/dist/mcp-server/transports/http/httpTransport.d.ts.map +1 -1
  91. package/dist/mcp-server/transports/http/httpTransport.js +47 -26
  92. package/dist/mcp-server/transports/http/httpTransport.js.map +1 -1
  93. package/dist/mcp-server/transports/http/httpTypes.d.ts +0 -12
  94. package/dist/mcp-server/transports/http/httpTypes.d.ts.map +1 -1
  95. package/dist/mcp-server/transports/http/landing-page.d.ts +48 -0
  96. package/dist/mcp-server/transports/http/landing-page.d.ts.map +1 -0
  97. package/dist/mcp-server/transports/http/landing-page.js +912 -0
  98. package/dist/mcp-server/transports/http/landing-page.js.map +1 -0
  99. package/dist/mcp-server/transports/http/serverCard.d.ts +67 -0
  100. package/dist/mcp-server/transports/http/serverCard.d.ts.map +1 -0
  101. package/dist/mcp-server/transports/http/serverCard.js +91 -0
  102. package/dist/mcp-server/transports/http/serverCard.js.map +1 -0
  103. package/dist/mcp-server/transports/manager.d.ts +3 -3
  104. package/dist/mcp-server/transports/manager.d.ts.map +1 -1
  105. package/dist/mcp-server/transports/manager.js +4 -4
  106. package/dist/mcp-server/transports/manager.js.map +1 -1
  107. package/dist/utils/formatting/html.d.ts +76 -0
  108. package/dist/utils/formatting/html.d.ts.map +1 -0
  109. package/dist/utils/formatting/html.js +111 -0
  110. package/dist/utils/formatting/html.js.map +1 -0
  111. package/dist/utils/formatting/index.d.ts +1 -0
  112. package/dist/utils/formatting/index.d.ts.map +1 -1
  113. package/dist/utils/formatting/index.js +1 -0
  114. package/dist/utils/formatting/index.js.map +1 -1
  115. package/dist/utils/index.d.ts +1 -1
  116. package/dist/utils/index.d.ts.map +1 -1
  117. package/dist/utils/index.js +1 -1
  118. package/dist/utils/index.js.map +1 -1
  119. package/package.json +5 -1
  120. package/scripts/build-changelog.ts +222 -0
  121. package/scripts/devcheck.ts +19 -4
  122. package/scripts/tree.ts +3 -0
  123. package/skills/add-app-tool/SKILL.md +2 -4
  124. package/skills/add-prompt/SKILL.md +2 -4
  125. package/skills/add-resource/SKILL.md +2 -4
  126. package/skills/add-service/SKILL.md +2 -4
  127. package/skills/add-tool/SKILL.md +6 -5
  128. package/skills/api-context/SKILL.md +2 -2
  129. package/skills/api-linter/SKILL.md +391 -0
  130. package/skills/api-services/SKILL.md +1 -1
  131. package/skills/api-services/references/graph.md +1 -1
  132. package/skills/api-utils/SKILL.md +1 -1
  133. package/skills/api-utils/references/parsing.md +1 -1
  134. package/skills/api-utils/references/security.md +1 -1
  135. package/skills/design-mcp-server/SKILL.md +2 -2
  136. package/skills/maintenance/SKILL.md +12 -11
  137. package/skills/polish-docs-meta/SKILL.md +24 -9
  138. package/skills/release/SKILL.md +21 -7
  139. package/skills/setup/SKILL.md +4 -8
  140. package/templates/AGENTS.md +23 -1
  141. package/templates/CLAUDE.md +23 -1
  142. package/templates/changelog/unreleased.md +40 -0
  143. package/templates/package.json +3 -0
@@ -264,7 +264,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
264
264
  | `npm run build` | Compile TypeScript |
265
265
  | `npm run rebuild` | Clean + build |
266
266
  | `npm run clean` | Remove build artifacts |
267
- | `npm run devcheck` | Lint + format + typecheck + security |
267
+ | `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
268
268
  | `npm run tree` | Generate directory structure doc |
269
269
  | `npm run format` | Auto-fix formatting |
270
270
  | `npm test` | Run tests |
@@ -272,6 +272,28 @@ When you complete a skill's checklist, check the boxes and add a completion time
272
272
  | `npm run dev:http` | Dev mode (HTTP) |
273
273
  | `npm run start:stdio` | Production mode (stdio) |
274
274
  | `npm run start:http` | Production mode (HTTP) |
275
+ | `npm run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
276
+ | `npm run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
277
+
278
+ ---
279
+
280
+ ## Changelog
281
+
282
+ Directory-based, grouped by minor series using the `.x` semver-wildcard convention. Source of truth is `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per released version, shipped in the npm package. Work-in-progress entries live at the top level in `changelog/unreleased.md` and are moved into the appropriate series directory on release. `CHANGELOG.md` is a **navigation index** (header + link + one-line summary per version), regenerated by `npm run changelog:build`. Devcheck hard-fails on drift. Never hand-edit `CHANGELOG.md`.
283
+
284
+ Each per-version file opens with YAML frontmatter:
285
+
286
+ ```markdown
287
+ ---
288
+ summary: One-line headline, ≤250 chars # required — powers the rollup index
289
+ breaking: false # optional — true flags breaking changes
290
+ ---
291
+
292
+ # 0.1.0 — YYYY-MM-DD
293
+ ...
294
+ ```
295
+
296
+ `breaking: true` renders a `· ⚠️ Breaking` badge in the rollup — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames).
275
297
 
276
298
  ---
277
299
 
@@ -264,7 +264,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
264
264
  | `npm run build` | Compile TypeScript |
265
265
  | `npm run rebuild` | Clean + build |
266
266
  | `npm run clean` | Remove build artifacts |
267
- | `npm run devcheck` | Lint + format + typecheck + security |
267
+ | `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
268
268
  | `npm run tree` | Generate directory structure doc |
269
269
  | `npm run format` | Auto-fix formatting |
270
270
  | `npm test` | Run tests |
@@ -272,6 +272,28 @@ When you complete a skill's checklist, check the boxes and add a completion time
272
272
  | `npm run dev:http` | Dev mode (HTTP) |
273
273
  | `npm run start:stdio` | Production mode (stdio) |
274
274
  | `npm run start:http` | Production mode (HTTP) |
275
+ | `npm run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
276
+ | `npm run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
277
+
278
+ ---
279
+
280
+ ## Changelog
281
+
282
+ Directory-based, grouped by minor series using the `.x` semver-wildcard convention. Source of truth is `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per released version, shipped in the npm package. Work-in-progress entries live at the top level in `changelog/unreleased.md` and are moved into the appropriate series directory on release. `CHANGELOG.md` is a **navigation index** (header + link + one-line summary per version), regenerated by `npm run changelog:build`. Devcheck hard-fails on drift. Never hand-edit `CHANGELOG.md`.
283
+
284
+ Each per-version file opens with YAML frontmatter:
285
+
286
+ ```markdown
287
+ ---
288
+ summary: One-line headline, ≤250 chars # required — powers the rollup index
289
+ breaking: false # optional — true flags breaking changes
290
+ ---
291
+
292
+ # 0.1.0 — YYYY-MM-DD
293
+ ...
294
+ ```
295
+
296
+ `breaking: true` renders a `· ⚠️ Breaking` badge in the rollup — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames).
275
297
 
276
298
  ---
277
299
 
@@ -0,0 +1,40 @@
1
+ ---
2
+ # Required. One-line headline describing the release. Max 250 chars. No markdown.
3
+ # This line is what the CHANGELOG.md rollup shows — write it like a GitHub Release title.
4
+ summary: ""
5
+
6
+ # Set to `true` only if this release has breaking changes (API removals, signature
7
+ # changes, config renames, anything that requires consumer code changes on update).
8
+ # Flagged as ⚠️ Breaking in the rollup.
9
+ breaking: false
10
+ ---
11
+
12
+ # Unreleased
13
+
14
+ <!--
15
+ Optional narrative intro — 1-3 sentences framing the release theme. Delete if not needed.
16
+
17
+ Linking issues/PRs: use full URLs so the link works everywhere (GitHub web UI,
18
+ npm/node_modules reads, local editors). GitHub's bare `#NN` auto-link only
19
+ resolves inside its own UI.
20
+
21
+ [#12](https://github.com/<owner>/<repo>/issues/12) ← issue
22
+ [#17](https://github.com/<owner>/<repo>/pull/17) ← PR
23
+
24
+ Only link numbers you've verified exist (via `gh issue view NN` or
25
+ `gh pr view NN`). Never speculate on a future number — `#17` for "my
26
+ upcoming PR" will quietly resolve to whatever real item already owns 17,
27
+ and GitHub timeline previews will pull in that unrelated item's title.
28
+ -->
29
+
30
+ ## Added
31
+
32
+ -
33
+
34
+ ## Changed
35
+
36
+ -
37
+
38
+ ## Fixed
39
+
40
+ -
@@ -9,6 +9,7 @@
9
9
  "{{PACKAGE_NAME}}": "dist/index.js"
10
10
  },
11
11
  "files": [
12
+ "changelog/",
12
13
  "dist/",
13
14
  "README.md",
14
15
  "LICENSE",
@@ -25,6 +26,8 @@
25
26
  "tree": "tsx scripts/tree.ts",
26
27
  "format": "biome check --write --unsafe .",
27
28
  "lint:mcp": "tsx scripts/lint-mcp.ts",
29
+ "changelog:build": "tsx scripts/build-changelog.ts",
30
+ "changelog:check": "tsx scripts/build-changelog.ts --check",
28
31
  "test": "vitest run",
29
32
  "dev:stdio": "MCP_TRANSPORT_TYPE=stdio tsx --watch src/index.ts",
30
33
  "dev:http": "MCP_TRANSPORT_TYPE=http tsx --watch src/index.ts",