@cyanheads/federal-regulations-mcp-server 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 (37) hide show
  1. package/AGENTS.md +19 -9
  2. package/CLAUDE.md +19 -9
  3. package/Dockerfile +5 -3
  4. package/README.md +23 -101
  5. package/changelog/0.5.x/0.5.4.md +28 -0
  6. package/changelog/0.6.x/0.6.0.md +30 -0
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/browse-cfr.tool.d.ts.map +1 -1
  10. package/dist/mcp-server/tools/definitions/browse-cfr.tool.js +19 -9
  11. package/dist/mcp-server/tools/definitions/browse-cfr.tool.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/find-comments.tool.d.ts.map +1 -1
  13. package/dist/mcp-server/tools/definitions/find-comments.tool.js +9 -7
  14. package/dist/mcp-server/tools/definitions/find-comments.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/format-utils.d.ts +1 -9
  16. package/dist/mcp-server/tools/definitions/format-utils.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/format-utils.js +4 -10
  18. package/dist/mcp-server/tools/definitions/format-utils.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-cfr-section.tool.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/definitions/get-cfr-section.tool.js +15 -11
  21. package/dist/mcp-server/tools/definitions/get-cfr-section.tool.js.map +1 -1
  22. package/dist/mcp-server/tools/definitions/get-docket.tool.d.ts.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-docket.tool.js +5 -3
  24. package/dist/mcp-server/tools/definitions/get-docket.tool.js.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-document.tool.d.ts.map +1 -1
  26. package/dist/mcp-server/tools/definitions/get-document.tool.js +19 -15
  27. package/dist/mcp-server/tools/definitions/get-document.tool.js.map +1 -1
  28. package/dist/mcp-server/tools/definitions/index.d.ts +63 -63
  29. package/dist/mcp-server/tools/definitions/list-open-comments.tool.d.ts.map +1 -1
  30. package/dist/mcp-server/tools/definitions/list-open-comments.tool.js +6 -2
  31. package/dist/mcp-server/tools/definitions/list-open-comments.tool.js.map +1 -1
  32. package/dist/mcp-server/tools/definitions/search-rules.tool.d.ts.map +1 -1
  33. package/dist/mcp-server/tools/definitions/search-rules.tool.js +6 -4
  34. package/dist/mcp-server/tools/definitions/search-rules.tool.js.map +1 -1
  35. package/package.json +12 -9
  36. package/server.json +3 -3
  37. package/skills/federal-regulations-guide/SKILL.md +65 -0
package/AGENTS.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** federal-regulations-mcp-server
4
- **Version:** 0.5.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.13.14`
4
+ **Version:** 0.6.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.2.0
8
- **Zod:** ^4.6.5
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
+ **Zod:** ^4.6.7
9
9
 
10
10
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
11
11
 
@@ -248,7 +248,7 @@ scripts/
248
248
 
249
249
  No prompts in v1 — `createApp({ prompts: [] })`.
250
250
 
251
- **`scripts/` is typechecked, and one scaffolded script diverges because of it.** `tsconfig.json` includes `scripts/**/*` and `tests/**/*`, so `tsc --noEmit` reads every hand-written file — the mirror lifecycle scripts ship in `package.json` `files[]` and into the Docker runtime stage, so they are production code. `scripts/lint-mcp.ts` therefore drops the scaffold's `catch` branch importing `../src/linter/validate.js`: that path resolves only inside the framework's own repo, where the script also lives, so in this project the branch is unreachable and its type annotation cannot resolve. The `maintenance` skill re-syncs framework scripts by overwrite; re-drop the branch after a sync rather than narrowing the typecheck to hide it.
251
+ **`scripts/` is typechecked.** `tsconfig.json` includes `scripts/**/*` and `tests/**/*`; the mirror lifecycle scripts also ship in npm and Docker. `scripts/lint-mcp.ts` and `scripts/lint-packaging.ts` import the installed framework's linter directly, omitting upstream fallbacks to framework-only source files that do not exist here. Preserve those consumer imports after maintenance syncs. The bundle scripts also anchor dependency agent-doc matching at package roots so SDK `dist/ext/skills` runtime modules survive pruning; `tests/scripts/bundle-agent-docs.test.ts` guards both matching literals.
252
252
 
253
253
  ---
254
254
 
@@ -265,9 +265,18 @@ No prompts in v1 — `createApp({ prompts: [] })`.
265
265
 
266
266
  ## Skills
267
267
 
268
- Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
268
+ Two skill trees live at the project root, written for different readers:
269
269
 
270
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
270
+ | Tree | For | Written by |
271
+ |:-----|:----|:-----------|
272
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
273
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
274
+
275
+ Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
276
+
277
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
278
+
279
+ **Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
271
280
 
272
281
  Available skills:
273
282
 
@@ -279,6 +288,7 @@ Available skills:
279
288
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
280
289
  | `add-resource` | Scaffold a new resource definition |
281
290
  | `add-prompt` | Scaffold a new prompt definition |
291
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
282
292
  | `add-service` | Scaffold a new service integration |
283
293
  | `add-test` | Scaffold test file for a tool, resource, or service |
284
294
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -326,7 +336,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
326
336
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
327
337
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
328
338
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
329
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
339
+ | `bun run lint:packaging` | Packaging surface checks — env-var parity, `.mcpbignore` coverage, plugin manifests, published `skills/` tree (run by devcheck) |
330
340
  | `bun run list-skills` | Print the skill registry |
331
341
  | `bun run tree` | Generate directory structure doc |
332
342
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -347,7 +357,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
347
357
 
348
358
  ## Bundling
349
359
 
350
- `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
360
+ `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
351
361
 
352
362
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
353
363
 
package/CLAUDE.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** federal-regulations-mcp-server
4
- **Version:** 0.5.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.13.14`
4
+ **Version:** 0.6.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.2.0
8
- **Zod:** ^4.6.5
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
+ **Zod:** ^4.6.7
9
9
 
