@cyanheads/usaspending-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 +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +29 -14
- package/changelog/0.7.x/0.7.3.md +29 -0
- package/changelog/0.7.x/0.7.4.md +35 -0
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/agency-filters.d.ts +40 -0
- package/dist/mcp-server/tools/definitions/agency-filters.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/agency-filters.js +125 -0
- package/dist/mcp-server/tools/definitions/agency-filters.js.map +1 -0
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.d.ts +5 -1
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.js +60 -15
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dates.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/dates.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/dates.js +2 -0
- package/dist/mcp-server/tools/definitions/dates.js.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js +4 -4
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.d.ts +78 -14
- package/dist/mcp-server/tools/definitions/filters.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.js +117 -18
- package/dist/mcp-server/tools/definitions/filters.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js +35 -13
- package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js +3 -6
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts +17 -0
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.js +122 -17
- package/dist/mcp-server/tools/definitions/get-award.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js +20 -10
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +72 -11
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/locations.d.ts +15 -1
- package/dist/mcp-server/tools/definitions/locations.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/locations.js +31 -11
- package/dist/mcp-server/tools/definitions/locations.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +34 -5
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.js +211 -89
- package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js +9 -5
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts +5 -2
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.js +26 -17
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts +5 -2
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js +22 -18
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts +4 -2
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js +13 -14
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.d.ts +3 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.js +9 -3
- package/dist/mcp-server/tools/definitions/unavailable-sections.js.map +1 -1
- package/dist/services/usaspending/types.d.ts +29 -2
- package/dist/services/usaspending/types.d.ts.map +1 -1
- package/dist/services/usaspending/types.js.map +1 -1
- package/dist/services/usaspending/usaspending-service.d.ts +36 -10
- package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.js +110 -33
- package/dist/services/usaspending/usaspending-service.js.map +1 -1
- package/package.json +5 -5
- package/server.json +3 -3
- package/skills/usaspending-guide/SKILL.md +10 -4
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** usaspending-mcp-server
|
|
4
|
-
**Version:** 0.7.
|
|
4
|
+
**Version:** 0.7.4
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** usaspending-mcp-server
|
|
4
|
-
**Version:** 0.7.
|
|
4
|
+
**Version:** 0.7.4
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/usaspending-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/usaspending-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -36,8 +36,8 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
36
36
|
| Tool | Description |
|
|
37
37
|
|:---|:---|
|
|
38
38
|
| `usaspending_list_agencies` | List top-tier federal agencies with codes, slugs, and budget totals labelled by reporting year and quarter |
|
|
39
|
-
| `usaspending_autocomplete_filters` | Look up NAICS, PSC, CFDA, agency, recipient, or state, county, and district location codes from a free-text description |
|
|
40
|
-
| `usaspending_search_awards` | Search awards by keyword, recipient, agency, award type, NAICS code, assistance listing, PSC, DEF code, location, or date range |
|
|
39
|
+
| `usaspending_autocomplete_filters` | Look up NAICS, PSC, CFDA, DEF, agency, recipient, or state, county, and district location codes from a free-text description |
|
|
40
|
+
| `usaspending_search_awards` | Search awards by keyword, recipient, agency, award type, NAICS code, assistance listing, PSC, DEF code, extent competed, set-aside, contract pricing, location, or date range |
|
|
41
41
|
| `usaspending_get_award` | Fetch one award's full record: amounts, recipient, agencies, codes, competition, parent IDV, DEF-code funding |
|
|
42
42
|
| `usaspending_get_award_transactions` | List the transactions (modifications, amendments) on an award |
|
|
43
43
|
| `usaspending_get_award_subawards` | List the subcontracts or subgrants under a prime award |
|
|
@@ -69,9 +69,10 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
69
69
|
|
|
70
70
|
### `usaspending_autocomplete_filters` <sub>tool</sub>
|
|
71
71
|
|
|
72
|
-
- `type` (`naics`, `psc`, `cfda`, `awarding_agency`, `recipient`, `location`) plus `search_text`; `limit` default 10, at most 500 per call
|
|
72
|
+
- `type` (`naics`, `psc`, `cfda`, `def_code`, `awarding_agency`, `funding_agency`, `recipient`, `location`) plus `search_text`; `limit` default 10, at most 500 per call
|
|
73
|
+
- `def_code` matches an exact code or text in the appropriation title or public law, case-insensitively. Rows carry `code`, `name`, and `public_law` / `disaster_group` when supplied; exact code matches come first. Use the returned code in spending and disaster filters
|
|
73
74
|
- Rows carry `code` and `name`, and `uei` / `duns` for recipients; no match fails as `no_match`. A `cfda` code goes in `assistance_listings` and a `psc` code in `psc_codes` on `usaspending_search_awards` and the three spending analytics tools
|
|
74
|
-
-
|
|
75
|
+
- `awarding_agency` and `funding_agency` rows carry the matched agency's own `name`, `abbreviation`, and `tier` (`toptier` or `subtier`), its parent's `toptier_name` and `toptier_code`, and `subtier_code` when supplied. Each type searches its own role's directory, and neither directory contains the other: pass an `awarding_agency` row's `name` to `agency_name` and a `funding_agency` row's `name` to `funding_agency_name` on award search or spending analytics to match that agency; pass `toptier_name` for the whole department. Agency results combine top-tier then sub-tier matches under one `limit`; office matches are excluded
|
|
75
76
|
- `naics` matches official NAICS title text: "software" resolves, "cybersecurity" does not, so search with the industry term a title would use
|
|
76
77
|
- `location` matches US states, then counties, then congressional districts by name. Rows carry `kind` (`state`, `county`, or `district`), the upstream's uppercase `name`, and `code`: a postal code for a state, the 5-digit state + county FIPS code for a county, the state FIPS + district number (e.g. `5307`) for a district; county and district rows add the `state` postal code. Upstream returns at most 100 rows of each kind, and a notice says when one hits it. Countries, cities, and ZIP codes are not returned; `no_match` names the three kinds. The freely associated states (`FM`, `MH`, `PW`) and the Minor Outlying Islands (`UM`) have no upstream state row and get no code. Pass a code to `usaspending_search_awards` and the spending analytics location filters, or to `shape_codes` on `usaspending_spending_by_geography`
|
|
77
78
|
|
|
@@ -80,15 +81,16 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
80
81
|
### `usaspending_search_awards` <sub>tool</sub>
|
|
81
82
|
|
|
82
83
|
- Filters:
|
|
83
|
-
- `keyword`, `agency_name`, `recipient_name`, `naics_codes`
|
|
84
|
+
- `keyword`, `agency_name` (awarding), `funding_agency_name`, `recipient_name`, `naics_codes`
|
|
84
85
|
- `assistance_listings`: Assistance Listing numbers such as `93.866`, from `usaspending_autocomplete_filters` `type: cfda`
|
|
85
86
|
- `psc_codes`: 1–4 characters, where a prefix such as `Y1` covers the codes under it; contracts and IDVs only
|
|
86
87
|
- `def_codes`: Disaster Emergency Fund Codes such as `Z` (PSC and DEF codes are sent uppercased)
|
|
88
|
+
- `extent_competed_type_codes`, `set_aside_type_codes`, `contract_pricing_type_codes`: the FPDS codes `usaspending_get_award` returns in `competition.extent_competed.code`, `competition.type_set_aside.code`, and `contract_pricing.code` (e.g. `C`, `SBA`, `J`). Each takes 1–8 letters or digits, sent uppercased; several values match any of them, and an unknown code matches nothing. Contracts and IDVs only; award search alone takes them, and the spending analytics tools reject the keys
|
|
87
89
|
- `time_period`: `YYYY-MM-DD` from 2007-10-01 on; either end may be given alone
|
|
88
90
|
- `location_filter` (place of performance; `filters.place_of_performance_location` overrides it) and `filters.recipient_location` (where the recipient is based), each taking: `country` (default `USA`; a territory code such as `PRI` becomes `USA` plus its state), `state` (a postal or 2-digit FIPS code, `FM`/`MH`/`PW`/`UM` and armed-forces `AA`/`AE`/`AP` included, or under another country its own 2-letter subdivision code such as `ON` with `CAN`), and `county` (3 digits with `state`, or the 5-digit FIPS code alone); echoed as `applied_location` and `applied_recipient_location`
|
|
89
91
|
- `award_type_codes`: defaults to contracts (`A`–`D`) and must stay in one group — IDVs `IDV_A`–`IDV_E`; grants `02`–`05`/`F001`/`F002`; direct payments `06`/`10`/`F006`/`F007`; loans `07`/`08`/`F003`/`F004`; other assistance `09`/`11`/`-1`/`F005`/`F008`/`F009`/`F010`
|
|
90
92
|
- `limit`: default 10, at most 100 per call
|
|
91
|
-
- Rows carry `generated_internal_id` for `usaspending_get_award`, `recipient_id` for `usaspending_get_recipient` and `uei` when upstream has them, and `agency_slug` for `usaspending_get_agency`; loan rows carry `loan_value`, `subsidy_cost`, and `issued_date` in place of amounts and dates. `page_metadata.total` (also `totalCount`) counts every match
|
|
93
|
+
- Rows carry `generated_internal_id` for `usaspending_get_award`, `recipient_id` for `usaspending_get_recipient` and `uei` when upstream has them, and `agency_slug` for `usaspending_get_agency`; loan rows carry `loan_value`, `subsidy_cost`, and `issued_date` in place of amounts and dates. `page_metadata.total` (also `totalCount`) counts every match for the call's filters and `award_type_codes`, from a best-effort count request; when it fails the total is omitted, `unavailable_sections` names `total`, and `has_next` is true on any full page. A second best-effort count, sent the same filters without `award_type_codes`, returns `matches_by_group` (`contracts`, `idvs`, `grants`, `direct_payments`, `loans`, `other`): what a search of each group would find, with a notice naming every other group that has matches, its count, and its `award_type_codes`. The selected group's entry counts the whole group, so it can exceed `total` when `award_type_codes` name part of it, and a filter only some groups carry (`naics_codes`, `psc_codes`, the contract filters, `assistance_listings`) leaves the others at 0. Both counts run only when the codes resolve to one group, share one 10-second single-attempt deadline, and settle independently: a failure omits that value and names `total` or `matches_by_group` in `unavailable_sections`. The group count is also cut, and named the same way, once it runs 2 seconds past the search and the total count. `matches_by_group` is also absent, with nothing disclosed, when `award_type_codes` is the only filter. With a known total, `has_next` is exact on page-number paging; a page fetched by cursor keeps the full-page rule. The nested `filters` object takes the analytics tools' `filters` keys except `recipient_id`, plus `recipient_name` and the three contract filters, and wins per field over the flat ones. The applied contract codes are echoed as `applied_extent_competed_type_codes`, `applied_set_aside_type_codes`, and `applied_contract_pricing_type_codes`. Failures are `assistance_listings_type_mismatch` (listings with a non-assistance group), `psc_codes_type_mismatch` (PSC codes with an assistance group), `contract_filters_type_mismatch` (a contract filter with an assistance group), `unsupported_sort`, `date_range_inverted`, `date_before_earliest`, and `invalid_location` (an unknown state, a 3-digit county without a state, a county under an armed-forces code (`AA`/`AE`/`AP`), a county or FIPS-number state under another country, or parts naming different states)
|
|
92
94
|
- `sort` depends on the group: loans take `Loan Value` (default), `Subsidy Cost`, `Issued Date`, `Recipient Name`, or `Awarding Agency`; the others `Award Amount` (default), `Total Outlays`, `Start Date`, `End Date` (not IDVs), `Recipient Name`, or `Awarding Agency`. Page numbers stop at a 50,000-result offset (`pagination_limit_exceeded`); past it, page with the `last_record_sort_value` + `last_record_unique_id` cursor, returned below a 10,000-result offset
|
|
93
95
|
- Effective keywords need at least three characters, with whitespace preserved. NAICS codes use 2, 4, or 6 digits; recognized numeric aliases such as `054`, `+54`, and `54_15_12` are normalized and echoed. Validation runs after nested-filter precedence, so an overridden flat value does not reject the call; active invalid values fail as `invalid_keyword` or `invalid_naics_code`
|
|
94
96
|
|
|
@@ -101,13 +103,16 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
101
103
|
- `assistance_listings` lists every Assistance Listing on an assistance award, in upstream order, as `number`, `title`, and `obligation`; a `number` goes in `usaspending_search_awards` `assistance_listings`
|
|
102
104
|
- Contracts and IDVs also return a `competition` block (`extent_competed`, `solicitation_procedures`, `type_set_aside`, `other_than_full_and_open`, `fair_opportunity_limited`, each a `{code, description}`, plus `number_of_offers_received`) and `contract_pricing`; `total_subaward_amount` sits beside `subaward_count`
|
|
103
105
|
- `recipient` carries `uei`, `parent_uei`, `business_categories` (category names, not the `business_types` codes of `usaspending_get_recipient`), and a three-letter `country_code`, `county_name`, `county_code`, `congressional_code`, and `zip5` on its `location`. `place_of_performance` also carries a country code, county name, `county_code`, and congressional code; a location with no fields upstream is omitted
|
|
106
|
+
- `recipient.executive_compensation` lists the recipient's highest-compensated officers as `name` and `amount`, in upstream order, with unreported officers dropped; it describes the recipient, so every award to that recipient carries the same list, and it is absent when none is reported
|
|
107
|
+
- `awarding_agency` and `funding_agency` each carry `toptier_name`, `toptier_code`, `toptier_slug`, `subtier_name`, `subtier_code`, `subtier_abbreviation`, and `office_name`
|
|
108
|
+
- Assistance awards that report cost share also return `non_federal_funding` (recipient cost share) and `total_funding` (`total_obligation` plus `non_federal_funding`), zeros kept, and omitted on loans; and `funding_opportunity` (`number`, `goals`), absent when upstream reports only its placeholders
|
|
104
109
|
- `recipient.recipient_id` and `recipient.parent_recipient_id` chain to `usaspending_get_recipient` and `parent_award.generated_unique_award_id` to the parent IDV; `category: "idv"` awards list their children via `usaspending_get_idv_awards`
|
|
105
110
|
|
|
106
111
|
---
|
|
107
112
|
|
|
108
113
|
### `usaspending_get_award_transactions` <sub>tool</sub>
|
|
109
114
|
|
|
110
|
-
- `award_id` plus `sort` (`action_date`, `federal_action_obligation`, `modification_number`); `limit` default 10, at most
|
|
115
|
+
- `award_id` plus `sort` (`action_date`, `federal_action_obligation`, `modification_number`); `limit` default 10, at most 5,000 per call
|
|
111
116
|
- Rows carry a string `id` (`ASST_TX` or `CONT_TX`), `action_date`, `modification_number`, `action_type`, and a signed `federal_action_obligation` (negative is a deobligation). Loan transactions also carry `face_value_loan_guarantee` and `original_loan_subsidy_cost`; assistance transactions carry `cfda_number` when supplied
|
|
112
117
|
|
|
113
118
|
---
|
|
@@ -136,15 +141,16 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
136
141
|
|
|
137
142
|
### `usaspending_search_recipients` <sub>tool</sub>
|
|
138
143
|
|
|
139
|
-
- `keyword` matches names, UEI, or DUNS, partial matches included; surrounding whitespace is trimmed, and blank text applies no keyword filter with a notice. Optional `award_type` still scopes the totals; `limit` at most 1,000 per call
|
|
144
|
+
- `keyword` (also accepted as `name`, `recipient_name`, or `search_text`; an alias sent with `keyword` is rejected) matches names, UEI, or DUNS, partial matches included; surrounding whitespace is trimmed, and blank text applies no keyword filter with a notice. Optional `award_type` still scopes the totals; `limit` at most 1,000 per call
|
|
140
145
|
- Rows carry `id` (a hash suffixed `-P` parent, `-C` child, or `-R` standalone) for `usaspending_get_recipient`, plus `uei`, `duns`, `recipient_level`, and `amount`; `page_metadata.total` is the full match count
|
|
146
|
+
- `amount` is the selected award types' precomputed trailing-12-month obligations; `period: "trailing 12 months"` labels every page. Snapshot totals can differ from the profile's live trailing-12-month totals
|
|
141
147
|
|
|
142
148
|
---
|
|
143
149
|
|
|
144
150
|
### `usaspending_get_recipient` <sub>tool</sub>
|
|
145
151
|
|
|
146
|
-
- `recipient_id` from `usaspending_search_recipients` or `usaspending_get_award`; optional `fiscal_year` (2001–2030)
|
|
147
|
-
- Returns address, `business_types`, `parent_id`, `parents` (`parent_id`, `parent_name`, `parent_uei`, `parent_duns` for each; `parent_name` / `parent_uei` describe the first), `alternate_names`, `total_transaction_amount`, `total_transactions`, and loan face-value totals, with `period` naming the window (`FY2020` or `trailing 12 months`). Totals span every award type; for totals by type, use `usaspending_spending_over_time` with `filters.recipient_id` and `award_type_codes`
|
|
152
|
+
- `recipient_id` from `usaspending_search_recipients` or `usaspending_get_award`; optional `fiscal_year` (2001–2030 or `"all"`) selects one fiscal year or all available fiscal years. Omission covers the trailing 12 months; an unknown ID fails as `recipient_not_found`
|
|
153
|
+
- Returns address, `business_types`, `parent_id`, `parents` (`parent_id`, `parent_name`, `parent_uei`, `parent_duns` for each; `parent_name` / `parent_uei` describe the first), `alternate_names`, `total_transaction_amount`, `total_transactions`, and loan face-value totals, with `period` naming the window (`FY2020`, `all fiscal years`, or `trailing 12 months`). Totals span every award type; for totals by type, use `usaspending_spending_over_time` with `filters.recipient_id` and `award_type_codes`
|
|
148
154
|
- A `-P` parent also returns `children` (`recipient_id`, `name`, `uei`, `duns`, `amount`, `state_province`) over the same period, highest amount first, with `children_total`; `children_limit` defaults to 50, at most 500 per call. Children come from a best-effort second request: if it fails the profile still returns and `unavailable_sections` names `children`
|
|
149
155
|
|
|
150
156
|
---
|
|
@@ -154,13 +160,14 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
154
160
|
- One of directory `toptier_code` (e.g. `097` or `1601`) or `agency_slug` (e.g. `department-of-defense`); one- and two-digit numeric codes are padded (`80` becomes `080`), while three- and four-digit codes are preserved. `page` walks the sub-agency list 10 at a time. Failures are `missing_input`, `conflicting_input` (both identifiers sent), and `agency_not_found`
|
|
155
161
|
- Returns `mission`, plus `budgetary_resources_amount`, `obligated_amount`, and `outlay_amount` for the most recent `fiscal_year` with reported budget data (a newly opened year with no amounts yet is skipped), `sub_agencies` with obligations and transaction and new-award counts for that same year (`sub_agency_fiscal_year` names it; without a budget year within 5 seconds the breakdown covers the current fiscal year), and `def_codes`
|
|
156
162
|
- `budget_by_fiscal_year` lists `budgetary_resources_amount`, `obligated_amount`, `outlay_amount`, and `reported_through_period` for every fiscal year with reported data since FY2017, newest first; a `reported_through_period` below 12 is a year to date
|
|
163
|
+
- `def_codes_fiscal_year` identifies the DEF list's year, aligned with the returned budget year when available. A failed year-specific lookup omits the DEF data and names `def_codes` in `unavailable_sections`; without a budget year, the overview's DEF year is used
|
|
157
164
|
- A failed budget or sub-agency request still returns the overview: the missing fields are omitted and `unavailable_sections` names each section with its `reason` (`api_unavailable`, `api_timeout`, or `upstream_error`) and whether a retry may load it
|
|
158
165
|
|
|
159
166
|
---
|
|
160
167
|
|
|
161
168
|
### `usaspending_spending_by_geography` <sub>tool</sub>
|
|
162
169
|
|
|
163
|
-
- `scope` (`place_of_performance`, `recipient_location`) and `geo_layer` (`state`, `county`, `district`) are required; `filters` takes `keywords`, `award_type_codes`, `agency_name`, `recipient_id`, `naics_codes`, `assistance_listings`, `psc_codes`, `def_codes` (the same code filters as `usaspending_search_awards`, echoed as `applied_*`), `place_of_performance_location` and `recipient_location` (the location filters of award search, echoed as `applied_location` and `applied_recipient_location`), and `time_period_start` / `time_period_end` (`YYYY-MM-DD`; either alone fills the other, as in `usaspending_search_awards`, `applied_time_period_*` echoes the range sent, a start after the end fails as `date_range_inverted`, and a range starting before 2007-10-01 fails as `date_before_earliest`); `limit` default 50, no maximum
|
|
170
|
+
- `scope` (`place_of_performance`, `recipient_location`) and `geo_layer` (`state`, `county`, `district`) are required; `filters` takes `keywords`, `award_type_codes`, `agency_name`, `funding_agency_name`, `recipient_id`, `naics_codes`, `assistance_listings`, `psc_codes`, `def_codes` (the same code filters as `usaspending_search_awards`, echoed as `applied_*`), `place_of_performance_location` and `recipient_location` (the location filters of award search, echoed as `applied_location` and `applied_recipient_location`), and `time_period_start` / `time_period_end` (`YYYY-MM-DD`; either alone fills the other, as in `usaspending_search_awards`, `applied_time_period_*` echoes the range sent, a start after the end fails as `date_range_inverted`, and a range starting before 2007-10-01 fails as `date_before_earliest`); `limit` default 50, no maximum
|
|
164
171
|
- Award types may mix groups. When every one named is a contract or IDV, `assistance_listings` fails as `assistance_listings_type_mismatch`; when every one is assistance, `psc_codes` fails as `psc_codes_type_mismatch`. Code-filtered amounts cover whole matching awards, and DEF-filtered totals can be negative
|
|
165
172
|
- All three analytics tools apply the same keyword and NAICS rules as award search. `recipient_id` is a hexadecimal 8-4-4-4-12 hash with uppercase `-P`, `-C`, or `-R`; malformed active IDs fail as `invalid_recipient_id`, blank IDs remain unset, and hexadecimal case is normalized in `applied_recipient_id`. A well-formed unknown ID returns an empty result
|
|
166
173
|
- Rows carry `shape_code`, `display_name`, `aggregated_amount`, `population`, and `per_capita`, ranked by amount; `total_areas_available` counts every match before the cap
|
|
@@ -183,6 +190,14 @@ The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient re
|
|
|
183
190
|
- Rows carry `time_period`, `aggregated_amount`, and per-type `contracts`, `grants`, `direct_payments`, `idvs`, `loans`, and `other`
|
|
184
191
|
- `applied_award_type_codes` names the scope of every total and breakdown; omitted or empty codes also set `applied_award_type_default: contracts`. A zero in an excluded category does not describe that category's spending outside the selected scope
|
|
185
192
|
|
|
193
|
+
### Shared spending scope
|
|
194
|
+
|
|
195
|
+
Award search and all three spending analytics tools accept `funding_agency_name` beside the awarding `agency_name`. Both roles together select their intersection, and each name matches either agency tier. Exact names and unambiguous abbreviations are resolved through agency discovery, each role against its own directory (`type=awarding_agency` for `agency_name`, `type=funding_agency` for `funding_agency_name`), with no fallback to the other; inconclusive or unavailable lookup preserves the supplied name with an unresolved-name notice naming the role's lookup type. Effective names are echoed as `applied_agency_name` and `applied_funding_agency_name`.
|
|
196
|
+
|
|
197
|
+
Award search, category, and geography disclose when no date filter was supplied and results use USAspending's available coverage. They echo the `applied_award_type_codes` actually sent; award search also echoes `applied_recipient_name`. Explicit date bounds retain their existing filling and validation rules.
|
|
198
|
+
|
|
199
|
+
Analytics using a `-P` recipient ID disclose that amounts cover awards attributed to that parent. Historical parent attribution can vary. For an entity's own awards, use returned `-C` or `-R` IDs; check both if search returns both rather than constructing a new ID by changing a suffix.
|
|
200
|
+
|
|
186
201
|
---
|
|
187
202
|
|
|
188
203
|
### `usaspending_disaster_spending` <sub>tool</sub>
|
|
@@ -225,7 +240,7 @@ Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): s
|
|
|
225
240
|
USAspending-specific:
|
|
226
241
|
|
|
227
242
|
- USAspending.gov API v2, keyless: the data is public under the DATA Act
|
|
228
|
-
- Award search and the spending analytics tools
|
|
243
|
+
- Award search and the spending analytics tools accept explicit action-date ranges from 2007-10-01 on (an earlier start fails as `date_before_earliest`), and DoD contract data lags publication by 90 days
|
|
229
244
|
- `usaspending_spending_by_category` puts ten category sub-routes behind one `category` enum, and `usaspending_disaster_spending` puts five disaster endpoints behind `dimension`
|
|
230
245
|
- Each request runs under one wall-clock budget (45 s by default); a slow answer gets the whole budget in one attempt, and only fast failures are retried. Failures surface as `api_timeout` or `api_unavailable` with each tool's recovery hint, and a rejected request carries USAspending's own explanation in the error message
|
|
231
246
|
|
|
@@ -235,7 +250,7 @@ Agent-friendly output:
|
|
|
235
250
|
- Chaining IDs as explicit fields: `generated_internal_id`, `agency_slug`, `recipient_id` (on award search rows and `recipient.recipient_id`), `federal_account`, and `account_number`, so agents follow the money without parsing display strings
|
|
236
251
|
- Honest pagination: `page_metadata.has_next` on every list, a `total` or `count` where the upstream publishes one, and `truncated` / `shown` / `cap` only when rows are known to exist beyond those returned. A full page with no such evidence keeps `has_next` without claiming truncation
|
|
237
252
|
- Empty results are notices, not errors: account funding, account breakdown, and recipient search distinguish a known zero total from an empty page past the total, which directs callers to an earlier page with the same filters. Without a total, notices describe only the page; award search supplies one through a best-effort count request and discloses a failed count in `unavailable_sections`. The ID-keyed list tools (transactions, subawards, funding accounts, IDV children, account breakdown) return an empty list for an unknown ID rather than failing
|
|
238
|
-
- Typed failures with recovery hints: `award_not_found`, `recipient_not_found`, `agency_not_found`, `account_not_found`, `no_match`, `conflicting_input`, `date_before_earliest`, `date_range_inverted`, `unsupported_sort`, `assistance_listings_type_mismatch`, `psc_codes_type_mismatch`, `invalid_location`, `pagination_limit_exceeded`, `incomplete_cursor`, `missing_def_codes`
|
|
253
|
+
- Typed failures with recovery hints: `award_not_found`, `recipient_not_found`, `agency_not_found`, `account_not_found`, `no_match`, `conflicting_input`, `date_before_earliest`, `date_range_inverted`, `unsupported_sort`, `assistance_listings_type_mismatch`, `psc_codes_type_mismatch`, `contract_filters_type_mismatch`, `invalid_location`, `pagination_limit_exceeded`, `incomplete_cursor`, `missing_def_codes`
|
|
239
254
|
|
|
240
255
|
## Getting started
|
|
241
256
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Filter awards and spending by funding agency, look up DEF codes by title or public law, and get all-year recipient totals. Agency detail aligns DEF codes with the budget year, and spending results explain their applied scope."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.3 — 2026-11-13
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`funding_agency_name`** filters award search and all three spending analytics tools. Supply both agency roles to match their intersection ([#127](https://github.com/cyanheads/usaspending-mcp-server/issues/127)).
|
|
12
|
+
- **`usaspending_autocomplete_filters`** accepts `type: "def_code"` to find Disaster Emergency Fund codes by exact code, title, or public law ([#123](https://github.com/cyanheads/usaspending-mcp-server/issues/123)).
|
|
13
|
+
- **`usaspending_get_recipient`** accepts `fiscal_year: "all"` for profile totals and child recipients over all available fiscal years ([#126](https://github.com/cyanheads/usaspending-mcp-server/issues/126)).
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- **`usaspending-guide` 1.2 → 1.3** covers agency-name verification, parent attribution, recipient periods, and DEF code discovery.
|
|
18
|
+
|
|
19
|
+
## Fixed
|
|
20
|
+
|
|
21
|
+
- **`usaspending_get_agency`** aligns DEF codes with the returned budget year, labels it with `def_codes_fiscal_year`, and reports when the year-specific list is unavailable ([#120](https://github.com/cyanheads/usaspending-mcp-server/issues/120)).
|
|
22
|
+
- **Award search and spending analytics** resolve case-insensitive agency names and unambiguous abbreviations. Responses echo the names sent and disclose when a name could not be verified ([#121](https://github.com/cyanheads/usaspending-mcp-server/issues/121)).
|
|
23
|
+
- **`usaspending_search_recipients`** labels the precomputed obligations on every page as trailing 12 months ([#122](https://github.com/cyanheads/usaspending-mcp-server/issues/122)).
|
|
24
|
+
- **Spending analytics** explain the attribution scope of parent recipient IDs and point callers to returned child or standalone IDs for the entity's own awards ([#124](https://github.com/cyanheads/usaspending-mcp-server/issues/124)).
|
|
25
|
+
- **Award search, category, and geography spending** disclose when no date filter was sent and echo applied award-type codes. Award search also echoes the applied recipient name ([#128](https://github.com/cyanheads/usaspending-mcp-server/issues/128)).
|
|
26
|
+
|
|
27
|
+
## Dependencies
|
|
28
|
+
|
|
29
|
+
- **`@biomejs/biome`** ^2.6.6 → ^2.6.7 (dev)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Award search filters by extent competed, set-aside, and contract pricing codes and reports matches in every award-type group. Award detail adds executive compensation, offices, and assistance cost share. Funding agency names resolve against the funding directory."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.4 — 2026-11-25
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`usaspending_search_awards`** filters by `extent_competed_type_codes`, `set_aside_type_codes`, and `contract_pricing_type_codes`, flat and in `filters`. They echo as `applied_*`, and an assistance award type beside them fails as `contract_filters_type_mismatch` ([#119](https://github.com/cyanheads/usaspending-mcp-server/issues/119)).
|
|
12
|
+
- **`usaspending_search_awards`** returns `matches_by_group`, the matches in every award-type group, beside `page_metadata.total` for the single group searched; the notice names other groups that match. The group count is cut when it runs 2 seconds past the search and the total count, and `matches_by_group` is then listed in `unavailable_sections` as `api_timeout`, retryable ([#125](https://github.com/cyanheads/usaspending-mcp-server/issues/125)).
|
|
13
|
+
- **`usaspending_get_award`** returns `recipient.executive_compensation`, `office_name`, `subtier_code`, and `subtier_abbreviation` on `awarding_agency` and `funding_agency`, `funding_agency.toptier_slug`, and, on assistance awards, `non_federal_funding`, `total_funding` (absent on loans), and `funding_opportunity` ([#130](https://github.com/cyanheads/usaspending-mcp-server/issues/130)).
|
|
14
|
+
- **`usaspending_search_recipients`** accepts `name`, `recipient_name`, and `search_text` as aliases of `keyword` ([#134](https://github.com/cyanheads/usaspending-mcp-server/issues/134)).
|
|
15
|
+
- **`usaspending_autocomplete_filters`** accepts `type: "funding_agency"` ([#133](https://github.com/cyanheads/usaspending-mcp-server/issues/133)).
|
|
16
|
+
|
|
17
|
+
## Changed
|
|
18
|
+
|
|
19
|
+
- **`usaspending_get_award_transactions`** caps `limit` at 5,000, the upstream maximum (was 2,000) ([#129](https://github.com/cyanheads/usaspending-mcp-server/issues/129)).
|
|
20
|
+
- **Tool descriptions** state each repeated description once per tool; nested twins point at the top-level field. `usaspending_search_awards` is 29,380 → 29,943 bytes in `tools/list` (its `inputSchema` 16,632 → 14,708, with the three new filters); `usaspending_spending_by_geography` 17,930 → 17,329, `usaspending_spending_by_category` 17,033 → 16,581, `usaspending_spending_over_time` 15,544 → 15,070 ([#131](https://github.com/cyanheads/usaspending-mcp-server/issues/131)).
|
|
21
|
+
- **`usaspending-guide` 1.3 → 1.4** covers the contract filters, group counts, and funding-agency lookup.
|
|
22
|
+
|
|
23
|
+
## Fixed
|
|
24
|
+
|
|
25
|
+
- **`funding_agency_name`** resolves against USAspending's funding-agency directory instead of the awarding one, so funding-only agencies verify and their abbreviations resolve ([#133](https://github.com/cyanheads/usaspending-mcp-server/issues/133)).
|
|
26
|
+
- **Award type descriptions** on the three spending analytics tools list the F001–F010 financial-assistance codes their input already accepted.
|
|
27
|
+
- **`usaspending_get_agency`, `usaspending_get_recipient`, and `usaspending_search_awards`** list a secondary request USAspending throttles (HTTP 429) in `unavailable_sections` as `api_unavailable`, retryable, instead of `upstream_error`.
|
|
28
|
+
- **Agency names** are trimmed before lookup, so a padded name resolves; a whitespace-only name is ignored like an empty one instead of failing with an upstream 400, and in award search a blank nested name falls back to the flat one.
|
|
29
|
+
|
|
30
|
+
## Dependencies
|
|
31
|
+
|
|
32
|
+
- **`@biomejs/biome`** ^2.6.7 → ^2.6.9 (dev)
|
|
33
|
+
- **`@types/node`** ^26.6.6 → ^26.6.7 (dev)
|
|
34
|
+
- **`ignore`** ^7.0.14 → ^7.0.16 (dev)
|
|
35
|
+
- **`vitest`** ^5.1.0 → ^5.1.1 (dev); the config selects the threads pool under Bun, whose `ChildProcess` lacks a method the fork pool calls
|
package/dist/index.js
CHANGED
|
@@ -34,12 +34,7 @@ await createApp({
|
|
|
34
34
|
* carries a meaningful value.
|
|
35
35
|
*/
|
|
36
36
|
sessionMode: 'stateless',
|
|
37
|
-
instructions: 'USAspending.gov MCP server — federal award, recipient, agency, and spending data from the US Treasury DATA Act platform.\n'
|
|
38
|
-
'- Start with usaspending_list_agencies or usaspending_autocomplete_filters to discover agency codes, NAICS/PSC codes, Assistance Listing numbers, and state, county, and district location codes\n' +
|
|
39
|
-
'- Use usaspending_search_awards to find awards, then usaspending_get_award for full details\n' +
|
|
40
|
-
'- Reuse NAICS, PSC, Assistance Listing, and DEF codes as filters on usaspending_search_awards and the usaspending_spending_* tools to see where and when that money went\n' +
|
|
41
|
-
'- Chain recipient_id from usaspending_search_awards rows or usaspending_get_award into usaspending_get_recipient for entity profiles\n' +
|
|
42
|
-
'- Search window: 2007-10-01 onward. DoD contracts have a 90-day publication lag.',
|
|
37
|
+
instructions: 'USAspending.gov MCP server — federal award, recipient, agency, and spending data from the US Treasury DATA Act platform.\n- Start with usaspending_list_agencies or usaspending_autocomplete_filters to discover agency codes, NAICS/PSC/DEF codes, Assistance Listing numbers, and state, county, and district location codes\n- Use usaspending_search_awards to find awards, then usaspending_get_award for full details\n- Reuse NAICS, PSC, Assistance Listing, and DEF codes as filters on usaspending_search_awards and the usaspending_spending_* tools to see where and when that money went\n- Chain recipient_id from usaspending_search_awards rows or usaspending_get_award into usaspending_get_recipient for entity profiles\n- Explicit award-search and analytics date ranges start no earlier than 2007-10-01. Check response notices for the applied scope. DoD contracts have a 90-day publication lag.',
|
|
43
38
|
setup(core) {
|
|
44
39
|
const serverConfig = getServerConfig();
|
|
45
40
|
initUSASpendingService(core.config, core.storage, serverConfig);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,sBAAsB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,sBAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Resolve spending agency names and apply both agency tiers per role.
|
|
3
|
+
* @module mcp-server/tools/definitions/agency-filters
|
|
4
|
+
*/
|
|
5
|
+
import { type Context, z } from '@cyanheads/mcp-ts-core';
|
|
6
|
+
import type { USASpendingService } from '../../../services/usaspending/usaspending-service.js';
|
|
7
|
+
/** Awarding and funding names, each resolved against its own role's directory. */
|
|
8
|
+
export declare const AGENCY_FILTER_FIELDS: {
|
|
9
|
+
agency_name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
funding_agency_name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
};
|
|
12
|
+
/** Effective names selected after input precedence. */
|
|
13
|
+
export type AgencyFilters = z.infer<z.ZodObject<typeof AGENCY_FILTER_FIELDS>>;
|
|
14
|
+
/** Echo the names actually sent after best-effort lookup. */
|
|
15
|
+
export declare const AGENCY_FILTER_ENRICHMENT: {
|
|
16
|
+
applied_agency_name: z.ZodOptional<z.ZodString>;
|
|
17
|
+
applied_funding_agency_name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Look up each effective name in its own role's directory, in parallel under one deadline;
|
|
21
|
+
* disclose unresolved inputs. The same string in both roles is looked up once per directory.
|
|
22
|
+
* Names are trimmed; a whitespace-only name is absent, as an empty one is.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveAgencyFilters(svc: USASpendingService, input: AgencyFilters | undefined, ctx: Context): Promise<{
|
|
25
|
+
names: {
|
|
26
|
+
agency_name?: string | undefined;
|
|
27
|
+
funding_agency_name?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
notices: string[];
|
|
30
|
+
}>;
|
|
31
|
+
/** Match either tier within each supplied role, retaining matches under every parent. */
|
|
32
|
+
export declare function applyAgencyFilters(filters: Record<string, unknown>, names: AgencyFilters): void;
|
|
33
|
+
/** Output enrichment shared by search and analytics. */
|
|
34
|
+
export declare function agencyFilterEcho(names: AgencyFilters): {
|
|
35
|
+
applied_agency_name?: string;
|
|
36
|
+
applied_funding_agency_name?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Agency predicates mentioned in empty-result guidance. */
|
|
39
|
+
export declare function describeAgencyFilters(names: AgencyFilters): string[];
|
|
40
|
+
//# sourceMappingURL=agency-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agency-filters.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/agency-filters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAKxF,kFAAkF;AAClF,eAAO,MAAM,oBAAoB;IAC/B,WAAW;IAMX,mBAAmB;CAMpB,CAAC;AAEF,uDAAuD;AACvD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AAK9E,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB;IACnC,mBAAmB;IACnB,2BAA2B;CAI5B,CAAC;AAmDF;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,GAAG,EAAE,OAAO;;;;;;GA2Bb;AAED,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAY/F;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;EAOpD;AAED,4DAA4D;AAC5D,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,CAEpE"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Resolve spending agency names and apply both agency tiers per role.
|
|
3
|
+
* @module mcp-server/tools/definitions/agency-filters
|
|
4
|
+
*/
|
|
5
|
+
import { z } from '@cyanheads/mcp-ts-core';
|
|
6
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
7
|
+
const LOOKUP_LIMIT = 50;
|
|
8
|
+
const LOOKUP_TIMEOUT_MS = 2_000;
|
|
9
|
+
/** Awarding and funding names, each resolved against its own role's directory. */
|
|
10
|
+
export const AGENCY_FILTER_FIELDS = {
|
|
11
|
+
agency_name: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Awarding top-tier or sub-tier agency name. Use the matched name from usaspending_autocomplete_filters type=awarding_agency, or toptier_name to select the whole parent department. A sub-tier name shared by several parents matches under all parents. Exact case-insensitive names and unambiguous abbreviations resolve to the directory spelling.'),
|
|
15
|
+
funding_agency_name: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Funding top-tier or sub-tier agency name. Use the matched name from usaspending_autocomplete_filters type=funding_agency. Exact case-insensitive names and unambiguous abbreviations resolve to the directory spelling. When agency_name is also supplied, awards must match both roles.'),
|
|
19
|
+
};
|
|
20
|
+
const AGENCY_ROLES = { agency_name: 'awarding', funding_agency_name: 'funding' };
|
|
21
|
+
const AGENCY_KEYS = Object.keys(AGENCY_ROLES);
|
|
22
|
+
/** Echo the names actually sent after best-effort lookup. */
|
|
23
|
+
export const AGENCY_FILTER_ENRICHMENT = {
|
|
24
|
+
applied_agency_name: z.string().optional().describe('Awarding agency name sent to USAspending'),
|
|
25
|
+
applied_funding_agency_name: z
|
|
26
|
+
.string()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('Funding agency name sent to USAspending'),
|
|
29
|
+
};
|
|
30
|
+
async function resolveName(svc, role, name, ctx, deadlineAt) {
|
|
31
|
+
try {
|
|
32
|
+
const { results } = await svc.autocompleteAgency(role, name, LOOKUP_LIMIT, ctx, deadlineAt);
|
|
33
|
+
ctx.signal.throwIfAborted();
|
|
34
|
+
const top = results?.toptier_agency ?? [];
|
|
35
|
+
const sub = results?.subtier_agency ?? [];
|
|
36
|
+
const rows = [...top, ...sub];
|
|
37
|
+
const folded = name.toLowerCase();
|
|
38
|
+
const exact = rows.flatMap((row) => row.name && row.name.toLowerCase() === folded ? [row.name] : []);
|
|
39
|
+
const matches = exact.length
|
|
40
|
+
? exact
|
|
41
|
+
: rows.flatMap((row) => row.name && row.abbreviation?.toLowerCase() === folded ? [row.name] : []);
|
|
42
|
+
const candidates = [...new Set(matches)];
|
|
43
|
+
const [candidate] = candidates;
|
|
44
|
+
if (top.length >= LOOKUP_LIMIT || sub.length >= LOOKUP_LIMIT) {
|
|
45
|
+
return { name, reason: 'the agency directory result reached its limit', candidates };
|
|
46
|
+
}
|
|
47
|
+
if (candidate && candidates.length === 1)
|
|
48
|
+
return { name: candidate };
|
|
49
|
+
return {
|
|
50
|
+
name,
|
|
51
|
+
reason: candidates.length
|
|
52
|
+
? 'multiple distinct agency names matched'
|
|
53
|
+
: 'no exact agency name or abbreviation matched',
|
|
54
|
+
candidates,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
ctx.signal.throwIfAborted();
|
|
59
|
+
if (!(err instanceof McpError) ||
|
|
60
|
+
(err.code !== JsonRpcErrorCode.Timeout &&
|
|
61
|
+
err.code !== JsonRpcErrorCode.ServiceUnavailable &&
|
|
62
|
+
err.code !== JsonRpcErrorCode.RateLimited)) {
|
|
63
|
+
throw err;
|
|
64
|
+
}
|
|
65
|
+
return { name, reason: 'the agency directory was unavailable' };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Look up each effective name in its own role's directory, in parallel under one deadline;
|
|
70
|
+
* disclose unresolved inputs. The same string in both roles is looked up once per directory.
|
|
71
|
+
* Names are trimmed; a whitespace-only name is absent, as an empty one is.
|
|
72
|
+
*/
|
|
73
|
+
export async function resolveAgencyFilters(svc, input, ctx) {
|
|
74
|
+
const supplied = AGENCY_KEYS.flatMap((key) => {
|
|
75
|
+
const name = input?.[key]?.trim();
|
|
76
|
+
return name ? [{ key, name }] : [];
|
|
77
|
+
});
|
|
78
|
+
if (!supplied.length)
|
|
79
|
+
return { names: {}, notices: [] };
|
|
80
|
+
const deadlineAt = Date.now() + LOOKUP_TIMEOUT_MS;
|
|
81
|
+
const resolved = await Promise.all(supplied.map(async ({ key, name }) => ({
|
|
82
|
+
key,
|
|
83
|
+
name,
|
|
84
|
+
match: await resolveName(svc, AGENCY_ROLES[key], name, ctx, deadlineAt),
|
|
85
|
+
})));
|
|
86
|
+
const names = {};
|
|
87
|
+
const notices = [];
|
|
88
|
+
for (const { key, name, match } of resolved) {
|
|
89
|
+
names[key] = match.name;
|
|
90
|
+
if (match.reason) {
|
|
91
|
+
const candidates = match.candidates?.map((candidate) => JSON.stringify(candidate)).join(', ');
|
|
92
|
+
notices.push(`Could not verify ${key}=${JSON.stringify(name)} because ${match.reason}. Sent the original name.${candidates ? ` Matching names: ${candidates}.` : ''} Use usaspending_autocomplete_filters type=${AGENCY_ROLES[key]}_agency to check the name.`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return { names, notices };
|
|
96
|
+
}
|
|
97
|
+
/** Match either tier within each supplied role, retaining matches under every parent. */
|
|
98
|
+
export function applyAgencyFilters(filters, names) {
|
|
99
|
+
const agencies = AGENCY_KEYS.flatMap((key) => {
|
|
100
|
+
const name = names[key]?.trim();
|
|
101
|
+
const type = AGENCY_ROLES[key];
|
|
102
|
+
return name
|
|
103
|
+
? [
|
|
104
|
+
{ type, tier: 'toptier', name },
|
|
105
|
+
{ type, tier: 'subtier', name },
|
|
106
|
+
]
|
|
107
|
+
: [];
|
|
108
|
+
});
|
|
109
|
+
if (agencies.length)
|
|
110
|
+
filters.agencies = agencies;
|
|
111
|
+
}
|
|
112
|
+
/** Output enrichment shared by search and analytics. */
|
|
113
|
+
export function agencyFilterEcho(names) {
|
|
114
|
+
return {
|
|
115
|
+
...(names.agency_name ? { applied_agency_name: names.agency_name } : {}),
|
|
116
|
+
...(names.funding_agency_name
|
|
117
|
+
? { applied_funding_agency_name: names.funding_agency_name }
|
|
118
|
+
: {}),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** Agency predicates mentioned in empty-result guidance. */
|
|
122
|
+
export function describeAgencyFilters(names) {
|
|
123
|
+
return AGENCY_KEYS.flatMap((key) => (names[key] ? [`${key}=${JSON.stringify(names[key])}`] : []));
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=agency-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agency-filters.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/agency-filters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAgB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAG3E,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAEhC,kFAAkF;AAClF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,uVAAuV,CACxV;IACH,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0RAA0R,CAC3R;CACJ,CAAC;AAKF,MAAM,YAAY,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAW,CAAC;AAC1F,MAAM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AAC5D,MAAM,UAAU,qBAAqB,CAAC,KAAoB;IACxD,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview Tool to look up valid code values for filter fields: NAICS, PSC, CFDA,
|
|
2
|
+
* @fileoverview Tool to look up valid code values for filter fields: NAICS, PSC, CFDA, DEF,
|
|
3
3
|
* agency names, recipient names, and US state, county, and congressional district codes.
|
|
4
4
|
* @module mcp-server/tools/definitions/autocomplete-filters.tool
|
|
5
5
|
*/
|
|
@@ -9,6 +9,8 @@ export declare const autocompleteFiltersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
9
9
|
type: z.ZodEnum<{
|
|
10
10
|
awarding_agency: "awarding_agency";
|
|
11
11
|
cfda: "cfda";
|
|
12
|
+
def_code: "def_code";
|
|
13
|
+
funding_agency: "funding_agency";
|
|
12
14
|
location: "location";
|
|
13
15
|
naics: "naics";
|
|
14
16
|
psc: "psc";
|
|
@@ -27,6 +29,8 @@ export declare const autocompleteFiltersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
27
29
|
}>>;
|
|
28
30
|
code: z.ZodOptional<z.ZodString>;
|
|
29
31
|
name: z.ZodOptional<z.ZodString>;
|
|
32
|
+
public_law: z.ZodOptional<z.ZodString>;
|
|
33
|
+
disaster_group: z.ZodOptional<z.ZodString>;
|
|
30
34
|
state: z.ZodOptional<z.ZodString>;
|
|
31
35
|
abbreviation: z.ZodOptional<z.ZodString>;
|
|
32
36
|
tier: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-filters.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete-filters.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiEjE,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"autocomplete-filters.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete-filters.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiEjE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4ZlC,CAAC"}
|