@cyanheads/congressgov-mcp-server 0.3.14 → 0.3.16

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 (71) hide show
  1. package/AGENTS.md +7 -3
  2. package/CLAUDE.md +7 -3
  3. package/Dockerfile +2 -2
  4. package/README.md +1 -1
  5. package/dist/mcp-server/prompts/definitions/bill-analysis.prompt.d.ts.map +1 -1
  6. package/dist/mcp-server/prompts/definitions/bill-analysis.prompt.js +3 -2
  7. package/dist/mcp-server/prompts/definitions/bill-analysis.prompt.js.map +1 -1
  8. package/dist/mcp-server/prompts/definitions/legislative-research.prompt.d.ts.map +1 -1
  9. package/dist/mcp-server/prompts/definitions/legislative-research.prompt.js +4 -3
  10. package/dist/mcp-server/prompts/definitions/legislative-research.prompt.js.map +1 -1
  11. package/dist/mcp-server/resources/definitions/bill-types.resource.d.ts +1 -1
  12. package/dist/mcp-server/resources/definitions/bill-types.resource.d.ts.map +1 -1
  13. package/dist/mcp-server/resources/definitions/bill.resource.d.ts +11 -2
  14. package/dist/mcp-server/resources/definitions/bill.resource.d.ts.map +1 -1
  15. package/dist/mcp-server/resources/definitions/bill.resource.js +12 -3
  16. package/dist/mcp-server/resources/definitions/bill.resource.js.map +1 -1
  17. package/dist/mcp-server/resources/definitions/committee.resource.d.ts +1 -1
  18. package/dist/mcp-server/resources/definitions/committee.resource.d.ts.map +1 -1
  19. package/dist/mcp-server/resources/definitions/committee.resource.js +7 -2
  20. package/dist/mcp-server/resources/definitions/committee.resource.js.map +1 -1
  21. package/dist/mcp-server/resources/definitions/current-congress.resource.d.ts +1 -1
  22. package/dist/mcp-server/resources/definitions/current-congress.resource.d.ts.map +1 -1
  23. package/dist/mcp-server/resources/definitions/current-congress.resource.js +1 -1
  24. package/dist/mcp-server/resources/definitions/current-congress.resource.js.map +1 -1
  25. package/dist/mcp-server/resources/definitions/member.resource.d.ts +1 -1
  26. package/dist/mcp-server/resources/definitions/member.resource.d.ts.map +1 -1
  27. package/dist/mcp-server/resources/definitions/member.resource.js +4 -1
  28. package/dist/mcp-server/resources/definitions/member.resource.js.map +1 -1
  29. package/dist/mcp-server/tools/definitions/bill-lookup.tool.d.ts +1 -1
  30. package/dist/mcp-server/tools/definitions/bill-lookup.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/bill-lookup.tool.js +2 -1
  32. package/dist/mcp-server/tools/definitions/bill-lookup.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/bill-summaries.tool.d.ts +1 -1
  34. package/dist/mcp-server/tools/definitions/bill-summaries.tool.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/bill-summaries.tool.js +3 -5
  36. package/dist/mcp-server/tools/definitions/bill-summaries.tool.js.map +1 -1
  37. package/dist/mcp-server/tools/definitions/committee-lookup.tool.d.ts +1 -1
  38. package/dist/mcp-server/tools/definitions/committee-lookup.tool.d.ts.map +1 -1
  39. package/dist/mcp-server/tools/definitions/committee-reports.tool.d.ts +1 -1
  40. package/dist/mcp-server/tools/definitions/committee-reports.tool.d.ts.map +1 -1
  41. package/dist/mcp-server/tools/definitions/crs-reports.tool.d.ts +1 -1
  42. package/dist/mcp-server/tools/definitions/crs-reports.tool.d.ts.map +1 -1
  43. package/dist/mcp-server/tools/definitions/daily-record.tool.d.ts +1 -1
  44. package/dist/mcp-server/tools/definitions/daily-record.tool.d.ts.map +1 -1
  45. package/dist/mcp-server/tools/definitions/daily-record.tool.js +1 -1
  46. package/dist/mcp-server/tools/definitions/daily-record.tool.js.map +1 -1
  47. package/dist/mcp-server/tools/definitions/enacted-laws.tool.d.ts +1 -1
  48. package/dist/mcp-server/tools/definitions/enacted-laws.tool.d.ts.map +1 -1
  49. package/dist/mcp-server/tools/definitions/enacted-laws.tool.js +6 -3
  50. package/dist/mcp-server/tools/definitions/enacted-laws.tool.js.map +1 -1
  51. package/dist/mcp-server/tools/definitions/member-lookup.tool.d.ts +1 -1
  52. package/dist/mcp-server/tools/definitions/member-lookup.tool.d.ts.map +1 -1
  53. package/dist/mcp-server/tools/definitions/roll-votes.tool.d.ts +1 -1
  54. package/dist/mcp-server/tools/definitions/roll-votes.tool.d.ts.map +1 -1
  55. package/dist/mcp-server/tools/definitions/senate-nominations.tool.d.ts +1 -1
  56. package/dist/mcp-server/tools/definitions/senate-nominations.tool.d.ts.map +1 -1
  57. package/dist/mcp-server/tools/definitions/senate-nominations.tool.js +1 -1
  58. package/dist/mcp-server/tools/definitions/senate-nominations.tool.js.map +1 -1
  59. package/dist/mcp-server/tools/format-helpers.d.ts.map +1 -1
  60. package/dist/mcp-server/tools/format-helpers.js +33 -3
  61. package/dist/mcp-server/tools/format-helpers.js.map +1 -1
  62. package/dist/services/congress-api/congress-api-service.d.ts +6 -1
  63. package/dist/services/congress-api/congress-api-service.d.ts.map +1 -1
  64. package/dist/services/congress-api/congress-api-service.js +89 -30
  65. package/dist/services/congress-api/congress-api-service.js.map +1 -1
  66. package/dist/services/congress-api/types.d.ts +7 -4
  67. package/dist/services/congress-api/types.d.ts.map +1 -1
  68. package/dist/services/congress-api/types.js +11 -1
  69. package/dist/services/congress-api/types.js.map +1 -1
  70. package/package.json +8 -7
  71. package/server.json +3 -3