10
10
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
11
11
 
@@ -248,7 +248,7 @@ scripts/
248
248
 
249
249
  No prompts in v1 — `createApp({ prompts: [] })`.
250
250
 
251
- **`scripts/` is typechecked, and one scaffolded script diverges because of it.** `tsconfig.json` includes `scripts/**/*` and `tests/**/*`, so `tsc --noEmit` reads every hand-written file — the mirror lifecycle scripts ship in `package.json` `files[]` and into the Docker runtime stage, so they are production code. `scripts/lint-mcp.ts` therefore drops the scaffold's `catch` branch importing `../src/linter/validate.js`: that path resolves only inside the framework's own repo, where the script also lives, so in this project the branch is unreachable and its type annotation cannot resolve. The `maintenance` skill re-syncs framework scripts by overwrite; re-drop the branch after a sync rather than narrowing the typecheck to hide it.
251
+ **`scripts/` is typechecked.** `tsconfig.json` includes `scripts/**/*` and `tests/**/*`; the mirror lifecycle scripts also ship in npm and Docker. `scripts/lint-mcp.ts` and `scripts/lint-packaging.ts` import the installed framework's linter directly, omitting upstream fallbacks to framework-only source files that do not exist here. Preserve those consumer imports after maintenance syncs. The bundle scripts also anchor dependency agent-doc matching at package roots so SDK `dist/ext/skills` runtime modules survive pruning; `tests/scripts/bundle-agent-docs.test.ts` guards both matching literals.
252
252
 
253
253
  ---
254
254
 
@@ -265,9 +265,18 @@ No prompts in v1 — `createApp({ prompts: [] })`.
265
265
 
266
266
  ## Skills
267
267
 
268
- Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
268
+ Two skill trees live at the project root, written for different readers:
269
269
 
270
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
270
+ | Tree | For | Written by |
271
+ |:-----|:----|:-----------|
272
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
273
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
274
+
275
+ Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
276
+
277
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
278
+
279
+ **Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
271
280
 
272
281
  Available skills:
273
282
 
@@ -279,6 +288,7 @@ Available skills:
279
288
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
280
289
  | `add-resource` | Scaffold a new resource definition |
281
290
  | `add-prompt` | Scaffold a new prompt definition |
291
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
282
292
  | `add-service` | Scaffold a new service integration |
283
293
  | `add-test` | Scaffold test file for a tool, resource, or service |
284
294
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -326,7 +336,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
326
336
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
327
337
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
328
338
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
329
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
339
+ | `bun run lint:packaging` | Packaging surface checks — env-var parity, `.mcpbignore` coverage, plugin manifests, published `skills/` tree (run by devcheck) |
330
340
  | `bun run list-skills` | Print the skill registry |
