@cyanheads/congressgov-mcp-server 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +21 -18
- package/CLAUDE.md +21 -18
- package/Dockerfile +81 -36
- package/README.md +93 -99
- package/changelog/0.7.x/0.7.3.md +36 -0
- package/changelog/0.7.x/0.7.4.md +31 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/committee-reports.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/committee-reports.tool.js +0 -1
- package/dist/mcp-server/tools/definitions/committee-reports.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/daily-record.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/daily-record.tool.js +0 -1
- package/dist/mcp-server/tools/definitions/daily-record.tool.js.map +1 -1
- package/dist/mcp-server/tools/tool-helpers.d.ts +4 -4
- package/dist/mcp-server/tools/tool-helpers.js +4 -4
- package/dist/services/congress-documents/congress-documents-service.d.ts.map +1 -1
- package/dist/services/congress-documents/congress-documents-service.js +23 -31
- package/dist/services/congress-documents/congress-documents-service.js.map +1 -1
- package/package.json +13 -12
- package/server.json +11 -25
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h1>@cyanheads/congressgov-mcp-server</h1>
|
|
3
|
-
<p><b>Access U.S. congressional data
|
|
3
|
+
<p><b>Access U.S. congressional data (bills, votes, members, committees) via MCP. STDIO or Streamable HTTP.</b>
|
|
4
4
|
<div>11 Tools • 5 Resources • 2 Prompts</div>
|
|
5
5
|
</p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/congressgov-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
14
|
<div align="center">
|
|
15
15
|
|
|
16
|
-
[](https://github.com/cyanheads/congressgov-mcp-server/releases/latest/download/congressgov-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=congressgov-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvY29uZ3Jlc3Nnb3YtbWNwLXNlcnZlciJdLCJlbnYiOnsiQ09OR1JFU1NfQVBJX0tFWSI6InlvdXItYXBpLWtleSJ9fQ==) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22congressgov-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads
|
|
16
|
+
[](https://github.com/cyanheads/congressgov-mcp-server/releases/latest/download/congressgov-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=congressgov-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvY29uZ3Jlc3Nnb3YtbWNwLXNlcnZlciJdLCJlbnYiOnsiQ09OR1JFU1NfQVBJX0tFWSI6InlvdXItYXBpLWtleSJ9fQ==) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22congressgov-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fcongressgov-mcp-server%22%5D%2C%22env%22%3A%7B%22CONGRESS_API_KEY%22%3A%22your-api-key%22%7D%7D)
|
|
17
17
|
|
|
18
18
|
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
19
19
|
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
|
|
30
30
|
## Overview
|
|
31
31
|
|
|
32
|
-
U.S. congressional data from the Congress.gov API v3 and the Senate's official vote feed
|
|
32
|
+
U.S. congressional data from the Congress.gov API v3 and the Senate's official vote feed: bills, enacted laws, members, committees, roll call votes, nominations, CRS and committee reports, and the Congressional Record. Browse legislative activity, read bill and report text, and follow the Senate confirmation pipeline from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
|
|
33
33
|
|
|
34
34
|
### Tools
|
|
35
35
|
|
|
36
36
|
| Tool | Description |
|
|
37
37
|
|:---|:---|
|
|
38
|
-
| `congressgov_bill_lookup` | Browse and retrieve
|
|
38
|
+
| `congressgov_bill_lookup` | Browse and retrieve bills: actions, sponsors, summaries, text, related bills |
|
|
39
39
|
| `congressgov_enacted_laws` | Browse enacted public and private laws by congress |
|
|
40
|
-
| `congressgov_member_lookup` |
|
|
41
|
-
| `congressgov_committee_lookup` | Browse
|
|
42
|
-
| `congressgov_roll_votes` | Retrieve House and Senate roll call votes and
|
|
43
|
-
| `congressgov_senate_nominations` | Browse presidential nominations
|
|
44
|
-
| `congressgov_bill_summaries` | Browse
|
|
45
|
-
| `congressgov_crs_reports` | Browse and retrieve nonpartisan CRS policy
|
|
46
|
-
| `congressgov_committee_reports` | Browse and
|
|
47
|
-
| `congressgov_daily_record` | Browse the daily Congressional Record
|
|
48
|
-
| `congressgov_search_bills` | Keyword-search bill titles and CRS summaries via a local full-text mirror (opt-in
|
|
40
|
+
| `congressgov_member_lookup` | Find members by state, district, or congress, and retrieve their legislative portfolios |
|
|
41
|
+
| `congressgov_committee_lookup` | Browse committees and their legislation, reports, and nominations |
|
|
42
|
+
| `congressgov_roll_votes` | Retrieve House and Senate roll call votes and each member's position |
|
|
43
|
+
| `congressgov_senate_nominations` | Browse presidential nominations and track Senate confirmation |
|
|
44
|
+
| `congressgov_bill_summaries` | Browse recently updated CRS bill summaries |
|
|
45
|
+
| `congressgov_crs_reports` | Browse and retrieve nonpartisan CRS policy reports |
|
|
46
|
+
| `congressgov_committee_reports` | Browse and read committee reports accompanying legislation |
|
|
47
|
+
| `congressgov_daily_record` | Browse and read the daily Congressional Record |
|
|
48
|
+
| `congressgov_search_bills` | Keyword-search bill titles and CRS summaries via a local full-text mirror (opt-in) |
|
|
49
49
|
|
|
50
50
|
### Resources
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ U.S. congressional data from the Congress.gov API v3 and the Senate's official v
|
|
|
57
57
|
| `congress://bill/{congress}/{billType}/{billNumber}` | Bill detail by congress, type, and number |
|
|
58
58
|
| `congress://committee/{committeeCode}` | Committee detail by committee code |
|
|
59
59
|
|
|
60
|
-
Bill, member, and committee data is also reachable through `congressgov_bill_lookup`, `congressgov_member_lookup`, and `congressgov_committee_lookup` (operation `get`)
|
|
60
|
+
Bill, member, and committee data is also reachable through `congressgov_bill_lookup`, `congressgov_member_lookup`, and `congressgov_committee_lookup` (operation `get`), since many MCP clients are tool-only and never surface resources.
|
|
61
61
|
|
|
62
62
|
### Prompts
|
|
63
63
|
|
|
@@ -70,150 +70,132 @@ Bill, member, and committee data is also reachable through `congressgov_bill_loo
|
|
|
70
70
|
|
|
71
71
|
### `congressgov_bill_lookup` <sub>tool</sub>
|
|
72
72
|
|
|
73
|
-
-
|
|
74
|
-
- `
|
|
75
|
-
- `
|
|
76
|
-
- `summaries` selects one version with `versionCode` (the code a summary row carries — `00` introduced, `49` public law) and reads each row's text through the same `characterOffset`/`characterLimit` window; a row past the window carries `textTotalCharacters`, `textTruncated`, and `textNextOffset`, and a window end never splits an HTML tag or character reference, so following `textNextOffset` reassembles the upstream text exactly
|
|
77
|
-
- Typed failures on `content`: `document_unavailable`, `format_unavailable`, `document_fetch_failed`, `document_too_large`, `offset_past_end`, alongside the shared `not_found` / `rate_limited` / `invalid_request` / `upstream_error` set — `offset_past_end` also covers a `summaries` call whose `characterOffset` is past the end of every returned row
|
|
73
|
+
- `list` browses one `congress`, narrowed by `billType` and a `fromDateTime`/`toDateTime` range on the record's update date, newest first unless `order: 'oldest'`; `get`, `actions`, `amendments`, `cosponsors`, `committees`, `subjects`, `summaries`, `text`, `titles`, `related`, and `content` need `congress` + `billType` + `billNumber`
|
|
74
|
+
- `content` reads the text version at `textVersionIndex` (0-based in `text` order, 0 is the most recent) and returns one character window in `content.text` with `totalCharacters`, `truncated`, and `nextOffset`
|
|
75
|
+
- `summaries` takes an optional `versionCode` (`00` introduced, `49` public law) and applies the same page budget and row window as `congressgov_bill_summaries`, steered by `characterOffset`/`characterLimit`; a cut row carries `textTotalCharacters`, `textTruncated`, and `textNextOffset`
|
|
78
76
|
|
|
79
77
|
---
|
|
80
78
|
|
|
81
79
|
### `congressgov_enacted_laws` <sub>tool</sub>
|
|
82
80
|
|
|
83
|
-
- `list`
|
|
84
|
-
- `get` returns the origin bill record
|
|
85
|
-
- `lawNumber` accepts either the bare number (`90`) or the full `{congress}-{number}` citation a `list` row carries; a citation naming a different congress than the `congress` param is rejected rather than silently resolved
|
|
86
|
-
- `limit` 1–250, `offset` pagination for `list`
|
|
81
|
+
- `list` browses one `congress`, optionally by `lawType` (`pub` or `priv`), the enactment filter `congressgov_bill_lookup` lacks; `get` needs `lawType` + `lawNumber`, taken from a list row's `laws[].number` (`118-90`) or its bare number (`90`)
|
|
82
|
+
- `get` returns the origin bill record, with the law citation on its `laws[]` array
|
|
87
83
|
|
|
88
84
|
---
|
|
89
85
|
|
|
90
86
|
### `congressgov_member_lookup` <sub>tool</sub>
|
|
91
87
|
|
|
92
|
-
- No name search
|
|
93
|
-
- `get` returns the
|
|
94
|
-
- `limit` 1–250, `offset` pagination
|
|
88
|
+
- No name search: `list` filters by `stateCode` (plus `district`, `0` for at-large, which requires `stateCode`), `congress`, and `currentMember`
|
|
89
|
+
- `get` returns the profile for a `bioguideId` (e.g. `P000197`); `sponsored` and `cosponsored` return that member's legislation
|
|
95
90
|
|
|
96
91
|
---
|
|
97
92
|
|
|
98
93
|
### `congressgov_committee_lookup` <sub>tool</sub>
|
|
99
94
|
|
|
100
|
-
-
|
|
101
|
-
- `committeeCode`
|
|
102
|
-
- `
|
|
103
|
-
- `bills` sub-resource defaults to `order='recent'` (newest update-date first, computed client-side since upstream ignores sort); rows carry no titles — chain `congressgov_bill_lookup get` per row
|
|
104
|
-
- `nominations` sub-resource is Senate-only
|
|
95
|
+
- `committeeCode` is a chamber prefix (`h`/`s`/`j`), letters, and a 2-digit suffix (e.g. `hsju00`); `get`, `bills`, `reports`, and the Senate-only `nominations` infer `chamber` from the prefix
|
|
96
|
+
- A committee name in `committeeCode` resolves when exactly one committee matches, and otherwise returns the candidate rows with a notice; `list` with `filter` name-matches every committee in scope, past the 250-row page cap, and fuzzy hits carry `approximate: true`
|
|
97
|
+
- `bills` is newest first by default (`order`), and its rows carry no titles, so chain `congressgov_bill_lookup` `get` per row
|
|
105
98
|
|
|
106
99
|
---
|
|
107
100
|
|
|
108
101
|
### `congressgov_roll_votes` <sub>tool</sub>
|
|
109
102
|
|
|
110
|
-
- `chamber` is `house` (default, Congress.gov API) or `senate` (the Senate's
|
|
111
|
-
- `list`
|
|
112
|
-
- Senate
|
|
113
|
-
- Roll call numbers reset each session and are specific to one chamber
|
|
114
|
-
- `limit` 1–250, `offset` pagination for `list` and `members`
|
|
103
|
+
- `chamber` is `house` (default, Congress.gov API) or `senate` (the Senate's LIS feed); every call needs `congress` + `session` (1 or 2), and `get`/`members` add `voteNumber`, which resets each session and is specific to one chamber
|
|
104
|
+
- `list` is newest first unless `order: 'oldest'`; `get` returns the question, result, tallies, and party breakdown, and `members` returns each member's position
|
|
105
|
+
- Senate votes start at the 101st Congress (1989), and Senate rows pair the feed's year-less `voteDate` with a derived `voteDateIso`
|
|
115
106
|
|
|
116
107
|
---
|
|
117
108
|
|
|
118
109
|
### `congressgov_senate_nominations` <sub>tool</sub>
|
|
119
110
|
|
|
120
|
-
-
|
|
121
|
-
- Multi-part
|
|
122
|
-
- `ordinal` is discovered from the nomination's `nominees` array via `get` first
|
|
111
|
+
- `list` browses one `congress`; `get`, `actions`, `committees`, `hearings`, and `nominees` need a `nominationNumber` (`1000` for PN1000), and `nominees` also needs an `ordinal` from the `nominees` array `get` returns
|
|
112
|
+
- Multi-part nominations (e.g. PN851) keep their activity on partitioned children (`851-1`, `851-2`, …); an empty sub-resource call on the bare number returns a notice pointing there
|
|
123
113
|
|
|
124
114
|
---
|
|
125
115
|
|
|
126
116
|
### `congressgov_bill_summaries` <sub>tool</sub>
|
|
127
117
|
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
- A summary past the per-row window arrives as an exact character window carrying `textTotalCharacters`, `textTruncated`, and `textNextOffset`; the notice names the `congressgov_bill_lookup` call that reads on from there
|
|
132
|
-
- For summaries of one specific bill — and to read a windowed summary to the end — use `congressgov_bill_lookup` with `operation='summaries'` instead
|
|
118
|
+
- Optional `congress` and `billType` (which requires `congress`); `fromDateTime`/`toDateTime` filter on the summary's update time, not the bill's action date, and cover the last 7 days when both are omitted
|
|
119
|
+
- A page stops adding rows at 50,000 serialized characters (at least one row always returns, and `pagination.nextOffset` resumes); a summary over 25,000 characters arrives windowed with `textTotalCharacters`, `textTruncated`, and `textNextOffset`
|
|
120
|
+
- For one bill's summaries, or to read a windowed summary to the end, use `congressgov_bill_lookup` `summaries`
|
|
133
121
|
|
|
134
122
|
---
|
|
135
123
|
|
|
136
124
|
### `congressgov_crs_reports` <sub>tool</sub>
|
|
137
125
|
|
|
138
|
-
-
|
|
139
|
-
- `
|
|
140
|
-
- `limit` 1–250, `offset` pagination for `list`
|
|
126
|
+
- `list` browses the catalog; `get` takes a `reportNumber` such as `R40097`, `RL33612`, or `IF12345`
|
|
127
|
+
- `get` returns authors, topics, summary, and download formats
|
|
141
128
|
|
|
142
129
|
---
|
|
143
130
|
|
|
144
131
|
### `congressgov_committee_reports` <sub>tool</sub>
|
|
145
132
|
|
|
146
|
-
-
|
|
147
|
-
- `
|
|
148
|
-
- Typed failures on `content`: `document_unavailable`, `format_unavailable`, `document_fetch_failed`, `document_too_large`, `offset_past_end`
|
|
133
|
+
- `list` browses one `congress`, optionally by `reportType` (`hrpt` House, `srpt` Senate, `erpt` Executive); `get`, `text`, and `content` need `reportType` + `reportNumber`
|
|
134
|
+
- `get` returns the citation, title, committees, and associated bill; `text` lists `{type, url}` format links, and `content` reads the report as one character window
|
|
149
135
|
|
|
150
136
|
---
|
|
151
137
|
|
|
152
138
|
### `congressgov_daily_record` <sub>tool</sub>
|
|
153
139
|
|
|
154
|
-
-
|
|
155
|
-
- `content` reads
|
|
156
|
-
- Typed failures on `content`: `document_unavailable`, `format_unavailable`, `document_fetch_failed`, `document_too_large`, `offset_past_end`
|
|
140
|
+
- Navigation runs `list` (volumes) → `issues` (by `volumeNumber`) → `articles` (by `volumeNumber` + `issueNumber`)
|
|
141
|
+
- `content` reads the article at `articleIndex` (0-based across the issue) as one character window; Record articles publish Formatted Text and PDF only, so `format: 'xml'` fails as `format_unavailable`
|
|
157
142
|
|
|
158
143
|
---
|
|
159
144
|
|
|
160
145
|
### `congressgov_search_bills` <sub>tool</sub>
|
|
161
146
|
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
- With the flag set but the index not yet built (`bun run mirror:init`), the tool answers with an empty result and a build-the-index notice instead of an error
|
|
166
|
-
- `limit` 1–100 (a narrower cap than the other tools' 1–250), `offset` pagination
|
|
147
|
+
- `query` keywords (AND-combined) over bill titles and CRS summaries, narrowed by `congress`, `billType`, and `originChamber`; `limit` 1–100, `offset` pagination
|
|
148
|
+
- BM25-ranked rows carry `billId` plus `congress`/`billType`/`billNumber` for `congressgov_bill_lookup`, and a `summaryPreview`; policy area and full bill text are not indexed
|
|
149
|
+
- Listed only when `CONGRESS_MIRROR_ENABLED=true`; until `bun run mirror:init` builds the index, it returns an empty result with a notice
|
|
167
150
|
|
|
168
151
|
---
|
|
169
152
|
|
|
170
153
|
### `congress://current` <sub>resource</sub>
|
|
171
154
|
|
|
172
|
-
- Current congress number, session dates, and chamber info
|
|
155
|
+
- Current congress number, session dates, and chamber info, the baseline for other queries
|
|
173
156
|
- Cached publicly for 1 hour
|
|
174
157
|
|
|
175
158
|
---
|
|
176
159
|
|
|
177
160
|
### `congress://bill-types` <sub>resource</sub>
|
|
178
161
|
|
|
179
|
-
-
|
|
180
|
-
-
|
|
162
|
+
- The 8 bill type codes (`hr`, `s`, `hjres`, `sjres`, `hconres`, `sconres`, `hres`, `sres`) with description, chamber, and an example citation
|
|
163
|
+
- Static, with no upstream call; cached publicly for 24 hours
|
|
181
164
|
|
|
182
165
|
---
|
|
183
166
|
|
|
184
167
|
### `congress://member/{bioguideId}` <sub>resource</sub>
|
|
185
168
|
|
|
186
|
-
- `bioguideId`
|
|
187
|
-
- Returns the member profile
|
|
169
|
+
- `bioguideId` is one uppercase letter and 6 digits (e.g. `P000197`)
|
|
170
|
+
- Returns the member profile: name, state, party, terms, leadership, office, legislation counts
|
|
188
171
|
|
|
189
172
|
---
|
|
190
173
|
|
|
191
174
|
### `congress://bill/{congress}/{billType}/{billNumber}` <sub>resource</sub>
|
|
192
175
|
|
|
193
|
-
- `congress` and `billNumber`
|
|
194
|
-
- Returns bill detail
|
|
176
|
+
- `congress` and `billNumber` are positive integers; `billType` is one of the 8 bill type codes
|
|
177
|
+
- Returns bill detail: sponsor, status, policy area, committees, latest action
|
|
195
178
|
|
|
196
179
|
---
|
|
197
180
|
|
|
198
181
|
### `congress://committee/{committeeCode}` <sub>resource</sub>
|
|
199
182
|
|
|
200
|
-
- `committeeCode`
|
|
201
|
-
- Returns committee detail
|
|
183
|
+
- `committeeCode` is `h`/`s`/`j` followed by 3–8 lowercase alphanumeric characters (e.g. `hsju00`); chamber comes from the first letter
|
|
184
|
+
- Returns committee detail: name, chamber, subcommittees, history, legislation counts
|
|
202
185
|
|
|
203
186
|
---
|
|
204
187
|
|
|
205
188
|
### `congressgov_bill_analysis` <sub>prompt</sub>
|
|
206
189
|
|
|
207
|
-
- Arguments: `congress`, `billType`, `billNumber
|
|
208
|
-
- Returns one user message framing a
|
|
190
|
+
- Arguments: `congress`, `billType`, and `billNumber`, all required
|
|
191
|
+
- Returns one user message framing a seven-part analysis, from summary to outlook, with the tools to call for each part
|
|
209
192
|
|
|
210
193
|
---
|
|
211
194
|
|
|
212
195
|
### `congressgov_legislative_research` <sub>prompt</sub>
|
|
213
196
|
|
|
214
|
-
- Arguments: `topic` required; `congress` optional
|
|
215
|
-
-
|
|
216
|
-
- Synthesizes findings into landscape, key players, substance, recent activity, and outlook
|
|
197
|
+
- Arguments: `topic` required; `congress` optional, defaulting to the current congress
|
|
198
|
+
- With `CONGRESS_MIRROR_ENABLED`, the plan opens with `congressgov_search_bills`; without it, the prompt asks for a seed bill, member, committee, or CRS report ID, since no other tool takes a topic
|
|
217
199
|
|
|
218
200
|
## Features
|
|
219
201
|
|
|
@@ -221,17 +203,17 @@ Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): s
|
|
|
221
203
|
|
|
222
204
|
Congress.gov-specific:
|
|
223
205
|
|
|
224
|
-
- Type-safe client for the Congress.gov REST API v3, plus a
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
206
|
+
- Type-safe client for the Congress.gov REST API v3, plus a client for the Senate's LIS XML feed that backs Senate roll votes
|
|
207
|
+
- The Congress.gov API has no keyword search, so tools browse by congress, type, date range, chamber, state, and district, and address bills by `congress` + `billType` + `billNumber`, members by `bioguideId`, and committees by system code; list operations page with `limit` 1–250 (default 20) and `offset`
|
|
208
|
+
- `content` on bill text, committee reports, and Record articles reads `format` `text` (default) or `xml` through a `characterOffset`/`characterLimit` window (1–100,000 characters, default 25,000), fetched only from `www.congress.gov` under a 25 MB ceiling and a 30s deadline
|
|
209
|
+
- Optional API key from [api.data.gov](https://api.data.gov/signup/): `DEMO_KEY` allows 30 req/hr, your own key 5,000 req/hr
|
|
210
|
+
- Opt-in local SQLite FTS5 mirror (`CONGRESS_MIRROR_ENABLED`) adds keyword search over bill titles and CRS summaries
|
|
229
211
|
|
|
230
212
|
Agent-friendly output:
|
|
231
213
|
|
|
232
|
-
-
|
|
233
|
-
-
|
|
234
|
-
- Typed
|
|
214
|
+
- Every list response carries `effectiveQuery` and `totalCount`; a `notice` fires when nothing matched, and a page past the end says so in the rendered output
|
|
215
|
+
- Exact character windows: `content` returns `offset`, `truncated`, and `nextOffset`, so walking a multi-megabyte bill never skips or repeats a character
|
|
216
|
+
- Typed `content` failures (`document_unavailable`, `format_unavailable`, `document_fetch_failed`, `document_too_large`, `offset_past_end`) alongside the shared `not_found`, `rate_limited`, `invalid_request`, and `upstream_error` reasons, each with a recovery hint
|
|
235
217
|
|
|
236
218
|
## Getting started
|
|
237
219
|
|
|
@@ -309,8 +291,6 @@ Or with Docker:
|
|
|
309
291
|
}
|
|
310
292
|
```
|
|
311
293
|
|
|
312
|
-
Get a free API key at [api.data.gov/signup](https://api.data.gov/signup/) for 5,000 req/hr. Without a key the server falls back to `DEMO_KEY` (30 req/hr).
|
|
313
|
-
|
|
314
294
|
For Streamable HTTP, set the transport and start the server:
|
|
315
295
|
|
|
316
296
|
```sh
|
|
@@ -321,6 +301,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 CONGRESS_API_KEY=your-api-key bun run
|
|
|
321
301
|
### Prerequisites
|
|
322
302
|
|
|
323
303
|
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
304
|
+
- Optional: a free [api.data.gov key](https://api.data.gov/signup/) raises the limit from 30 to 5,000 requests per hour.
|
|
324
305
|
|
|
325
306
|
### Installation
|
|
326
307
|
|
|
@@ -346,27 +327,30 @@ bun install
|
|
|
346
327
|
|
|
347
328
|
```sh
|
|
348
329
|
cp .env.example .env
|
|
349
|
-
# edit .env and set
|
|
330
|
+
# edit .env and set CONGRESS_API_KEY (and the mirror vars, if you want keyword search)
|
|
350
331
|
```
|
|
351
332
|
|
|
352
333
|
## Configuration
|
|
353
334
|
|
|
354
335
|
| Variable | Description | Default |
|
|
355
336
|
|:---|:---|:---|
|
|
356
|
-
| `CONGRESS_API_KEY` | API key from [api.data.gov](https://api.data.gov/signup/).
|
|
337
|
+
| `CONGRESS_API_KEY` | API key from [api.data.gov](https://api.data.gov/signup/). `DEMO_KEY` allows 30 req/hr; your own key 5,000 req/hr. | `DEMO_KEY` |
|
|
357
338
|
| `CONGRESS_API_BASE_URL` | Congress.gov API base URL. | `https://api.congress.gov/v3` |
|
|
358
339
|
| `CONGRESS_MIRROR_ENABLED` | Enable the local bill search mirror and the `congressgov_search_bills` tool. | `false` |
|
|
359
340
|
| `CONGRESS_MIRROR_PATH` | Filesystem path to the SQLite mirror index. | `.mirror/bills.sqlite3` |
|
|
360
|
-
| `CONGRESS_MIRROR_REFRESH_CRON` | Cron schedule for the in-process mirror refresh (HTTP transport only). Unset
|
|
341
|
+
| `CONGRESS_MIRROR_REFRESH_CRON` | Cron schedule for the in-process mirror refresh (HTTP transport only). Unset means running `mirror:refresh` yourself. | — |
|
|
361
342
|
| `CONGRESS_MIRROR_CONGRESSES` | Comma-separated congress numbers to mirror (e.g. `118,119`). | current congress + 1 prior |
|
|
362
343
|
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
|
|
363
344
|
| `MCP_HTTP_PORT` | HTTP server port. | `3010` |
|
|
345
|
+
| `MCP_SESSION_MODE` | HTTP session mode: `stateless`, `stateful`, or `auto`; `auto` resolves to `stateful`. | `stateless` |
|
|
364
346
|
| `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth`. | `none` |
|
|
365
|
-
| `MCP_SESSION_MODE` | HTTP session mode: `auto`, `stateful`, or `stateless`; `auto` resolves to `stateful`. | `stateless` |
|
|
366
347
|
| `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `notice`, `warning`, `error`, etc.). | `info` |
|
|
367
348
|
| `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |
|
|
368
|
-
| `
|
|
369
|
-
| `
|
|
349
|
+
| `OTEL_ENABLED` | Enable [OpenTelemetry](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
|
|
350
|
+
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Base OTLP endpoint for traces and metrics. | — |
|
|
351
|
+
| `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` | Explicit OTLP logs endpoint; the base endpoint does not enable log export. | — |
|
|
352
|
+
| `LOG_TOOL_FAILURE_PAYLOADS` | Log failed-call input and output with key-based redaction; secrets inside free-form values are not redacted. | `false` |
|
|
353
|
+
| `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES` | Maximum bytes per failed-call input or output record. | `16384` |
|
|
370
354
|
|
|
371
355
|
See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
372
356
|
|
|
@@ -381,6 +365,16 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
|
381
365
|
bun run start:http # or start:stdio
|
|
382
366
|
```
|
|
383
367
|
|
|
368
|
+
- **Build the bill search mirror from this checkout** (with `CONGRESS_MIRROR_ENABLED=true`):
|
|
369
|
+
|
|
370
|
+
```sh
|
|
371
|
+
bun run mirror:init # full build
|
|
372
|
+
bun run mirror:refresh # incremental refresh
|
|
373
|
+
bun run mirror:verify # readiness and integrity check
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
The mirror CLI requires this checkout or the Docker image's path mapping; an npm installation cannot run these scripts.
|
|
377
|
+
|
|
384
378
|
- **Run checks and tests:**
|
|
385
379
|
|
|
386
380
|
```sh
|
|
@@ -396,23 +390,23 @@ docker build -t congressgov-mcp-server .
|
|
|
396
390
|
docker run --rm -e CONGRESS_API_KEY=your-api-key -p 3010:3010 congressgov-mcp-server
|
|
397
391
|
```
|
|
398
392
|
|
|
399
|
-
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/congressgov-mcp-server`. OpenTelemetry peer dependencies are installed by default
|
|
393
|
+
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/congressgov-mcp-server`. OpenTelemetry peer dependencies are installed by default; build with `--build-arg OTEL_ENABLED=false` to omit them. The image carries the mirror scripts, so `docker exec <container> bun run mirror:init` builds the index in place.
|
|
400
394
|
|
|
401
395
|
## Project structure
|
|
402
396
|
|
|
403
397
|
| Directory | Purpose |
|
|
404
398
|
|:---|:---|
|
|
405
|
-
| `src/index.ts` | `createApp()` entry point
|
|
399
|
+
| `src/index.ts` | `createApp()` entry point: registers tools, resources, and prompts, inits services, and schedules the mirror refresh. |
|
|
406
400
|
| `src/config/` | Server-specific environment variable parsing and validation with Zod. |
|
|
407
|
-
| `src/mcp-server/tools
|
|
408
|
-
| `src/mcp-server/resources/definitions/` | Resource definitions (`*.resource.ts`)
|
|
409
|
-
| `src/mcp-server/prompts/definitions/` | Prompt definitions (`*.prompt.ts`)
|
|
410
|
-
| `src/services/congress-api/` | Congress.gov API client
|
|
411
|
-
| `src/services/congress-documents/` | Bounded document-text fetch
|
|
412
|
-
| `src/services/congress-mirror/` | Local SQLite FTS5 bill-search mirror
|
|
401
|
+
| `src/mcp-server/tools/` | Tool definitions (`definitions/*.tool.ts`) plus shared input, formatting, and summary-window helpers. |
|
|
402
|
+
| `src/mcp-server/resources/definitions/` | Resource definitions (`*.resource.ts`). |
|
|
403
|
+
| `src/mcp-server/prompts/definitions/` | Prompt definitions (`*.prompt.ts`). |
|
|
404
|
+
| `src/services/congress-api/` | Congress.gov API client: auth, pagination, rate limiting. |
|
|
405
|
+
| `src/services/congress-documents/` | Bounded document-text fetch: host allowlist, byte ceiling, character window. |
|
|
406
|
+
| `src/services/congress-mirror/` | Local SQLite FTS5 bill-search mirror: ingest, normalize, schema. |
|
|
413
407
|
| `src/services/senate-lis/` | Senate LIS XML client for Senate roll call votes. |
|
|
414
|
-
| `src/utils/` |
|
|
415
|
-
| `scripts/` |
|
|
408
|
+
| `src/utils/` | HTML/XML character-reference decoding. |
|
|
409
|
+
| `scripts/` | Build, devcheck, and release tooling, plus the `mirror:init` / `mirror:refresh` / `mirror:verify` CLIs. |
|
|
416
410
|
| `tests/` | Unit and integration tests, mirroring the `src/` structure. |
|
|
417
411
|
|
|
418
412
|
## Development guide
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Framework upkeep brings stricter HTTP validation, integer-to-string input repair, and optional telemetry logging."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.3 — 2026-09-26
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **HTTP clients** inherit MCP SDK 2.1.0 through framework 0.13.9: 2026-07-28 POSTs require `MCP-Protocol-Version` (otherwise `400` / `-32020`), and batches over 100 messages receive `400` / `-32600`. Clients relying on either previously accepted form must adapt.
|
|
12
|
+
- **Cancellation** inherits SDK 2.1.0 handling for `requestId: 0`; stdin EOF aborts in-flight stdio requests without answering them.
|
|
13
|
+
- **Error envelopes** inherit framework 0.13.7 stack removal and 0.13.8 request-context removal; output-contract violations now return `InternalError` (`-32603`) instead of `ValidationError` (`-32007`).
|
|
14
|
+
- **Telemetry** inherits framework 0.13.7 base OTLP endpoint resolution and 0.13.8 opt-in log export (`OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`) and failed-call payload logging (`LOG_TOOL_FAILURE_PAYLOADS`, capped by `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES`). Payload redaction matches keys, not secrets embedded in free-form values.
|
|
15
|
+
- **Docker** preserves the release-age gate and Socket scanner during production installs, resolves optional telemetry packages within framework peer ranges, includes OTLP log peers, and removes the unused `MCP_FORCE_CONSOLE_LOGGING` setting.
|
|
16
|
+
- **Packaging** excludes built `.mcpb` bundles from npm and excludes `docs/idea.md` and `logs/` from MCPB bundles.
|
|
17
|
+
- **Development checks** reject unloadable definitions and malformed `server.json`, enforce manifest version and Docker build-platform parity, and validate release annotations before GitHub publication.
|
|
18
|
+
- **Documentation** clarifies existing tool inputs, summary windows, pagination, and mirror commands; updates the VS Code install link, framework guidance, and synchronized development skills.
|
|
19
|
+
|
|
20
|
+
## Fixed
|
|
21
|
+
|
|
22
|
+
- **String identifiers** inherit framework 0.13.9 safe-integer repair: an integer `nominationNumber`, for example `677`, reaches the handler as `"677"` when that string passes the schema. Argument rejection hints retain field paths and identify key rewrites.
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- `@cyanheads/mcp-ts-core` ^0.13.6 → ^0.13.9 (locked to 0.13.9).
|
|
27
|
+
- `@socketsecurity/bun-security-scanner` ^1.1.2 → ^1.1.3 (development).
|
|
28
|
+
- `ignore` ^7.0.9 → ^7.0.10 (development).
|
|
29
|
+
- Bun 1.4.0 → 1.4.2 (`packageManager` and Docker base images).
|
|
30
|
+
- Transitive `@modelcontextprotocol/server` and `@modelcontextprotocol/core` 2.0.0 → 2.1.0; unused framework client, ext-apps, and dotenv dependencies leave the lockfile.
|
|
31
|
+
- Transitive `@babel/parser` 7.29.8 → 7.29.9.
|
|
32
|
+
- Transitive `@oxc-project/types` 0.150.0 → 0.151.0.
|
|
33
|
+
- Transitive `rolldown` and its platform bindings 1.2.9 → 1.2.10.
|
|
34
|
+
- Transitive `@vue/compiler-core`, `@vue/compiler-dom`, `@vue/compiler-sfc`, `@vue/compiler-ssr`, and `@vue/shared` 3.5.42 → 3.5.43.
|
|
35
|
+
- Transitive `is-core-module` 2.16.2 → 2.17.0.
|
|
36
|
+
- Transitive `magic-string` 1.4.1 → 1.4.2.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Tool argument repair and native Docker dependency installs."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.4 — 2026-10-10
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **Tool argument repair** accepts numeric `congress`/`limit`/`offset` strings in committee-report listings, boolean `currentMember` strings in member listings, and `null` as an omitted optional `reportType` filter. Numeric-string repair applies to directly declared number fields, not values behind preprocessing.
|
|
12
|
+
- **Error correlation** adds a generated `data.requestId` matching the call's log records to framework-handled tool, resource, and prompt errors; rendered tool errors include the same ID. Protocol-level rejections and resource-parameter errors containing only `{ uri }` are excluded.
|
|
13
|
+
- **Document recovery** relies on declared hints instead of redundant forwards in the document service and selected report/Record handlers, preserving error codes, reasons, and recovery text on both client surfaces.
|
|
14
|
+
- **Development guidance** and checks sync with the framework; mirror CLI documentation specifies the checkout or Docker path mapping requirement, and logging examples include `LOG_LLM_INTERACTIONS`.
|
|
15
|
+
|
|
16
|
+
## Fixed
|
|
17
|
+
|
|
18
|
+
- **Docker builds** install target-platform production dependencies in a native build-platform stage, derive OTel installs from framework peer ranges, and remove musl-only packages from the glibc image.
|
|
19
|
+
- **Registry launches** use `npx` without npm-script arguments and fix `MCP_TRANSPORT_TYPE=http` for the HTTP package entry.
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
- `@cyanheads/mcp-ts-core` ^0.13.9 → ^0.13.14.
|
|
24
|
+
- `fast-xml-parser` ^5.11.1 → ^5.11.2.
|
|
25
|
+
- `pino-pretty` ^13.1.3 → ^13.2.0.
|
|
26
|
+
- Dev: `@biomejs/biome` ^2.5.14 → ^2.5.15.
|
|
27
|
+
- Dev: `@types/node` ^26.6.2 → ^26.6.4.
|
|
28
|
+
- Dev: `ignore` ^7.0.10 → ^7.0.12.
|
|
29
|
+
- Dev: `tsc-alias` ^1.9.5 → ^1.9.7.
|
|
30
|
+
- Dev: `vitest` ^5.0.1 → ^5.0.3.
|
|
31
|
+
- Lockfile only: `@modelcontextprotocol/core` and `@modelcontextprotocol/server` 2.1.0 → 2.3.1; `source-map-js` 1.2.1 → 1.2.2.
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ await createApp({
|
|
|
92
92
|
instructions: `Use the congressgov_* tools to access U.S. legislative data via the Congress.gov API v3: bills, enacted laws, members, committees, roll call votes, presidential nominations, CRS reports, and the daily Congressional Record. The Congress.gov API itself has no keyword search — browse by congress number, bill/report type, date range, chamber, state, and district. An optional local FTS mirror adds congressgov_search_bills (keyword search over bill titles and summaries) when CONGRESS_MIRROR_ENABLED is set; it is off by default, and the tool is not offered at all unless that flag is set. Bills are addressed by congress + billType + billNumber (e.g. 118/hr/1234), members by bioguideId, committees by chamber-prefix codes. congressgov_roll_votes serves both chambers via its 'chamber' parameter — House votes come from the Congress.gov API, Senate votes from the Senate's official LIS feed.`,
|
|
93
93
|
landing: {
|
|
94
94
|
repoRoot: REPO_ROOT,
|
|
95
|
-
tagline: 'U.S. legislative data
|
|
95
|
+
tagline: 'U.S. legislative data (bills, votes, members, committees) via MCP.',
|
|
96
96
|
requireAuth: false,
|
|
97
97
|
},
|
|
98
98
|
async setup(core) {
|
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,MAAM,yDAAyD,CAAC;AAC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BAAiB,EAAE,CAAC;YACxE,gBAAgB,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAClD,CAAC;QACD,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC1B,oFAAoF;QACpF,MAAM,aAAa,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC5C,MAAM,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"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8K/B,CAAC"}
|
|
@@ -85,7 +85,6 @@ export const committeeReportsTool = tool('congressgov_committee_reports', {
|
|
|
85
85
|
const formats = collectReportFormats(result.text);
|
|
86
86
|
if (formats.length === 0) {
|
|
87
87
|
throw ctx.fail('document_unavailable', `Committee report ${citation} publishes no document formats.`, {
|
|
88
|
-
...ctx.recoveryFor('document_unavailable'),
|
|
89
88
|
congress: input.congress,
|
|
90
89
|
reportType: input.reportType,
|
|
91
90
|
reportNumber: input.reportNumber,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committee-reports.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/committee-reports.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;A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C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,kBAAkB,CACzC;YACE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,YAAY,EAAE,KAAK,CAAC,YAAY;SACjC,EACD,GAAG,CACJ,CAAC;QACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACzC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,YAAY,EAAE,KAAK,CAAC,YAAY;SACjC,CAAC,CAAC;QACH,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,QAAQ,cAAc,CACzF,CAAC;QACF,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiK1B,CAAC"}
|
|
@@ -79,7 +79,6 @@ export const dailyRecordTool = tool('congressgov_daily_record', {
|
|
|
79
79
|
const url = selectDocumentUrl(article.text, input.format);
|
|
80
80
|
if (!url) {
|
|
81
81
|
throw ctx.fail('format_unavailable', `This article publishes no '${input.format}' document (looked for ${describeFormat(input.format)}). The Congressional Record publishes Formatted Text and PDF only.`, {
|
|
82
|
-
...ctx.recoveryFor('format_unavailable'),
|
|
83
82
|
format: input.format,
|
|
84
83
|
articleIndex: input.articleIndex,
|
|
85
84
|
});
|