@cyanheads/congressgov-mcp-server 0.7.0 → 0.7.1

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 (107) hide show
  1. package/AGENTS.md +22 -15
  2. package/CLAUDE.md +22 -15
  3. package/Dockerfile +2 -2
  4. package/README.md +211 -92
  5. package/changelog/0.1.x/0.1.0.md +36 -0
  6. package/changelog/0.2.x/0.2.0.md +26 -0
  7. package/changelog/0.2.x/0.2.1.md +16 -0
  8. package/changelog/0.3.x/0.3.0.md +26 -0
  9. package/changelog/0.3.x/0.3.1.md +14 -0
  10. package/changelog/0.3.x/0.3.10.md +15 -0
  11. package/changelog/0.3.x/0.3.11.md +18 -0
  12. package/changelog/0.3.x/0.3.12.md +15 -0
  13. package/changelog/0.3.x/0.3.13.md +20 -0
  14. package/changelog/0.3.x/0.3.14.md +30 -0
  15. package/changelog/0.3.x/0.3.15.md +28 -0
  16. package/changelog/0.3.x/0.3.16.md +34 -0
  17. package/changelog/0.3.x/0.3.17.md +28 -0
  18. package/changelog/0.3.x/0.3.18.md +18 -0
  19. package/changelog/0.3.x/0.3.19.md +36 -0
  20. package/changelog/0.3.x/0.3.2.md +12 -0
  21. package/changelog/0.3.x/0.3.20.md +22 -0
  22. package/changelog/0.3.x/0.3.21.md +15 -0
  23. package/changelog/0.3.x/0.3.22.md +29 -0
  24. package/changelog/0.3.x/0.3.23.md +25 -0
  25. package/changelog/0.3.x/0.3.24.md +20 -0
  26. package/changelog/0.3.x/0.3.25.md +12 -0
  27. package/changelog/0.3.x/0.3.26.md +25 -0
  28. package/changelog/0.3.x/0.3.27.md +16 -0
  29. package/changelog/0.3.x/0.3.28.md +18 -0
  30. package/changelog/0.3.x/0.3.29.md +13 -0
  31. package/changelog/0.3.x/0.3.3.md +11 -0
  32. package/changelog/0.3.x/0.3.30.md +28 -0
  33. package/changelog/0.3.x/0.3.31.md +28 -0
  34. package/changelog/0.3.x/0.3.32.md +21 -0
  35. package/changelog/0.3.x/0.3.4.md +18 -0
  36. package/changelog/0.3.x/0.3.5.md +23 -0
  37. package/changelog/0.3.x/0.3.6.md +10 -0
  38. package/changelog/0.3.x/0.3.7.md +15 -0
  39. package/changelog/0.3.x/0.3.8.md +29 -0
  40. package/changelog/0.3.x/0.3.9.md +21 -0
  41. package/changelog/0.4.x/0.4.0.md +28 -0
  42. package/changelog/0.4.x/0.4.1.md +17 -0
  43. package/changelog/0.4.x/0.4.2.md +39 -0
  44. package/changelog/0.4.x/0.4.3.md +16 -0
  45. package/changelog/0.5.x/0.5.0.md +22 -0
  46. package/changelog/0.5.x/0.5.1.md +16 -0
  47. package/changelog/0.5.x/0.5.2.md +29 -0
  48. package/changelog/0.6.x/0.6.0.md +24 -0
  49. package/changelog/0.7.x/0.7.0.md +13 -0
  50. package/changelog/0.7.x/0.7.1.md +35 -0
  51. package/changelog/template.md +151 -0
  52. package/dist/config/server-config.d.ts +3 -3
  53. package/dist/config/server-config.d.ts.map +1 -1
  54. package/dist/config/server-config.js +6 -3
  55. package/dist/config/server-config.js.map +1 -1
  56. package/dist/index.js +23 -3
  57. package/dist/index.js.map +1 -1
  58. package/dist/mcp-server/tools/definitions/bill-lookup.tool.d.ts +7 -0
  59. package/dist/mcp-server/tools/definitions/bill-lookup.tool.d.ts.map +1 -1
  60. package/dist/mcp-server/tools/definitions/bill-lookup.tool.js +2 -2
  61. package/dist/mcp-server/tools/definitions/bill-summaries.tool.d.ts +4 -0
  62. package/dist/mcp-server/tools/definitions/bill-summaries.tool.d.ts.map +1 -1
  63. package/dist/mcp-server/tools/definitions/bill-summaries.tool.js +2 -2
  64. package/dist/mcp-server/tools/definitions/committee-lookup.tool.d.ts +4 -0
  65. package/dist/mcp-server/tools/definitions/committee-lookup.tool.d.ts.map +1 -1
  66. package/dist/mcp-server/tools/definitions/committee-lookup.tool.js +2 -2
  67. package/dist/mcp-server/tools/definitions/committee-reports.tool.d.ts +7 -0
  68. package/dist/mcp-server/tools/definitions/committee-reports.tool.d.ts.map +1 -1
  69. package/dist/mcp-server/tools/definitions/committee-reports.tool.js +2 -2
  70. package/dist/mcp-server/tools/definitions/crs-reports.tool.d.ts +4 -0
  71. package/dist/mcp-server/tools/definitions/crs-reports.tool.d.ts.map +1 -1
  72. package/dist/mcp-server/tools/definitions/crs-reports.tool.js +2 -2
  73. package/dist/mcp-server/tools/definitions/daily-record.tool.d.ts +7 -0
  74. package/dist/mcp-server/tools/definitions/daily-record.tool.d.ts.map +1 -1
  75. package/dist/mcp-server/tools/definitions/daily-record.tool.js +2 -2
  76. package/dist/mcp-server/tools/definitions/enacted-laws.tool.d.ts +4 -0
  77. package/dist/mcp-server/tools/definitions/enacted-laws.tool.d.ts.map +1 -1
  78. package/dist/mcp-server/tools/definitions/enacted-laws.tool.js +2 -2
  79. package/dist/mcp-server/tools/definitions/member-lookup.tool.d.ts +4 -0
  80. package/dist/mcp-server/tools/definitions/member-lookup.tool.d.ts.map +1 -1
  81. package/dist/mcp-server/tools/definitions/member-lookup.tool.js +2 -2
  82. package/dist/mcp-server/tools/definitions/roll-votes.tool.d.ts +4 -0
  83. package/dist/mcp-server/tools/definitions/roll-votes.tool.d.ts.map +1 -1
  84. package/dist/mcp-server/tools/definitions/roll-votes.tool.js +2 -2
  85. package/dist/mcp-server/tools/definitions/search-bills.tool.d.ts +1 -1
  86. package/dist/mcp-server/tools/definitions/search-bills.tool.js +3 -3
  87. package/dist/mcp-server/tools/definitions/senate-nominations.tool.d.ts +4 -0
  88. package/dist/mcp-server/tools/definitions/senate-nominations.tool.d.ts.map +1 -1
  89. package/dist/mcp-server/tools/definitions/senate-nominations.tool.js +2 -2
  90. package/dist/mcp-server/tools/tool-helpers.d.ts +7 -0
  91. package/dist/mcp-server/tools/tool-helpers.d.ts.map +1 -1
  92. package/dist/mcp-server/tools/tool-helpers.js +7 -0
  93. package/dist/mcp-server/tools/tool-helpers.js.map +1 -1
  94. package/dist/services/congress-api/congress-api-service.d.ts.map +1 -1
  95. package/dist/services/congress-api/congress-api-service.js +8 -11
  96. package/dist/services/congress-api/congress-api-service.js.map +1 -1
  97. package/dist/services/congress-documents/congress-documents-service.d.ts.map +1 -1
  98. package/dist/services/congress-documents/congress-documents-service.js +10 -9
  99. package/dist/services/congress-documents/congress-documents-service.js.map +1 -1
  100. package/dist/services/congress-mirror/congress-mirror-service.js +1 -1
  101. package/dist/services/congress-mirror/ingest.d.ts +1 -1
  102. package/dist/services/congress-mirror/types.d.ts +1 -1
  103. package/dist/services/senate-lis/senate-vote-service.d.ts.map +1 -1
  104. package/dist/services/senate-lis/senate-vote-service.js +9 -7
  105. package/dist/services/senate-lis/senate-vote-service.js.map +1 -1
  106. package/package.json +11 -9
  107. package/server.json +3 -3
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAQH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MA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AM,iBAAiB,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IACnD,CAAC;CACF,CAAC,CAAC;AAEH,wEAAwE;AACxE,KAAK,UAAU,qBAAqB,CAAC,IAAY;IAC/C,MAAM,gBAAgB,CAAC,QAAQ,CAC7B,wBAAwB,EACxB,IAAI,EACJ,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,CAAC,IAAI,CAAC,iDAAiD,EAAE,MAAM,CAAC,CAAC;QACvE,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;YACzD,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,iBAAiB,CAAC,MAAM;SACjC,CAAC,CAAC;QACH,aAAa,GAAG,OAAO,CAAC;QACxB,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;QAC7B,MAAM,CAAC,IAAI,CACT,oDAAoD,MAAM,CAAC,cAAc,2BAA2B,MAAM,CAAC,KAAK,GAAG,EACnH,MAAM,CACP,CAAC;IACJ,CAAC,EACD,8EAA8E,CAC/E,CAAC;IACF,gBAAgB,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AACnD,CAAC"}
@@ -56,24 +56,28 @@ export declare const billLookupTool: import("@cyanheads/mcp-ts-core").ToolDefini
56
56
  }, z.core.$loose>, readonly [{
57
57
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
58
58
  readonly reason: 'not_found';
59
+ readonly thrownBy: 'service';
59
60
  readonly retryable: false;
60
61
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
61
62
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
62
63
  }, {
63
64
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
64
65
  readonly reason: 'rate_limited';
66
+ readonly thrownBy: 'service';
65
67
  readonly retryable: true;
66
68
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
67
69
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
68
70
  }, {
69
71
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
70
72
  readonly reason: 'invalid_request';
73
+ readonly thrownBy: 'service';
71
74
  readonly retryable: false;
72
75
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
73
76
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
74
77
  }, {
75
78
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
76
79
  readonly reason: 'upstream_error';
80
+ readonly thrownBy: 'service';
77
81
  readonly retryable: true;
78
82
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
79
83
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -92,18 +96,21 @@ export declare const billLookupTool: import("@cyanheads/mcp-ts-core").ToolDefini
92
96
  }, {
93
97
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
94
98
  readonly reason: 'document_fetch_failed';
99
+ readonly thrownBy: 'service';
95
100
  readonly retryable: true;
96
101
  readonly when: 'www.congress.gov did not return a readable document — a non-2xx status, a network failure, an empty body, or a content type that is not text or XML.';
97
102
  readonly recovery: 'Retry after a short delay; if the failure persists, request a different format or read the document at the sourceUrl the text operation returns.';
98
103
  }, {
99
104
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
100
105
  readonly reason: 'document_too_large';
106
+ readonly thrownBy: 'service';
101
107
  readonly retryable: false;
102
108
  readonly when: 'The document is larger than the byte ceiling this server retrieves, so no character window can be served from it.';
103
109
  readonly recovery: 'Read the document at the sourceUrl the text operation returns. A document this size clears the ceiling in every format it publishes, so switching format reaches the same limit.';
104
110
  }, {
105
111
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
106
112
  readonly reason: 'offset_past_end';
113
+ readonly thrownBy: 'service';
107
114
  readonly retryable: false;
108
115
  readonly when: 'characterOffset is at or beyond the last character of the document, so the window would be empty.';
109
116
  readonly recovery: 'Restart the walk at characterOffset 0 and follow nextOffset, which goes null once the document has been read to the end.';
@@ -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;AA+CjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmOzB,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;AA+CjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmOzB,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatBills } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, normalizeOptionalString, notifyIfNoMatches, numericIdentifier, toIdentifierNumber, validateDateTimeRange, validateIsoDateTime, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatBills } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, normalizeOptionalString, notifyIfNoMatches, numericIdentifier, toIdentifierNumber, validateDateTimeRange, validateIsoDateTime, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
11
11
  import { getCongressDocuments } from '../../../services/congress-documents/congress-documents-service.js';