331
341
  | `bun run tree` | Generate directory structure doc |
332
342
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -347,7 +357,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
347
357
 
348
358
  ## Bundling
349
359
 
350
- `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
360
+ `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
351
361
 
352
362
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
353
363
 
package/Dockerfile CHANGED
@@ -11,7 +11,7 @@
11
11
  # where bun >= 1.4 aborts with a JavaScriptCore allocator assertion and fails
12
12
  # the multi-arch push.
13
13
  # ==============================================================================
14
- FROM --platform=$BUILDPLATFORM oven/bun:1.4.2 AS build
14
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS build
15
15
 
16
16
  WORKDIR /usr/src/app
17
17
 
@@ -29,6 +29,7 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
29
29
 
30
30
  # Copy the rest of the source code
31
31
  COPY . .
32
+ RUN mkdir -p skills
32
33
 
33
34
  # Build the application
34
35
  RUN bun run build
@@ -47,7 +48,7 @@ RUN bun run build
47
48
  # A clean image rather than `FROM build`: the build stage's node_modules holds
48
49
  # devDependencies.
49
50
  # ==============================================================================
50
- FROM --platform=$BUILDPLATFORM oven/bun:1.4.2 AS deps
51
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS deps
51
52
 
52
53
  WORKDIR /usr/src/app
53
54
 
@@ -115,7 +116,7 @@ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
115
116
  # dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
116
117
  # and CMD, which run on the real target at container start.
117
118
  # ==============================================================================
118
- FROM oven/bun:1.4.2-slim AS production
119
+ FROM oven/bun:1.4.4-slim AS production
119
120
 
120
121
  WORKDIR /usr/src/app
121
122
 
@@ -138,6 +139,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
138
139
 
139
140
  # Copy the compiled application code from the build stage
140
141
  COPY --from=build /usr/src/app/dist ./dist
142
+ COPY --from=build /usr/src/app/skills ./skills
141
143
 
142
144
  # eCFR mirror CLI (MirrorService — Tier 3). The shared context shim
143
145
  # (_mirror-context.ts) is imported by the three named scripts, so it travels with
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <div align="center">
2
2
  <h1>@cyanheads/federal-regulations-mcp-server</h1>
3
3
  <p><b>Search and trace US federal rules across the Federal Register (proposed/final rules and notices), the eCFR (codified, point-in-time CFR full text, locally mirrored), and Regulations.gov (rulemaking dockets and public comments) via MCP. STDIO or Streamable HTTP.</b>
4
- <div>7 Tools • 2 Resources</div>
4
+ <div>7 Tools • 3 Resources</div>
5
5
  </p>
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.5.3-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/federal-regulations-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.2.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/federal-regulations-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/federal-regulations-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.6.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/federal-regulations-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/federal-regulations-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/federal-regulations-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  ## Overview
31
31
 
32
- US federal regulatory law from three official sources: the Federal Register (proposed rules, final rules, and notices), the eCFR (codified CFR text, current or as of a past date), and Regulations.gov (rulemaking dockets and public comments). Search rules, trace a document from proposal through its comments to the codified text, and read CFR sections. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
32
+ US federal regulations from the Federal Register, the eCFR, and Regulations.gov. Search proposed and final rules, trace a rule from proposal through public comments to codified text, and read any CFR section as it stands today or stood on a past date.
33
33
 
34
34
  ### Tools
35
35
 