package/AGENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** congressgov-mcp-server
4
- **Version:** 0.3.14
4
+ **Version:** 0.3.15
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
6
6
 
7
7
  > **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.
@@ -221,10 +221,13 @@ Available skills:
221
221
  | `api-context` | Context interface, logger, state, progress |
222
222
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
223
223
  | `api-linter` | MCP definition linter rules reference — look up `format-parity`, `schema-*`, `name-*`, `server-json-*` diagnostics |
224
+ | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper — Tier 3 opt-in |
224
225
  | `api-services` | LLM, Speech, Graph services |
226
+ | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
225
227
  | `api-testing` | createMockContext, test patterns |
226
- | `api-utils` | Formatting, parsing, security, pagination, scheduling |
228
+ | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
227
229
  | `api-workers` | Cloudflare Workers runtime |
230
+ | `tool-defs-analysis` | Audit MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
228
231
 
229
232
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
230
233
 
@@ -261,13 +264,14 @@ Each per-version file opens with YAML frontmatter:
261
264
  ---
262
265
  summary: One-line headline, ≤250 chars # required — powers the rollup index
263
266
  breaking: false # optional — true flags breaking changes
267
+ security: false # optional — true flags security fixes
264
268
  ---
265
269
 
266
270
  # 0.3.14 — YYYY-MM-DD
267
271
  ...
268
272
  ```
269
273
 
270
- `breaking: true` renders a `· ⚠️ Breaking` badge in the rollup — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames).
274
+ `breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
271
275
 
272
276
  ---
273
277
 
package/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** congressgov-mcp-server
4
- **Version:** 0.3.14
4
+ **Version:** 0.3.15
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
6
6
 
7
7
  > **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.
@@ -221,10 +221,13 @@ Available skills:
221
221
  | `api-context` | Context interface, logger, state, progress |
222
222
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
223
223
  | `api-linter` | MCP definition linter rules reference — look up `format-parity`, `schema-*`, `name-*`, `server-json-*` diagnostics |
224
+ | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper — Tier 3 opt-in |
224
225
  | `api-services` | LLM, Speech, Graph services |
226
+ | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
225
227
  | `api-testing` | createMockContext, test patterns |
226
- | `api-utils` | Formatting, parsing, security, pagination, scheduling |
228
+ | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
227
229
  | `api-workers` | Cloudflare Workers runtime |
230
+ | `tool-defs-analysis` | Audit MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
228
231
 
229
232
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
230
233
 
@@ -261,13 +264,14 @@ Each per-version file opens with YAML frontmatter:
261
264
  ---