@@ -28,24 +28,28 @@ export declare const billSummariesTool: import("@cyanheads/mcp-ts-core").ToolDef
28
28
  }, z.core.$loose>, readonly [{
29
29
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
30
30
  readonly reason: 'not_found';
31
+ readonly thrownBy: 'service';
31
32
  readonly retryable: false;
32
33
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
33
34
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
34
35
  }, {
35
36
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
36
37
  readonly reason: 'rate_limited';
38
+ readonly thrownBy: 'service';
37
39
  readonly retryable: true;
38
40
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
39
41
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
40
42
  }, {
41
43
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
42
44
  readonly reason: 'invalid_request';
45
+ readonly thrownBy: 'service';
43
46
  readonly retryable: false;
44
47
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
45
48
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
46
49
  }, {
47
50
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
48
51
  readonly reason: 'upstream_error';
52
+ readonly thrownBy: 'service';
49
53
  readonly retryable: true;
50
54
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
51
55
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -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;AAmBjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyF5B,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;AAmBjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyF5B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatSummaries } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOutput, normalizeOptionalString, notifyIfNoMatches, validateDateTimeRange, validateIsoDateTime, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatSummaries } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOutput, normalizeOptionalString, notifyIfNoMatches, validateDateTimeRange, validateIsoDateTime, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
11
11
  const DEFAULT_LOOKBACK_MS = 7 * 24 * 60 * 60 * 1000;