@@ -49,8 +49,9 @@ US federal regulatory law from three official sources: the Federal Register (pro
49
49
  |:---|:---|
50
50
  | `regulations://document/{documentNumber}` | One Federal Register document's metadata and cross-source handles |
51
51
  | `regulations://cfr/{title}/{part}/{section}` | Codified text of a current CFR section |
52
+ | `skill://federal-regulations-guide/SKILL.md` | Guide to tracing rulemaking, CFR text, and public-comment evidence across sources |
52
53
 
53
- Both resources mirror a tool (`regulations_get_document`, `regulations_get_cfr_section`), so tool-only clients lose nothing.
54
+ The two data resources mirror `regulations_get_document` and `regulations_get_cfr_section`. The [federal-regulations guide](./skills/federal-regulations-guide/SKILL.md) also ships with plugin installs, npm, Docker, and the desktop bundle.
54
55
 
55
56
  ## Capability reference
56
57
 
@@ -141,118 +142,32 @@ Agent-friendly output:
141
142
 
142
143
  ## Getting started
143
144
 
144
- ### Public Hosted Instance
145
+ Connect to the hosted instance:
145
146
 
146
- A public instance is available at `https://federal-regulations.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:
147
-
148
- ```json
149
- {
150
- "mcpServers": {
151
- "federal-regulations-mcp-server": {
152
- "type": "streamable-http",
153
- "url": "https://federal-regulations.caseyjhand.com/mcp"
154
- }
155
- }
156
- }
147
+ ```sh
148
+ claude mcp add --transport http federal-regulations-mcp-server https://federal-regulations.caseyjhand.com/mcp
157
149
  ```
158
150
 
159
- ### Self-Hosted / Local
160
-
161
- Add the following to your MCP client configuration file. `REGULATIONS_GOV_API_KEY` enables the docket and comment tools; omit it to run the keyless Federal Register and eCFR tools alone.
151
+ Or run it locally:
162
152
 
163
- ```json
164
- {
165
- "mcpServers": {
166
- "federal-regulations-mcp-server": {
167
- "type": "stdio",
168
- "command": "bunx",
169
- "args": ["@cyanheads/federal-regulations-mcp-server@latest"],
170
- "env": {
171
- "MCP_TRANSPORT_TYPE": "stdio",
172
- "MCP_LOG_LEVEL": "info",
173
- "REGULATIONS_GOV_API_KEY": "your-key-here"
174
- }
175
- }
176
- }
177
- }
153
+ ```sh
154
+ claude mcp add federal-regulations-mcp-server -- npx -y @cyanheads/federal-regulations-mcp-server
178
155
  ```
179
156
 
180
- Or with npx (no Bun required):
157
+ For other clients, add this to your MCP configuration file:
181
158
 
182
159
  ```json
183
160
  {
184
161
  "mcpServers": {
185
162
  "federal-regulations-mcp-server": {
186
- "type": "stdio",
187
163
  "command": "npx",
188
- "args": ["-y", "@cyanheads/federal-regulations-mcp-server@latest"],
189
- "env": {
190
- "MCP_TRANSPORT_TYPE": "stdio",
191
- "MCP_LOG_LEVEL": "info",
192
- "REGULATIONS_GOV_API_KEY": "your-key-here"
193
- }
194
- }
195
- }
196
- }
197
- ```
198
-
199
- Or with Docker:
200
-
201
- ```json
202
- {
203
- "mcpServers": {
204
- "federal-regulations-mcp-server": {
205
- "type": "stdio",
206
- "command": "docker",
207
- "args": [
208
- "run", "-i", "--rm",
209
- "-e", "MCP_TRANSPORT_TYPE=stdio",
210
- "-e", "REGULATIONS_GOV_API_KEY=your-key-here",
211
- "ghcr.io/cyanheads/federal-regulations-mcp-server:latest"
212
- ]
164
+ "args": ["-y", "@cyanheads/federal-regulations-mcp-server"]
213
165
  }
214
166
  }
215
167
  }
216
168
  ```
217
169
 
218
- For Streamable HTTP, set the transport and start the server:
219
-
220
- ```sh
221
- MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
222
- # Server listens at http://localhost:3010/mcp
223
- ```
224
-
225
- ### Prerequisites
226
-
227
- - [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
228
- - Optional: a free [api.data.gov key](https://api.data.gov/signup/) for the Regulations.gov tools.
229
-
230
- ### Installation
231
-
232
- 1. **Clone the repository:**
233
-
234
- ```sh
235
- git clone https://github.com/cyanheads/federal-regulations-mcp-server.git
236
- ```
237
-
238
- 2. **Navigate into the directory:**
239
-
240
- ```sh
241
- cd federal-regulations-mcp-server
242
- ```
243
-
244
- 3. **Install dependencies:**
245
-
246
- ```sh
247
- bun install
248
- ```
249
-
250
- 4. **Configure environment:**
251
-
252
- ```sh
253
- cp .env.example .env
254
- # optionally set REGULATIONS_GOV_API_KEY
255
- ```
170
+ Set optional `REGULATIONS_GOV_API_KEY` to enable docket and comment tools; get a free key at [api.data.gov/signup](https://api.data.gov/signup/). The Federal Register and eCFR tools work without it. For Docker or a source build, see [Running the server](#running-the-server).
256
171
 
257
172
  ## Configuration
258
173
 
@@ -278,6 +193,14 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
278
193
 
279
194
  ### Local development
280
195
 
196
+ Requires Bun v1.4.0 or higher (or Node.js v24+).
197
+
198
+ ```sh
199
+ git clone https://github.com/cyanheads/federal-regulations-mcp-server.git
200
+ cd federal-regulations-mcp-server && bun install
201
+ cp .env.example .env
202
+ ```
203
+
281
204
  - **Build and run:**
282
205
 
283
206
  ```sh
@@ -308,8 +231,7 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
308
231
  ### Docker
309
232
 
310
233
  ```sh
311
- docker build -t federal-regulations-mcp-server .
312
- docker run --rm -e REGULATIONS_GOV_API_KEY=your-key -p 3010:3010 federal-regulations-mcp-server
234
+ docker run --rm -e REGULATIONS_GOV_API_KEY=your-key -p 3010:3010 ghcr.io/cyanheads/federal-regulations-mcp-server:latest
313
235
  ```
314
236
 
315
237
  The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/federal-regulations-mcp-server`. Build the mirror inside a running container with `docker exec <container> bun run mirror:init`, and mount a volume over `/usr/src/app/data` so it survives recreation. OpenTelemetry peer dependencies are installed by default; build with `--build-arg OTEL_ENABLED=false` to omit them.
@@ -0,0 +1,28 @@
1
+ ---
2
+ summary: "Preserve upstream text and links in Markdown responses, and update mcp-ts-core to 0.13.16."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.4 — 2026-10-25
8
+
9
+ ## Changed
10
+
11
+ - **Framework errors and shutdown**: mcp-ts-core 0.13.15 bounds Zod validation details; 0.13.16 escapes error and trailer text, classifies cancelled calls as `RequestCancelled`, validates numeric configuration at startup, and answers HTTP requests with `503` while draining.
12
+ - **Development tooling and docs**: refresh framework references, audit classification, environment examples, and hosted-client setup instructions.
13
+
14
+ ## Fixed
15
+
16
+ - **Markdown responses** preserve upstream titles, bodies, snippets, notices, and table-cell text as literal text across all seven tools; document and attachment links retain their destinations. CommonMark parsing tests cover multiline values and edge whitespace.
17
+
18
+ ## Dependencies
19
+
20
+ - `@cyanheads/mcp-ts-core` `0.13.14 → 0.13.16`.
21
+ - `zod` `^4.6.5 → ^4.6.7`.
22
+ - Bun `1.4.2 → 1.4.4` (package manager and Docker images).
23
+ - `@biomejs/biome` `2.5.15 → 2.6.2` (dev).
24
+ - `@types/node` `26.6.4 → 26.6.5` (dev).
25
+ - `ignore` `^7.0.12 → ^7.0.13` (dev).
26
+ - `tsc-alias` `^1.9.7 → ^1.9.8` (dev).
27
+ - `vitest` `^5.0.3 → ^5.0.5` (dev).
28
+ - Add test-only `markdown-it` `15.0.3` and `@types/markdown-it` `^14.2.0` for CommonMark response assertions.
@@ -0,0 +1,30 @@
1
+ ---
2
+ summary: "Publish a regulatory research guide over MCP, adopt mcp-ts-core 0.13.18, and repair desktop bundle packaging."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.6.0 — 2026-10-28
8
+
9
+ ## Added
10
+
11
+ - Add the federal-regulations-guide skill as an MCP resource for tracing rules, CFR text, and public comments.
12
+ - **Agent Plugins metadata** — add root `plugin.json` and `mcp.json` alongside the client overlays.
13
+
14
+ ## Changed
15
+
16
+ - **Guide delivery** — include the published skill in npm, Docker, and desktop bundles.
17
+ - **Development guidance** — sync framework skills and tooling, consolidate the bug-report environment fields, and shorten installation examples.
18
+ - **Comment documentation** — distinguish list metadata from comment-detail bodies and attachment URLs.
19
+ - **Dependency release age** — use the framework's one-day installation floor.
20
+
21
+ ## Fixed
22
+
23
+ - **Desktop bundles** — preserve SDK runtime skill modules while pruning dependency agent docs, node-gyp output, and build-only package files; exclude source, tests, caches, logs, and development metadata from the bundle root.
24
+
25
+ ## Dependencies
26
+
27
+ - `@cyanheads/mcp-ts-core` 0.13.16 → 0.13.18: HTTP request retention fix from 0.13.17; MCP skill serving from 0.13.18.
28
+ - `@biomejs/biome` 2.6.2 → 2.6.3.
29
+ - `ignore` ^7.0.13 → ^7.0.14.
30
+ - `tsc-alias` ^1.9.8 → ^1.9.9.
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ await createApp({
30
30
  sessionMode: 'stateless',
31
31
  tools: allToolDefinitions,
32
32
  resources: allResourceDefinitions,
33
+ skills: 'skills',
33
34
  prompts: [],
34
35
  instructions: "US federal regulatory law over three official sources. The Federal Register (regulations_search_rules, regulations_get_document, regulations_list_open_comments) and eCFR (regulations_browse_cfr, regulations_get_cfr_section) tools are keyless. The Regulations.gov tools (regulations_get_docket, regulations_find_comments) need REGULATIONS_GOV_API_KEY (free at https://api.data.gov/signup/) and return an actionable auth_required error without it; comment counts and Regulations.gov IDs on the Federal Register tools need no key. Trace a rule end to end: search_rules → get_document (yields docket ID + CFR parts) → find_comments → get_cfr_section, and back from a section's source-note cite with search_rules citation + citation_date.",
35
36
  setup(core) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAElG,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,gCAAgC;IACtC,KAAK,EAAE,gCAAgC;IACvC,+EAA+E;IAC/E,wEAAwE;IACxE,yEAAyE;IACzE,2EAA2E;IAC3E,wEAAwE;IACxE,WAAW,EAAE,WAAW;IACxB,KAAK,E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gC;IACtC,KAAK,EAAE,gCAAgC;IACvC,+EAA+E;IAC/E,wEAAwE;IACxE,yEAAyE;IACzE,2EAA2E;IAC3E,wEAAwE;IACxE,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,sBAAsB;IACjC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE;IACX,YAAY,EACV,+tBAA+tB;IACjuB,KAAK,CAAC,IAAI;QACR,0BAA0B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3C,yBAAyB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrD,uEAAuE;QACvE,KAAK,qBAAqB,CACxB,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAC5B,eAAe,EAAE,CAAC,qBAAqB,CACxC,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,QAAQ;QACZ,MAAM,iBAAiB,EAAE,CAAC;QAC1B,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"browse-cfr.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-cfr.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwJjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoXxB,CAAC"}
1
+ {"version":3,"file":"browse-cfr.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-cfr.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyJjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiYxB,CAAC"}
@@ -23,6 +23,7 @@
23
23
  */
24
24
  import { tool, z } from '@cyanheads/mcp-ts-core';
25
25
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
26
+ import { escapeMarkdownInline, markdown } from '@cyanheads/mcp-ts-core/utils';
26
27
  import { normalizePart } from '../../../services/ecfr/cite.js';
27
28
  import { ECFR_SEARCH_WINDOW, getEcfrService, outsideCoverageMessage, today, } from '../../../services/ecfr/ecfr-service.js';
28
29
  import { mirrorReady, mirrorScope, mirrorSearch, } from '../../../services/ecfr-mirror/ecfr-mirror.js';
@@ -213,6 +214,9 @@ export const browseCfrTool = tool('regulations_browse_cfr', {
213
214
  .optional()
214
215
  .describe('Guidance: the next page to request, a page past the end, an empty result, or what the count means.'),
215
216
  },
217
+ enrichmentTrailer: {
218
+ notice: { render: (value) => (value === undefined ? '' : `> ${escapeMarkdownInline(value)}`) },
219
+ },
216
220
  errors: [
217
221
  {
218
222
  reason: 'query_required',
@@ -402,20 +406,26 @@ export const browseCfrTool = tool('regulations_browse_cfr', {
402
406
  for (const n of result.nodes) {
403
407
  const where = [n.subpart, n.subjectGroup].filter(Boolean).join(' › ');
404
408
  if (where !== placement)
405
- lines.push('', `_${where || '(not in a subpart)'}_`);
409
+ lines.push('', `_${escapeMarkdownInline(where || '(not in a subpart)')}_`);
406
410
  placement = where;
407
411
  const reserved = n.reserved ? ' _(reserved)_' : '';
408
- const cite = n.cfrCite ? ` — \`${n.cfrCite}\` → regulations_get_cfr_section` : '';
409
- const desc = n.description && n.description !== n.label ? ` — ${n.description}` : '';
410
- const appendix = n.appendix ? ` (appendix: \`${n.appendix}\`)` : '';
411
- lines.push(`- **${n.type}** ${n.identifier}: ${n.label}${desc}${reserved}${cite}${appendix}`);
412
+ const cite = n.cfrCite
413
+ ? ` — ${markdown().inlineCode(n.cfrCite).build()} → regulations_get_cfr_section`
414
+ : '';
415
+ const desc = n.description && n.description !== n.label
416
+ ? ` — ${escapeMarkdownInline(n.description)}`
417
+ : '';
418
+ const appendix = n.appendix
419
+ ? ` (appendix: ${markdown().inlineCode(n.appendix).build()})`
420
+ : '';
421
+ lines.push(`- **${escapeMarkdownInline(n.type)}** ${escapeMarkdownInline(n.identifier)}: ${escapeMarkdownInline(n.label)}${desc}${reserved}${cite}${appendix}`);
412
422
  }