262
265
  summary: One-line headline, ≤250 chars # required — powers the rollup index
263
266
  breaking: false # optional — true flags breaking changes
267
+ security: false # optional — true flags security fixes
264
268
  ---
265
269
 
266
270
  # 0.3.14 — YYYY-MM-DD
267
271
  ...
268
272
  ```
269
273
 
270
- `breaking: true` renders a `· ⚠️ Breaking` badge in the rollup — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames).
274
+ `breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
271
275
 
272
276
  ---
273
277
 
package/Dockerfile CHANGED
@@ -4,7 +4,7 @@
4
4
  # This stage installs all dependencies (including dev), builds the TypeScript
5
5
  # source code into JavaScript, and prepares the production assets.
6
6
  # ==============================================================================
7
- FROM oven/bun:1 AS build
7
+ FROM oven/bun:1.3 AS build
8
8
 
9
9
  WORKDIR /usr/src/app
10
10
 
@@ -28,7 +28,7 @@ RUN bun run build
28
28
  # application. It uses a slim base image and only includes production
29
29
  # dependencies and build artifacts.
30
30
  # ==============================================================================
31
- FROM oven/bun:1-slim AS production
31
+ FROM oven/bun:1.3-slim AS production
32
32
 
33
33
  WORKDIR /usr/src/app