@@ -35,24 +35,28 @@ export declare const committeeLookupTool: import("@cyanheads/mcp-ts-core").ToolD
35
35
  }, z.core.$loose>, readonly [{
36
36
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
37
37
  readonly reason: 'not_found';
38
+ readonly thrownBy: 'service';
38
39
  readonly retryable: false;
39
40
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
40
41
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
41
42
  }, {
42
43
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
43
44
  readonly reason: 'rate_limited';
45
+ readonly thrownBy: 'service';
44
46
  readonly retryable: true;
45
47
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
46
48
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
47
49
  }, {
48
50
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
49
51
  readonly reason: 'invalid_request';
52
+ readonly thrownBy: 'service';
50
53
  readonly retryable: false;
51
54
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
52
55
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
53
56
  }, {
54
57
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
55
58
  readonly reason: 'upstream_error';
59
+ readonly thrownBy: 'service';
56
60
  readonly retryable: true;
57
61
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
58
62
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -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;AAkHjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8N9B,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;AAkHjD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8N9B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatCommittees } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatCommittees } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  // ── Client-side committee name filter ────────────────────────────────────────
11
11
  /** Normalize a string for matching: lowercase, strip punctuation/diacritics, collapse whitespace. */
@@ -37,24 +37,28 @@ export declare const committeeReportsTool: import("@cyanheads/mcp-ts-core").Tool
37
37
  }, z.core.$loose>, readonly [{
38
38
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
39
39
  readonly reason: 'not_found';
40
+ readonly thrownBy: 'service';
40
41
  readonly retryable: false;
41
42
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
42
43
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
43
44
  }, {
44
45
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
45
46
  readonly reason: 'rate_limited';
47
+ readonly thrownBy: 'service';
46
48
  readonly retryable: true;
47
49
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
48
50
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
49
51
  }, {
50
52
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
51
53
  readonly reason: 'invalid_request';
54
+ readonly thrownBy: 'service';
52
55
  readonly retryable: false;
53
56
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
54
57
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
55
58
  }, {
56
59
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
57
60
  readonly reason: 'upstream_error';
61
+ readonly thrownBy: 'service';
58
62
  readonly retryable: true;
59
63
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
60
64
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -73,18 +77,21 @@ export declare const committeeReportsTool: import("@cyanheads/mcp-ts-core").Tool
73
77
  }, {
74
78
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
75
79
  readonly reason: 'document_fetch_failed';
80
+ readonly thrownBy: 'service';
76
81
  readonly retryable: true;
77
82
  readonly when: 'www.congress.gov did not return a readable document — a non-2xx status, a network failure, an empty body, or a content type that is not text or XML.';
78
83
  readonly recovery: 'Retry after a short delay; if the failure persists, request a different format or read the document at the sourceUrl the text operation returns.';
79
84
  }, {
80
85
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
81
86
  readonly reason: 'document_too_large';
87
+ readonly thrownBy: 'service';
82
88
  readonly retryable: false;
83
89
  readonly when: 'The document is larger than the byte ceiling this server retrieves, so no character window can be served from it.';
84
90
  readonly recovery: 'Read the document at the sourceUrl the text operation returns. A document this size clears the ceiling in every format it publishes, so switching format reaches the same limit.';
85
91
  }, {
86
92
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
87
93
  readonly reason: 'offset_past_end';
94
+ readonly thrownBy: 'service';
88
95
  readonly retryable: false;
89
96
  readonly when: 'characterOffset is at or beyond the last character of the document, so the window would be empty.';
90
97
  readonly recovery: 'Restart the walk at characterOffset 0 and follow nextOffset, which goes null once the document has been read to the end.';
@@ -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;AAiCjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+K/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;AAiCjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+K/B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatCommitteeReports } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatCommitteeReports } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  import { getCongressDocuments } from '../../../services/congress-documents/congress-documents-service.js';
11
11
  import { describeFormat, selectDocumentUrl, } from '../../../services/congress-documents/document-formats.js';