413
423
  }
414
424
  if (result.results || result.source) {
415
425
  // The date is not repeated here — the scope line below already names the
416
426
  // day the corpus was read at.
417
427
  lines.push(`**CFR full-text search** (mode: ${result.mode}, source: ${result.source ?? 'live'})`);
418
- lines.push(`_${result.sourceScope ?? 'Corpus scope unreported.'}_`);
428
+ lines.push(`_${escapeMarkdownInline(result.sourceScope ?? 'Corpus scope unreported.')}_`);
419
429
  lines.push('');
420
430
  for (const h of result.results ?? []) {
421
431
  const where = [`Title ${h.title}`, `Part ${h.part}`];
@@ -423,9 +433,9 @@ export const browseCfrTool = tool('regulations_browse_cfr', {
423
433
  where.push(`§ ${h.section}`);
424
434
  if (h.appendix)
425
435
  where.push(`appendix ${h.appendix}`);
426
- lines.push(`### ${h.cfrCite} — ${h.heading} [${where.join(', ')}]`);
427
- lines.push(`_${h.hierarchyPath}_`);
428
- lines.push(h.excerpt);
436
+ lines.push(`**${escapeMarkdownInline(h.cfrCite)} — ${escapeMarkdownInline(h.heading)}** (${escapeMarkdownInline(where.join(', '))})`);
437
+ lines.push(`_${escapeMarkdownInline(h.hierarchyPath)}_`);
438
+ lines.push(escapeMarkdownInline(h.excerpt));
429
439
  lines.push('');
430
440
  }
431
441
  }
@@ -1 +1 @@
1
- {"version":3,"file":"browse-cfr.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-cfr.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,KAAK,GACN,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAEL,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,kFAAkF;AAClF,SAAS,YAAY,CAAC,KAAyB,EAAE,IAAwB;IACvE,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO,IAAI,KAAK,SAAS;QACvB,CAAC,CAAC,uBAAuB,KAAK,EAAE;QAChC,CAAC,CAAC,uBAAuB,KAAK,SAAS,IAAI,EAAE,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,KAAkB,EAClB,IAAY,EACZ,KAAyB,EACzB,IAAwB;IAExB,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACzF,4EAA4E;IAC5E,0EAA0E;IAC1E,OAAO,wBAAwB,IAAI,GAAG,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,+BAA+B,IAAI,yEAAyE,CAAC;AAC9K,CAAC;AAED;;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C,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;gBACzD,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC5C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;QAED,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"find-comments.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-comments.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAqEjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2gB3B,CAAC"}
1
+ {"version":3,"file":"find-comments.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-comments.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAsEjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8gB3B,CAAC"}