34
34
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![npm](https://img.shields.io/npm/v/@cyanheads/congressgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [![Version](https://img.shields.io/badge/Version-0.3.14-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.27.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/)
10
+ [![npm](https://img.shields.io/npm/v/@cyanheads/congressgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [![Version](https://img.shields.io/badge/Version-0.3.16-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/)
11
11
 
12
12
  [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"bill-analysis.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/bill-analysis.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;;kBA8B7B,CAAC"}
1
+ {"version":3,"file":"bill-analysis.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/bill-analysis.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;;kBA+B7B,CAAC"}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { prompt, z } from '@cyanheads/mcp-ts-core';
6
6
  export const billAnalysisPrompt = prompt('congressgov_bill_analysis', {
7
- description: 'Structured framework for analyzing a bill: summary, sponsors, committee referrals, action timeline, related legislation, and policy implications.',
7
+ description: 'Structured framework for analyzing a bill: summary, sponsors, committee referrals, action timeline, related legislation, policy implications, and outlook.',
8
8
  args: z.object({
9
9
  congress: z.string().describe('Congress number (e.g., 118).'),
10
10
  billType: z.string().describe('Bill type code (e.g., hr, s).'),
@@ -28,7 +28,8 @@ export const billAnalysisPrompt = prompt('congressgov_bill_analysis', {
28
28
  Use these tools as needed:
29
29
  - congressgov_bill_lookup (operations: get, actions, cosponsors, committees, summaries, text, related)
30
30
  - congressgov_member_lookup (to understand sponsor/cosponsor profiles)
31
- - congressgov_committee_lookup (to understand committee context)`,
31
+ - congressgov_committee_lookup (to understand committee context)
32
+ - congressgov_committee_reports (to retrieve the committee report on the bill, if reported out)`,
32
33
  },
33
34
  },
34
35
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"bill-analysis.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/bill-analysis.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,C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C,2BAA2B,CAAC;KAC7D,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAClB;YACE,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,gBAAgB,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,UAAU,aAAa,IAAI,CAAC,QAAQ;;;;;;;;;;;;;;gGAcN;aACzF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"legislative-research.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/legislative-research.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,yBAAyB;;;kBA0CpC,CAAC"}
1
+ {"version":3,"file":"legislative-research.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/legislative-research.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,yBAAyB;;;kBA2CpC,CAAC"}
@@ -29,9 +29,10 @@ Since the Congress.gov API has no keyword search, use these discovery strategies
29
29
 
30
30
  1. **CRS Reports** — Use congressgov_crs_reports to find nonpartisan policy analyses on this topic.
31
31
  2. **Recent Summaries** — Use congressgov_bill_summaries with a broad date range to find recently summarized bills that may relate to this topic.
32
- 3. **Committee Activity** — Identify relevant committees using congressgov_committee_lookup, then check their recent bills and reports.
33
- 4. **Key Members** — Identify members known for this policy area, then check their sponsored legislation via congressgov_member_lookup.
34
- 5. **Floor Activity** — Check congressgov_daily_record for recent floor debate on the topic.
32
+ 3. **Bill Detail** — Once candidate bills surface, use congressgov_bill_lookup with operation='get' (and sub-resources like 'actions', 'cosponsors', 'related') for full sponsor, status, and policy area data.
33
+ 4. **Committee Activity** — Identify relevant committees using congressgov_committee_lookup, then check their recent bills and reports.
34
+ 5. **Key Members** — Identify members known for this policy area, then check their sponsored legislation via congressgov_member_lookup.
35
+ 6. **Floor Activity** — Check congressgov_daily_record for recent floor debate on the topic.
35
36
 
36
37
  Synthesize findings into:
37
38
  - **Landscape** — What legislation is active on this topic? What stage are key bills at?
@@ -1 +1 @@
1
- {"version":3,"file":"legislative-research.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/legislative-research.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,kCAAkC,EAAE;IAClF,WAAW,EACT,uJAAuJ;IACzJ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,CAAC,iFAAiF,CAAC;QAC9F,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,4DAA4D,CAAC;KAC1E,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ;YAChC,CAAC,CAAC,gBAAgB,IAAI,CAAC,QAAQ,cAAc;YAC7C,CAAC,CAAC,2FAA2F,CAAC;QAEhG,OAAO;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,uBAAuB,IAAI,CAAC,KAAK,oCAAoC,YAAY;;;;;;;;;;;;;;;oEAe7B;iBAC3D;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"legislative-research.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/legislative-research.prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,kCAAkC,EAAE;IAClF,WAAW,EACT,uJAAuJ;IACzJ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,CAAC,iFAAiF,CAAC;QAC9F,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,4DAA4D,CAAC;KAC1E,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ;YAChC,CAAC,CAAC,gBAAgB,IAAI,CAAC,QAAQ,cAAc;YAC7C,CAAC,CAAC,2FAA2F,CAAC;QAEhG,OAAO;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,uBAAuB,IAAI,CAAC,KAAK,oCAAoC,YAAY;;;;;;;;;;;;;;;;oEAgB7B;iBAC3D;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export declare const billTypesResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<import("zod").ZodObject<Readonly<{
6
6
  [k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
7
- }>, import("zod/v4/core").$strip>, undefined>;
7
+ }>, import("zod/v4/core").$strip>, undefined, undefined>;
8
8
  //# sourceMappingURL=bill-types.resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bill-types.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/bill-types.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8BH,eAAO,MAAM,iBAAiB;;6CAc5B,CAAC"}
1
+ {"version":3,"file":"bill-types.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/bill-types.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8BH,eAAO,MAAM,iBAAiB;;wDAc5B,CAAC"}
@@ -5,7 +5,16 @@
5
5
  import { z } from '@cyanheads/mcp-ts-core';
6
6
  export declare const billResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{
7
7
  congress: z.ZodString;
8
- billType: z.ZodString;
8
+ billType: z.ZodEnum<{
9
+ hr: "hr";
10
+ s: "s";
11
+ hjres: "hjres";
12
+ sjres: "sjres";
13
+ hconres: "hconres";
14
+ sconres: "sconres";
15
+ hres: "hres";
16
+ sres: "sres";
17
+ }>;
9
18
  billNumber: z.ZodString;
10
- }, z.core.$strip>, undefined>;
19
+ }, z.core.$strip>, undefined, undefined>;
11
20
  //# sourceMappingURL=bill.resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bill.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/bill.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAIrD,eAAO,MAAM,YAAY;;;;6BA2BvB,CAAC"}
1
+ {"version":3,"file":"bill.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/bill.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAIrD,eAAO,MAAM,YAAY;;;;;;;;;;;;;wCAmCvB,CAAC"}
@@ -4,14 +4,23 @@
4
4
  */
5
5
  import { resource, z } from '@cyanheads/mcp-ts-core';
6
6
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
7
+ import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
7
8
  export const billResource = resource('congress://bill/{congress}/{billType}/{billNumber}', {
8
9
  name: 'bill-detail',
9
10
  description: 'Bill detail: sponsor, status, policy area, committees, latest action.',
10
11
  mimeType: 'application/json',
11
12
  params: z.object({
12
- congress: z.string().describe('Congress number (e.g., 118).'),
13
- billType: z.string().describe('Bill type code (e.g., hr, s, hjres).'),
14
- billNumber: z.string().describe('Bill number (e.g., 3076).'),
13
+ congress: z
14
+ .string()
15
+ .regex(/^\d+$/, 'Congress must be a positive integer (e.g., 118).')
16
+ .describe('Congress number (e.g., 118).'),
17
+ billType: z
18
+ .enum(BILL_TYPE_CODES)
19
+ .describe(`Bill type code: one of ${BILL_TYPE_CODES.join(', ')}.`),
20
+ billNumber: z
21
+ .string()
22
+ .regex(/^\d+$/, 'Bill number must be a positive integer (e.g., 3076).')
23
+ .describe('Bill number (e.g., 3076).'),
15
24
  }),
16
25
  async handler(params, ctx) {
17
26
  const api = getCongressApi();
@@ -1 +1 @@
1
- {"version":3,"file":"bill.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/bill.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAGjF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,oDAAoD,EAAE;IACzF,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC7D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KAC7D,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;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C;QACpE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,KAAK,CAAC,OAAO,EAAE,sDAAsD,CAAC;aACtE,QAAQ,CAAC,2BAA2B,CAAC;KACzC,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;QACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,OAAO,CAC9B;YACE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;YACjC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;SACtC,EACD,GAAG,CACJ,CAAC;QACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE;YACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
@@ -5,5 +5,5 @@
5
5
  import { z } from '@cyanheads/mcp-ts-core';
6
6
  export declare const committeeResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{
7
7
  committeeCode: z.ZodString;
8
- }, z.core.$strip>, undefined>;
8
+ }, z.core.$strip>, undefined, undefined>;
9
9
  //# sourceMappingURL=committee.resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"committee.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/committee.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGrD,eAAO,MAAM,iBAAiB;;6BAmB5B,CAAC"}
1
+ {"version":3,"file":"committee.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/committee.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGrD,eAAO,MAAM,iBAAiB;;wCA6B5B,CAAC"}
@@ -9,7 +9,10 @@ export const committeeResource = resource('congress://committee/{committeeCode}'
9
9
  description: 'Committee detail: name, chamber, subcommittees, history, legislation counts.',
10
10
  mimeType: 'application/json',
11
11
  params: z.object({
12
- committeeCode: z.string().describe("Committee system code (e.g., 'hsju00')."),
12
+ committeeCode: z
13
+ .string()
14
+ .regex(/^[hsj][a-z0-9]{3,8}$/, "Committee system code must start with 'h' (House), 's' (Senate), or 'j' (Joint) followed by 3-8 lowercase alphanumeric chars (e.g., 'hsju00').")
15
+ .describe("Committee system code (e.g., 'hsju00')."),
13
16
  }),
14
17
  async handler(params, ctx) {
15
18
  const api = getCongressApi();
@@ -20,7 +23,9 @@ export const committeeResource = resource('congress://committee/{committeeCode}'
20
23
  : 'house';
21
24
  const result = await api.getCommittee(chamber, params.committeeCode, ctx);
22
25
  ctx.log.info('Committee resource fetched', { committeeCode: params.committeeCode });
23
- return result.committee;
26
+ const history = result.committee.history;
27
+ const name = history?.[0]?.officialName ?? history?.[0]?.libraryOfCongressName ?? null;
28
+ return { name, chamber, ...result.committee };
24
29
  },
25
30
  });
26
31
  //# sourceMappingURL=committee.resource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"committee.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/committee.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,sCAAsC,EAAE;IAChF,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,8EAA8E;IAC3F,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;KAC9E,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;QACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;YAClD,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;gBACpC,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,OAAO,CAAC;QACd,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;QAC1E,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QACpF,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1B,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"committee.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/committee.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,sCAAsC,EAAE;IAChF,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,8EAA8E;IAC3F,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,KAAK,CACJ,sBAAsB,EACtB,gJAAgJ,CACjJ;aACA,QAAQ,CAAC,yCAAyC,CAAC;KACvD,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;QACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;YAClD,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;gBACpC,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,OAAO,CAAC;QACd,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;QAC1E,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QACpF,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,OAEpB,CAAC;QACd,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,qBAAqB,IAAI,IAAI,CAAC;QACvF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAChD,CAAC;CACF,CAAC,CAAC"}
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export declare const currentCongressResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<import("zod").ZodObject<Readonly<{
6
6
  [k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
7
- }>, import("zod/v4/core").$strip>, undefined>;
7
+ }>, import("zod/v4/core").$strip>, undefined, undefined>;
8
8
  //# sourceMappingURL=current-congress.resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"current-congress.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/current-congress.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,uBAAuB;;6CAkBlC,CAAC"}
1
+ {"version":3,"file":"current-congress.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/current-congress.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,uBAAuB;;wDAkBlC,CAAC"}
@@ -16,7 +16,7 @@ export const currentCongressResource = resource('congress://current', {
16
16
  async handler(_params, ctx) {
17
17
  const api = getCongressApi();
18
18
  const congress = await api.getCurrentCongress(ctx);
19
- ctx.log.info('Current congress fetched', { congress: congress.congress });
19
+ ctx.log.info('Current congress fetched', { congress: congress.number });
20
20
  return congress;
21
21
  },
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"current-congress.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/current-congress.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,oBAAoB,EAAE;IACpE,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,yFAAyF;IAC3F,QAAQ,EAAE,kBAAkB;IAE5B,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QACjB,SAAS,EAAE;YACT,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;SACtF;KACF,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG;QACxB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACnD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1E,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"current-congress.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/current-congress.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,oBAAoB,EAAE;IACpE,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,yFAAyF;IAC3F,QAAQ,EAAE,kBAAkB;IAE5B,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QACjB,SAAS,EAAE;YACT,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;SACtF;KACF,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG;QACxB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACnD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QACxE,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC,CAAC"}
@@ -5,5 +5,5 @@
5
5
  import { z } from '@cyanheads/mcp-ts-core';
6
6
  export declare const memberResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{
7
7
  bioguideId: z.ZodString;
8
- }, z.core.$strip>, undefined>;
8
+ }, z.core.$strip>, undefined, undefined>;
9
9
  //# sourceMappingURL=member.resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"member.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/member.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGrD,eAAO,MAAM,cAAc;;6BAczB,CAAC"}
1
+ {"version":3,"file":"member.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/member.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGrD,eAAO,MAAM,cAAc;;wCAoBzB,CAAC"}
@@ -9,7 +9,10 @@ export const memberResource = resource('congress://member/{bioguideId}', {
9
9
  description: 'Member profile: name, state, party, terms, leadership, office, legislation counts.',
10
10
  mimeType: 'application/json',
11
11
  params: z.object({
12
- bioguideId: z.string().describe('Bioguide identifier for the member (e.g., P000197).'),
12
+ bioguideId: z
13
+ .string()
14
+ .regex(/^[A-Z]\d{6}$/, 'Bioguide ID must be one uppercase letter followed by 6 digits (e.g., P000197).')
15
+ .describe('Bioguide identifier for the member (e.g., P000197).'),
13
16
  }),
14
17
  async handler(params, ctx) {
15
18
  const api = getCongressApi();
@@ -1 +1 @@
1
- {"version":3,"file":"member.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/member.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,gCAAgC,EAAE;IACvE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,oFAAoF;IACjG,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;KACvF,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;QACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAC3D,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;QAC3E,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"member.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/member.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,gCAAgC,EAAE;IACvE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,oFAAoF;IACjG,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,KAAK,CACJ,cAAc,EACd,gFAAgF,CACjF;aACA,QAAQ,CAAC,qDAAqD,CAAC;KACnE,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG;QACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAC3D,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;QAC3E,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;CACF,CAAC,CAAC"}
@@ -33,5 +33,5 @@ export declare const billLookupTool: import("@cyanheads/mcp-ts-core").ToolDefini
33
33
  toDateTime: z.ZodOptional<z.ZodString>;
34
34
  limit: z.ZodDefault<z.ZodNumber>;
35
35
  offset: z.ZodDefault<z.ZodNumber>;
36
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
36
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
37
37
  //# sourceMappingURL=bill-lookup.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bill-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AA2BjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDA0FzB,CAAC"}
1
+ {"version":3,"file":"bill-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AA2BjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DA0FzB,CAAC"}
@@ -6,7 +6,8 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { formatBills } from '../../../mcp-server/tools/format-helpers.js';
7
7
  import { normalizeOptionalString } from '../../../mcp-server/tools/tool-helpers.js';
8
8
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
9
- const BillTypeEnum = z.enum(['hr', 's', 'hjres', 'sjres', 'hconres', 'sconres', 'hres', 'sres']);
9
+ import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
10
+ const BillTypeEnum = z.enum(BILL_TYPE_CODES);
10
11
  const OperationEnum = z.enum([
11
12
  'list',
12
13
  'get',
@@ -1 +1 @@
1
- {"version":3,"file":"bill-lookup.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAGjF,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEjG,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3B,MAAM;IACN,KAAK;IACL,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;IACX,MAAM;IACN,QAAQ;IACR,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAA2B;IAC/C,OAAO,EAAE,cAAc;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE;IAC5D,WAAW,EAAE,4dAA4d;IACze,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAC9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAC5D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACnF,QAAQ,EAAE,YAAY,CAAC,QAAQ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BACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,WAAW,GAAG,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,kBAAkB,CACzC;YACE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,WAAW,EAAE,WAA8B;YAC3C,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,EACD,GAAG,CACJ,CAAC;QACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,EAAE;YAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,WAAW;SACZ,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC"}
@@ -19,5 +19,5 @@ export declare const billSummariesTool: import("@cyanheads/mcp-ts-core").ToolDef
19
19
  toDateTime: z.ZodOptional<z.ZodString>;
20
20
  limit: z.ZodDefault<z.ZodNumber>;
21
21
  offset: z.ZodDefault<z.ZodNumber>;
22
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
22
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
23
23
  //# sourceMappingURL=bill-summaries.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bill-summaries.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-summaries.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAQjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;kDA+D5B,CAAC"}
1
+ {"version":3,"file":"bill-summaries.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-summaries.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AASjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;6DA4D5B,CAAC"}
@@ -6,9 +6,10 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { formatSummaries } from '../../../mcp-server/tools/format-helpers.js';
7
7
  import { normalizeOptionalString } from '../../../mcp-server/tools/tool-helpers.js';
8
8
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
9
+ import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
9
10
  const DEFAULT_LOOKBACK_MS = 7 * 24 * 60 * 60 * 1000;
10
11
  export const billSummariesTool = tool('congressgov_bill_summaries', {
11
- description: `Browse recent CRS (Congressional Research Service) bill summaries — plain-language summaries of bills at each legislative stage, useful for answering "what's happening in Congress?". The fromDateTime/toDateTime filters apply to the summary's update time (lastSummaryUpdateDate), not the bill's action date, so results include recently rewritten summaries of older bills. Defaults to summaries updated in the last 7 days. Each item shows both the bill's action date and the summary update date.`,
12
+ description: `Browse recent CRS (Congressional Research Service) bill summaries — plain-language summaries of bills at each legislative stage, useful for answering "what's happening in Congress?". The fromDateTime/toDateTime filters apply to the summary's update time, not the bill's action date, so results include recently rewritten summaries of older bills. Defaults to summaries updated in the last 7 days. Each item shows both the bill's action date and the summary update date. For summaries of one specific bill, use congressgov_bill_lookup with operation='summaries' instead.`,
12
13
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
13
14
  input: z.object({
14
15
  congress: z
@@ -17,10 +18,7 @@ export const billSummariesTool = tool('congressgov_bill_summaries', {
17
18
  .positive()
18
19
  .optional()
19
20
  .describe('Congress number. Optional — omit for summaries across all congresses.'),
20
- billType: z
21
- .enum(['hr', 's', 'hjres', 'sjres', 'hconres', 'sconres', 'hres', 'sres'])
22
- .optional()
23
- .describe("Bill type filter. Requires 'congress'."),
21
+ billType: z.enum(BILL_TYPE_CODES).optional().describe("Bill type filter. Requires 'congress'."),
24
22
  fromDateTime: z
25
23
  .string()
26
24
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"bill-summaries.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/bill-summaries.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC,4BAA4B,EAAE;IAClE,WAAW,EAAE,+eAA+e;IAC5f,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAC9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CAAC,uEAAuE,CAAC;QACpF,QAAQ,EAAE,CAAC;aACR,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;aACzE,QAAQ,EAAE;aACV,QAAQ,CAAC,wCAAwC,CAAC;Q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,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;gBACpF,CAAC,CAAC,SAAS,CAAC,CAAC;QAEjB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CACpC;YACE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,YAAY;YACZ,UAAU,EAAE,eAAe;YAC3B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,EACD,GAAG,CACJ,CAAC;QACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAChE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC"}
@@ -24,5 +24,5 @@ export declare const committeeLookupTool: import("@cyanheads/mcp-ts-core").ToolD
24
24
  recent: "recent";
25
25
  oldest: "oldest";
26
26
  }>>;
27
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
27
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
28
28
  //# sourceMappingURL=committee-lookup.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"committee-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/committee-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAMjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;kDA2F9B,CAAC"}
1
+ {"version":3,"file":"committee-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/committee-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAMjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;6DA2F9B,CAAC"}
@@ -18,5 +18,5 @@ export declare const committeeReportsTool: import("@cyanheads/mcp-ts-core").Tool
18
18
  reportNumber: z.ZodOptional<z.ZodNumber>;
19
19
  limit: z.ZodDefault<z.ZodNumber>;
20
20
  offset: z.ZodDefault<z.ZodNumber>;
21
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
21
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
22
22
  //# sourceMappingURL=committee-reports.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"committee-reports.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/committee-reports.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;kDAgF/B,CAAC"}
1
+ {"version":3,"file":"committee-reports.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/committee-reports.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;6DAgF/B,CAAC"}
@@ -11,5 +11,5 @@ export declare const crsReportsTool: import("@cyanheads/mcp-ts-core").ToolDefini
11
11
  reportNumber: z.ZodOptional<z.ZodString>;
12
12
  limit: z.ZodDefault<z.ZodNumber>;
13
13
  offset: z.ZodDefault<z.ZodNumber>;
14
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
14
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
15
15
  //# sourceMappingURL=crs-reports.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"crs-reports.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/crs-reports.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,cAAc;;;;;;;;kDAkCzB,CAAC"}
1
+ {"version":3,"file":"crs-reports.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/crs-reports.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,cAAc;;;;;;;;6DAkCzB,CAAC"}
@@ -13,5 +13,5 @@ export declare const dailyRecordTool: import("@cyanheads/mcp-ts-core").ToolDefin
13
13
  issueNumber: z.ZodOptional<z.ZodNumber>;
14
14
  limit: z.ZodDefault<z.ZodNumber>;
15
15
  offset: z.ZodDefault<z.ZodNumber>;
16
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
16
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
17
17
  //# sourceMappingURL=daily-record.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"daily-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/daily-record.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,eAAe;;;;;;;;;;kDAwE1B,CAAC"}
1
+ {"version":3,"file":"daily-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/daily-record.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,eAAe;;;;;;;;;;6DAwE1B,CAAC"}
@@ -6,7 +6,7 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { formatDailyRecord } from '../../../mcp-server/tools/format-helpers.js';
7
7
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
8
8
  export const dailyRecordTool = tool('congressgov_daily_record', {
9
- description: `Browse the daily Congressional Record — floor speeches, debates, and legislative text published each day Congress is in session. Navigation is hierarchical: list → volumes, issues → individual articles. Use 'list' to find recent volumes, 'issues' to see what's in a volume, and 'articles' to access individual speeches and debate sections.`,
9
+ description: `Browse the daily Congressional Record — floor speeches, debates, and legislative text published each day Congress is in session. Navigation is hierarchical: volumes (via 'list')issues (via 'issues')articles (via 'articles'). Use 'list' to find recent volumes, 'issues' to see what's in a volume, and 'articles' to access individual speeches and debate sections.`,
10
10
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
11
11
  input: z.object({
12
12
  operation: z.enum(['list', 'issues', 'articles']).describe('Which data to retrieve.'),
@@ -1 +1 @@
1
- {"version":3,"file":"daily-record.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/daily-record.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAC9D,WAAW,EAAE,qVAAqV;IAClW,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAC9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QACrF,YAAY,EAAE,CAAC;aAC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AAC;QACJ,CAAC;QAED,IAAI,KAAK,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;YACjC,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,cAAc,CACrC;gBACE,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,EACD,GAAG,CACJ,CAAC;YACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;YACpF,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CACb,4HAA4H,CAC7H,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,gBAAgB,CACvC;YACE,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,EACD,GAAG,CACJ,CAAC;QACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC9C,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"daily-record.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/daily-record.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEj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AAE,KAAK,CAAC,WAAW;SAC/B,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC"}
@@ -16,5 +16,5 @@ export declare const enactedLawsTool: import("@cyanheads/mcp-ts-core").ToolDefin
16
16
  lawNumber: z.ZodOptional<z.ZodNumber>;
17
17
  limit: z.ZodDefault<z.ZodNumber>;
18
18
  offset: z.ZodDefault<z.ZodNumber>;
19
- }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
19
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined>;
20
20
  //# sourceMappingURL=enacted-laws.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enacted-laws.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/enacted-laws.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;kDAkD1B,CAAC"}
1
+ {"version":3,"file":"enacted-laws.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/enacted-laws.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;6DAyD1B,CAAC"}