@@ -21,24 +21,28 @@ export declare const crsReportsTool: import("@cyanheads/mcp-ts-core").ToolDefini
21
21
  }, z.core.$loose>, readonly [{
22
22
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
23
23
  readonly reason: 'not_found';
24
+ readonly thrownBy: 'service';
24
25
  readonly retryable: false;
25
26
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
26
27
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
27
28
  }, {
28
29
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
29
30
  readonly reason: 'rate_limited';
31
+ readonly thrownBy: 'service';
30
32
  readonly retryable: true;
31
33
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
32
34
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
33
35
  }, {
34
36
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
35
37
  readonly reason: 'invalid_request';
38
+ readonly thrownBy: 'service';
36
39
  readonly retryable: false;
37
40
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
38
41
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
39
42
  }, {
40
43
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
41
44
  readonly reason: 'upstream_error';
45
+ readonly thrownBy: 'service';
42
46
  readonly retryable: true;
43
47
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
44
48
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -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;AAYjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDzB,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;AAYjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDzB,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatCrsReports } from '../../../mcp-server/tools/format-helpers.js';
8
- import { congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatCrsReports } from '../format-helpers.js';
8
+ import { congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  export const crsReportsTool = tool('congressgov_crs_reports', {
11
11
  title: 'Congress.gov CRS Reports',
@@ -31,24 +31,28 @@ export declare const dailyRecordTool: import("@cyanheads/mcp-ts-core").ToolDefin
31
31
  }, z.core.$loose>, readonly [{
32
32
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
33
33
  readonly reason: 'not_found';
34
+ readonly thrownBy: 'service';
34
35
  readonly retryable: false;
35
36
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
36
37
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
37
38
  }, {
38
39
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
39
40
  readonly reason: 'rate_limited';
41
+ readonly thrownBy: 'service';
40
42
  readonly retryable: true;
41
43
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
42
44
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
43
45
  }, {
44
46
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
45
47
  readonly reason: 'invalid_request';
48
+ readonly thrownBy: 'service';
46
49
  readonly retryable: false;
47
50
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
48
51
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
49
52
  }, {
50
53
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
51
54
  readonly reason: 'upstream_error';
55
+ readonly thrownBy: 'service';
52
56
  readonly retryable: true;
53
57
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
54
58
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -67,18 +71,21 @@ export declare const dailyRecordTool: import("@cyanheads/mcp-ts-core").ToolDefin
67
71
  }, {
68
72
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
69
73
  readonly reason: 'document_fetch_failed';
74
+ readonly thrownBy: 'service';
70
75
  readonly retryable: true;
71
76
  readonly when: 'www.congress.gov did not return a readable document — a non-2xx status, a network failure, an empty body, or a content type that is not text or XML.';
72
77
  readonly recovery: 'Retry after a short delay; if the failure persists, request a different format or read the document at the sourceUrl the text operation returns.';
73
78
  }, {
74
79
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
75
80
  readonly reason: 'document_too_large';
81
+ readonly thrownBy: 'service';
76
82
  readonly retryable: false;
77
83
  readonly when: 'The document is larger than the byte ceiling this server retrieves, so no character window can be served from it.';
78
84
  readonly recovery: 'Read the document at the sourceUrl the text operation returns. A document this size clears the ceiling in every format it publishes, so switching format reaches the same limit.';
79
85
  }, {
80
86
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
81
87
  readonly reason: 'offset_past_end';
88
+ readonly thrownBy: 'service';
82
89
  readonly retryable: false;
83
90
  readonly when: 'characterOffset is at or beyond the last character of the document, so the window would be empty.';
84
91
  readonly recovery: 'Restart the walk at characterOffset 0 and follow nextOffset, which goes null once the document has been read to the end.';
@@ -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;AAqBjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkK1B,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;AAqBjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkK1B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatDailyRecord } from '../../../mcp-server/tools/format-helpers.js';
8
- import { congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, notifyIfNoMatches, numericIdentifier, toIdentifierNumber, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatDailyRecord } from '../format-helpers.js';
8
+ import { congressErrorContracts, documentErrorContracts, documentWindowInput, listEnrichment, listOrDetail, notifyIfNoMatches, numericIdentifier, toIdentifierNumber, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  import { getCongressDocuments } from '../../../services/congress-documents/congress-documents-service.js';
11
11
  import { describeFormat, selectDocumentUrl, } from '../../../services/congress-documents/document-formats.js';
@@ -26,24 +26,28 @@ export declare const enactedLawsTool: import("@cyanheads/mcp-ts-core").ToolDefin
26
26
  }, z.core.$loose>, readonly [{
27
27
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
28
28
  readonly reason: 'not_found';
29
+ readonly thrownBy: 'service';
29
30
  readonly retryable: false;
30
31
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
31
32
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
32
33
  }, {
33
34
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
34
35
  readonly reason: 'rate_limited';
36
+ readonly thrownBy: 'service';
35
37
  readonly retryable: true;
36
38
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
37
39
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
38
40
  }, {
39
41
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
40
42
  readonly reason: 'invalid_request';
43
+ readonly thrownBy: 'service';
41
44
  readonly retryable: false;
42
45
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
43
46
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
44
47
  }, {
45
48
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
46
49
  readonly reason: 'upstream_error';
50
+ readonly thrownBy: 'service';
47
51
  readonly retryable: true;
48
52
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
49
53
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -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;AAejD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkF1B,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;AAejD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkF1B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatLaws } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, lawNumberIdentifier, listEnrichment, listOrDetail, notifyIfNoMatches, toLawNumber, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatLaws } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, lawNumberIdentifier, listEnrichment, listOrDetail, notifyIfNoMatches, toLawNumber, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  export const enactedLawsTool = tool('congressgov_enacted_laws', {
11
11
  title: 'Congress.gov Enacted Laws',
@@ -27,24 +27,28 @@ export declare const memberLookupTool: import("@cyanheads/mcp-ts-core").ToolDefi
27
27
  }, z.core.$loose>, readonly [{
28
28
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
29
29
  readonly reason: 'not_found';
30
+ readonly thrownBy: 'service';
30
31
  readonly retryable: false;
31
32
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
32
33
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
33
34
  }, {
34
35
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
35
36
  readonly reason: 'rate_limited';
37
+ readonly thrownBy: 'service';
36
38
  readonly retryable: true;
37
39
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
38
40
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
39
41
  }, {
40
42
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
41
43
  readonly reason: 'invalid_request';
44
+ readonly thrownBy: 'service';
42
45
  readonly retryable: false;
43
46
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
44
47
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
45
48
  }, {
46
49
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
47
50
  readonly reason: 'upstream_error';
51
+ readonly thrownBy: 'service';
48
52
  readonly retryable: true;
49
53
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
50
54
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -1 +1 @@
1
- {"version":3,"file":"member-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/member-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAajD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0H3B,CAAC"}
1
+ {"version":3,"file":"member-lookup.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/member-lookup.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAajD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0H3B,CAAC"}
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
6
6
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
7
- import { formatMembers } from '../../../mcp-server/tools/format-helpers.js';
8
- import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
7
+ import { formatMembers } from '../format-helpers.js';
8
+ import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../tool-helpers.js';
9
9
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
10
10
  export const memberLookupTool = tool('congressgov_member_lookup', {
11
11
  title: 'Congress.gov Member Lookup',
@@ -34,24 +34,28 @@ export declare const rollVotesTool: import("@cyanheads/mcp-ts-core").ToolDefinit
34
34
  }, z.core.$loose>, readonly [{
35
35
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
36
36
  readonly reason: 'not_found';
37
+ readonly thrownBy: 'service';
37
38
  readonly retryable: false;
38
39
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
39
40
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
40
41
  }, {
41
42
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
42
43
  readonly reason: 'rate_limited';
44
+ readonly thrownBy: 'service';
43
45
  readonly retryable: true;
44
46
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
45
47
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
46
48
  }, {
47
49
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
48
50
  readonly reason: 'invalid_request';
51
+ readonly thrownBy: 'service';
49
52
  readonly retryable: false;
50
53
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
51
54
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
52
55
  }, {
53
56
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
54
57
  readonly reason: 'upstream_error';
58
+ readonly thrownBy: 'service';
55
59
  readonly retryable: true;
56
60
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
57
61
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -1 +1 @@
1
- {"version":3,"file":"roll-votes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/roll-votes.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAcjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4HxB,CAAC"}
1
+ {"version":3,"file":"roll-votes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/roll-votes.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAcjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4HxB,CAAC"}
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { tool, z } from '@cyanheads/mcp-ts-core';
8
8
  import { validationError } from '@cyanheads/mcp-ts-core/errors';
9
- import { formatVotes } from '../../../mcp-server/tools/format-helpers.js';
10
- import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
9
+ import { formatVotes } from '../format-helpers.js';
10
+ import { buildEffectiveQuery, congressErrorContracts, listEnrichment, listOrDetail, notifyIfNoMatches, } from '../tool-helpers.js';
11
11
  import { getCongressApi } from '../../../services/congress-api/congress-api-service.js';
12
12
  import { getSenateVoteService } from '../../../services/senate-lis/senate-vote-service.js';
13
13
  export const rollVotesTool = tool('congressgov_roll_votes', {
@@ -5,7 +5,7 @@
5
5
  * live fallback: a mirror that has not finished its initial build returns an empty
6
6
  * result with an enrichment notice rather than a thrown error. Gated behind
7
7
  * CONGRESS_MIRROR_ENABLED via disabledTool() — when the mirror is off (the
8
- * default) the tool stays on the manifest and the landing page for operators but
8
+ * default) the tool stays on the landing page for operators but
9
9
  * is skipped during MCP registration, so clients never see it in tools/list.
10
10
  * @module mcp-server/tools/definitions/search-bills
11
11
  */
@@ -5,14 +5,14 @@
5
5
  * live fallback: a mirror that has not finished its initial build returns an empty
6
6
  * result with an enrichment notice rather than a thrown error. Gated behind
7
7
  * CONGRESS_MIRROR_ENABLED via disabledTool() — when the mirror is off (the
8
- * default) the tool stays on the manifest and the landing page for operators but
8
+ * default) the tool stays on the landing page for operators but
9
9
  * is skipped during MCP registration, so clients never see it in tools/list.
10
10
  * @module mcp-server/tools/definitions/search-bills
11
11
  */
12
12
  import { disabledTool, tool, z } from '@cyanheads/mcp-ts-core';
13
13
  import { getServerConfig } from '../../../config/server-config.js';
14
- import { formatSearchBills } from '../../../mcp-server/tools/format-helpers.js';
15
- import { buildEffectiveQuery, listEnrichment, listOutput, notifyIfNoMatches, } from '../../../mcp-server/tools/tool-helpers.js';
14
+ import { formatSearchBills } from '../format-helpers.js';
15
+ import { buildEffectiveQuery, listEnrichment, listOutput, notifyIfNoMatches, } from '../tool-helpers.js';
16
16
  import { BILL_TYPE_CODES } from '../../../services/congress-api/types.js';
17
17
  import { getCongressMirror } from '../../../services/congress-mirror/congress-mirror-service.js';
18
18
  const searchBillsDef = tool('congressgov_search_bills', {
@@ -27,24 +27,28 @@ export declare const senateNominationsTool: import("@cyanheads/mcp-ts-core").Too
27
27
  }, z.core.$loose>, readonly [{
28
28
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
29
29
  readonly reason: 'not_found';
30
+ readonly thrownBy: 'service';
30
31
  readonly retryable: false;
31
32
  readonly when: 'A requested bill, member, committee, report, vote, or nomination does not exist in Congress.gov.';
32
33
  readonly recovery: "Use the tool's list or browse operation to discover valid identifiers, then retry with one that exists.";
33
34
  }, {
34
35
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
35
36
  readonly reason: 'rate_limited';
37
+ readonly thrownBy: 'service';
36
38
  readonly retryable: true;
37
39
  readonly when: 'The Congress.gov API rate limit (5,000 requests/hour per key) was exceeded.';
38
40
  readonly recovery: 'Wait for the hourly rate-limit window to reset before retrying, or reduce the request frequency.';
39
41
  }, {
40
42
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
41
43
  readonly reason: 'invalid_request';
44
+ readonly thrownBy: 'service';
42
45
  readonly retryable: false;
43
46
  readonly when: 'Congress.gov rejected the request as malformed — a bad date range or an identifier with an unexpected shape.';
44
47
  readonly recovery: 'Check parameter formats: dates must be ISO 8601 like 2026-05-01T00:00:00Z and identifiers must match their documented shape.';
45
48
  }, {
46
49
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
47
50
  readonly reason: 'upstream_error';
51
+ readonly thrownBy: 'service';
48
52
  readonly retryable: true;
49
53
  readonly when: 'Congress.gov returned an unexpected error (5xx or another non-2xx status).';
50
54
  readonly recovery: 'Retry after a short delay; if the failure persists the Congress.gov service may be temporarily degraded.';
@@ -1 +1 @@
1
- {"version":3,"file":"senate-nominations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/senate-nominations.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAYjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgIhC,CAAC"}
1
+ {"version":3,"file":"senate-nominations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/senate-nominations.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAYjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgIhC,CAAC"}