@cyanheads/usaspending-mcp-server 0.4.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -4
- package/CLAUDE.md +4 -4
- package/Dockerfile +3 -3
- package/README.md +35 -28
- package/changelog/0.5.x/0.5.0.md +50 -0
- package/changelog/0.5.x/0.5.1.md +29 -0
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/config/server-config.js +3 -3
- package/dist/config/server-config.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.d.ts +8 -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 +94 -35
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts +12 -2
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js +107 -41
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.d.ts +73 -4
- package/dist/mcp-server/tools/definitions/filters.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.js +138 -4
- package/dist/mcp-server/tools/definitions/filters.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts +22 -3
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js +166 -29
- package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js +3 -5
- package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts +8 -3
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.js +148 -139
- package/dist/mcp-server/tools/definitions/get-award.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.js +3 -6
- package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-idv-awards.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js +14 -12
- package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts +2 -8
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js +28 -28
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +146 -29
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/locations.d.ts +45 -0
- package/dist/mcp-server/tools/definitions/locations.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/locations.js +206 -0
- package/dist/mcp-server/tools/definitions/locations.js.map +1 -0
- package/dist/mcp-server/tools/definitions/pagination.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/pagination.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/pagination.js +9 -0
- package/dist/mcp-server/tools/definitions/pagination.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +34 -8
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.js +123 -88
- package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js +12 -7
- 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 +21 -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 +77 -12
- 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 +21 -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 +93 -20
- 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 +19 -1
- 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 +60 -12
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js.map +1 -1
- package/dist/services/usaspending/types.d.ts +28 -16
- package/dist/services/usaspending/types.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.d.ts +47 -29
- package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.js +98 -55
- package/dist/services/usaspending/usaspending-service.js.map +1 -1
- package/package.json +10 -10
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** usaspending-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.5.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
8
|
-
**Zod:** ^4.6.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
|
|
8
|
+
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
11
|
|
package/CLAUDE.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** usaspending-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.5.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
8
|
-
**Zod:** ^4.6.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
|
|
8
|
+
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
11
|
|
package/Dockerfile
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
# output. A stage that compiles a native addon needs the target-arch toolchain
|
|
15
15
|
# and cannot cross-compile this way — drop the flag there.
|
|
16
16
|
# ==============================================================================
|
|
17
|
-
FROM --platform=$BUILDPLATFORM oven/bun:1.4.
|
|
17
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS build
|
|
18
18
|
|
|
19
19
|
WORKDIR /usr/src/app
|
|
20
20
|
|
|
@@ -46,7 +46,7 @@ RUN bun run build
|
|
|
46
46
|
# A clean image rather than `FROM build`: the build stage's node_modules holds
|
|
47
47
|
# devDependencies.
|
|
48
48
|
# ==============================================================================
|
|
49
|
-
FROM --platform=$BUILDPLATFORM oven/bun:1.4.
|
|
49
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS deps
|
|
50
50
|
|
|
51
51
|
WORKDIR /usr/src/app
|
|
52
52
|
|
|
@@ -114,7 +114,7 @@ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
|
|
|
114
114
|
# dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
|
|
115
115
|
# and CMD, which run on the real target at container start.
|
|
116
116
|
# ==============================================================================
|
|
117
|
-
FROM oven/bun:1.4.
|
|
117
|
+
FROM oven/bun:1.4.4-slim AS production
|
|
118
118
|
|
|
119
119
|
WORKDIR /usr/src/app
|
|
120
120
|
|
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
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
## Overview
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Where federal money goes, from USAspending.gov: awards, recipients, agencies, and spending. Search and trace awards down to transactions, subawards, and funding accounts; profile recipients and agencies; and aggregate spending by geography, category, time, and disaster appropriation.
|
|
33
33
|
|
|
34
34
|
### Tools
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ Federal award, recipient, agency, and spending data from USAspending.gov, the US
|
|
|
37
37
|
|:---|:---|
|
|
38
38
|
| `usaspending_list_agencies` | List every top-tier federal agency with its toptier code, slug, and current-year budget totals |
|
|
39
39
|
| `usaspending_autocomplete_filters` | Look up NAICS, PSC, CFDA, agency, or recipient codes from a free-text description |
|
|
40
|
-
| `usaspending_search_awards` | Search awards by keyword, recipient, agency, award type, NAICS code, assistance listing, location, or date range |
|
|
40
|
+
| `usaspending_search_awards` | Search awards by keyword, recipient, agency, award type, NAICS code, assistance listing, PSC, DEF code, location, or date range |
|
|
41
41
|
| `usaspending_get_award` | Fetch one award's full record: amounts, recipient, agencies, codes, 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 |
|
|
@@ -66,15 +66,16 @@ Federal award, recipient, agency, and spending data from USAspending.gov, the US
|
|
|
66
66
|
### `usaspending_autocomplete_filters` <sub>tool</sub>
|
|
67
67
|
|
|
68
68
|
- `type` (`naics`, `psc`, `cfda`, `awarding_agency`, `recipient`) plus `search_text`; `limit` 1–500, default 10
|
|
69
|
-
- Rows carry `code` and `name`,
|
|
69
|
+
- 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
|
|
70
|
+
- Agency rows carry the matched agency's own `name`, `abbreviation`, and `tier` (`toptier` or `subtier`), plus its parent's `toptier_name` and `toptier_code`. The `agency_name` filters are top-tier only and take `toptier_name`, so a sub-agency such as the U.S. Geological Survey filters at its whole department
|
|
70
71
|
- `naics` matches official NAICS title text: "software" resolves, "cybersecurity" does not, so search with the industry term a title would use
|
|
71
72
|
|
|
72
73
|
---
|
|
73
74
|
|
|
74
75
|
### `usaspending_search_awards` <sub>tool</sub>
|
|
75
76
|
|
|
76
|
-
- Filters: `keyword`, `agency_name`, `recipient_name`, `naics_codes`, `assistance_listings` (Assistance Listing numbers such as `93.866`, from `usaspending_autocomplete_filters` `type: cfda`), `time_period` (`YYYY-MM-DD` from 2007-10-01 on; either end may be given alone), and `location_filter`; `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`, or other assistance `09`/`11`/`-1`/`F005`/`F008`/`F009`/`F010`; `limit` up to 100
|
|
77
|
-
- Rows carry `generated_internal_id` for `usaspending_get_award` and `agency_slug` for `usaspending_get_agency`; loan rows carry `loan_value`, `subsidy_cost`, and `issued_date` in place of amounts and dates. There is no total, and `page_metadata.has_next` is true on any full page. Failures are `assistance_listings_type_mismatch` (listings with a non-assistance group), `unsupported_sort`, `date_range_inverted`, and `
|
|
77
|
+
- Filters: `keyword`, `agency_name`, `recipient_name`, `naics_codes`, `assistance_listings` (Assistance Listing numbers such as `93.866`, from `usaspending_autocomplete_filters` `type: cfda`), `psc_codes` (1–4 characters, where a prefix such as `Y1` covers the codes under it; contracts and IDVs only), `def_codes` (Disaster Emergency Fund Codes such as `Z`; PSC and DEF codes are sent uppercased), `time_period` (`YYYY-MM-DD` from 2007-10-01 on; either end may be given alone), and `location_filter` (`country` defaults to `USA`, and a territory code such as `PRI` becomes `USA` plus its state; `state` as a postal or 2-digit FIPS code, `FM`/`MH`/`PW`/`UM` and armed-forces `AA`/`AE`/`AP` included, or under another country as that country's own 2-letter subdivision code such as `ON` with `CAN`; `county` as 3 digits with `state` or the 5-digit FIPS code alone; echoed as `applied_location`); `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`, or other assistance `09`/`11`/`-1`/`F005`/`F008`/`F009`/`F010`; `limit` up to 100
|
|
78
|
+
- Rows carry `generated_internal_id` for `usaspending_get_award` and `agency_slug` for `usaspending_get_agency`; loan rows carry `loan_value`, `subsidy_cost`, and `issued_date` in place of amounts and dates. There is no total, and `page_metadata.has_next` is true on any full page. The nested `filters` object takes the analytics tools' `filters` keys, except `recipient_id`, and wins per field over the flat ones. Failures are `assistance_listings_type_mismatch` (listings with a non-assistance group), `psc_codes_type_mismatch` (PSC codes 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)
|
|
78
79
|
- `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
|
|
79
80
|
|
|
80
81
|
---
|
|
@@ -82,8 +83,10 @@ Federal award, recipient, agency, and spending data from USAspending.gov, the US
|
|
|
82
83
|
### `usaspending_get_award` <sub>tool</sub>
|
|
83
84
|
|
|
84
85
|
- `award_id` is a `generated_unique_award_id`, the `generated_internal_id` from search; an unknown ID fails as `award_not_found`
|
|
85
|
-
- Returns `category`, `total_obligation`, `total_outlays`, `subaward_count`, NAICS / PSC
|
|
86
|
-
- `
|
|
86
|
+
- Returns `category`, `total_obligation`, `total_outlays`, `subaward_count`, NAICS / PSC codes, `account_obligations_by_defc`, and, on loans, `total_loan_value` and `total_subsidy_cost`
|
|
87
|
+
- `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`
|
|
88
|
+
- `recipient` carries `uei`, `parent_uei`, `business_categories` (category names, not the `business_types` codes of `usaspending_get_recipient`), and a three-letter `country_code` on its `location`, as does `place_of_performance`; a location with no fields upstream is omitted
|
|
89
|
+
- `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`
|
|
87
90
|
|
|
88
91
|
---
|
|
89
92
|
|
|
@@ -117,52 +120,56 @@ Federal award, recipient, agency, and spending data from USAspending.gov, the US
|
|
|
117
120
|
|
|
118
121
|
### `usaspending_search_recipients` <sub>tool</sub>
|
|
119
122
|
|
|
120
|
-
- `keyword` matches names, UEI, or DUNS, partial matches included;
|
|
123
|
+
- `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` up to 100
|
|
121
124
|
- 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
|
|
122
125
|
|
|
123
126
|
---
|
|
124
127
|
|
|
125
128
|
### `usaspending_get_recipient` <sub>tool</sub>
|
|
126
129
|
|
|
127
|
-
- `recipient_id` from `usaspending_search_recipients` or `usaspending_get_award`; optional `fiscal_year` (2001–2030)
|
|
128
|
-
- Returns address, `business_types`, `parent_name` / `parent_uei`, `alternate_names`, `total_transaction_amount`, `total_transactions`, and loan face-value totals
|
|
130
|
+
- `recipient_id` from `usaspending_search_recipients` or `usaspending_get_award`; optional `fiscal_year` (2001–2030) scopes the totals to that fiscal year, which otherwise cover the trailing 12 months; an unknown ID fails as `recipient_not_found`
|
|
131
|
+
- Returns address, `business_types`, `parent_name` / `parent_uei`, `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`
|
|
129
132
|
|
|
130
133
|
---
|
|
131
134
|
|
|
132
135
|
### `usaspending_get_agency` <sub>tool</sub>
|
|
133
136
|
|
|
134
|
-
- One of `toptier_code` (e.g. `097`) or `agency_slug` (e.g. `department-of-defense`); `page` walks the sub-agency list 10 at a time. Failures are `missing_input` and `agency_not_found`
|
|
135
|
-
- Returns `mission`, plus `budgetary_resources_amount`, `obligated_amount`, and `outlay_amount` for the
|
|
137
|
+
- One of `toptier_code` (e.g. `097`) or `agency_slug` (e.g. `department-of-defense`); `page` walks the sub-agency list 10 at a time. Failures are `missing_input`, `conflicting_input` (both identifiers sent), and `agency_not_found`
|
|
138
|
+
- 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`
|
|
139
|
+
- 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
|
|
136
140
|
|
|
137
141
|
---
|
|
138
142
|
|
|
139
143
|
### `usaspending_spending_by_geography` <sub>tool</sub>
|
|
140
144
|
|
|
141
|
-
- `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`, 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` 1–500, default 50
|
|
142
|
-
-
|
|
145
|
+
- `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_*`), 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` 1–500, default 50
|
|
146
|
+
- 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
|
|
147
|
+
- Rows carry `shape_code`, `display_name`, `aggregated_amount`, `population`, and `per_capita`, ranked by amount; `total_areas_available` counts every match before the cap
|
|
148
|
+
- `shape_codes` (1–500) returns only the listed areas, in the `shape_code` form of the layer: postal code for `state` (`NY`), 5-digit state + county FIPS for `county` (`36117`), 4-digit state FIPS + district for `district` (`3623`). Selection runs over every matched area, so it reaches areas ranked past `limit`; the codes are echoed as `applied_shape_codes`, and a code that matches no area is named in the `notice`
|
|
143
149
|
- With no filters, every award type is aggregated and `applied_award_type_default` says so; `subawards: true` switches to subaward data
|
|
144
150
|
|
|
145
151
|
---
|
|
146
152
|
|
|
147
153
|
### `usaspending_spending_by_category` <sub>tool</sub>
|
|
148
154
|
|
|
149
|
-
- `category` is `naics`, `psc`, `awarding_agency`, `awarding_subagency`, `funding_agency`, `funding_subagency`, `cfda`,
|
|
150
|
-
- Rows carry `id`, `code`, `name`, and `amount`, ranked by obligation
|
|
155
|
+
- `category` is `naics`, `psc`, `awarding_agency`, `awarding_subagency`, `funding_agency`, `funding_subagency`, `cfda`, or `recipient_duns`; takes the same `filters` object as `usaspending_spending_by_geography`; `limit` up to 100
|
|
156
|
+
- Rows carry `id`, `code`, `name`, and `amount`, ranked by obligation; `recipient_duns` rows carry the DUNS as `code` plus `recipient_id` and `uei` when upstream has them, and `recipient_id` chains to `usaspending_get_recipient`
|
|
151
157
|
|
|
152
158
|
---
|
|
153
159
|
|
|
154
160
|
### `usaspending_spending_over_time` <sub>tool</sub>
|
|
155
161
|
|
|
156
|
-
- `group` is `fiscal_year`, `quarter`, or `month` (fiscal month, where 1 is October); the same `filters` object, with `award_type_codes` defaulting to contracts
|
|
162
|
+
- `group` is `fiscal_year`, `quarter`, or `month` (fiscal month, where 1 is October); the same `filters` object, with `award_type_codes` defaulting to contracts, so `assistance_listings` needs an assistance group named; `subawards: true` switches to subaward data
|
|
157
163
|
- Rows carry `time_period`, `aggregated_amount`, and per-type `contracts`, `grants`, `direct_payments`, `idvs`, `loans`, and `other`
|
|
158
164
|
|
|
159
165
|
---
|
|
160
166
|
|
|
161
167
|
### `usaspending_disaster_spending` <sub>tool</sub>
|
|
162
168
|
|
|
163
|
-
- `dimension` is `overview`, `agency`, `cfda`, `recipient`, or `geography`;
|
|
164
|
-
- Rows carry `obligation`, `outlay`, and `award_count`, plus `total_budgetary_resources` on agency rows under `spending_type: total`; `overview` returns totals and `funding_by_def_code`. A recipient row's `id` chains to `usaspending_get_recipient`.
|
|
165
|
-
- Agency, cfda, and recipient also return `totals` across every matching row: `obligation`, `outlay`, and either `total_budgetary_resources` (agency, `total`) or `award_count`.
|
|
169
|
+
- `dimension` is `overview`, `agency`, `cfda`, `recipient`, or `geography`; `filters.def_codes` is optional for `overview` and required for every other dimension (`missing_def_codes` when absent/empty). Codes such as `["L", "M", "N", "O", "P"]` isolate COVID-19 funding and are echoed as `applied_def_codes`. `limit` is up to 100 on every dimension but `overview`; `spending_type` (`award`, the default, or `total`) applies to agency only, and geography takes `filters.geo_layer` (`state`, `county`)
|
|
170
|
+
- Rows carry `obligation`, `outlay`, and `award_count`, plus `total_budgetary_resources` on agency rows under `spending_type: total`; `overview` returns totals and `funding_by_def_code`. A recipient row's `id` chains to `usaspending_get_recipient`. Recipient `filters.query` narrows by search text; it is trimmed and echoed as `applied_query`, with blanks applying no query. A recipient total of 10,000 is a reachable ceiling and a lower bound on possible matches, flagged `truncated`; narrow with `filters.query` to reach the tail. Geography areas are ranked by `aggregated_amount` and paged with `limit` and `page`, with the full area count as `total`; a page with areas below it is flagged `truncated`, and `truncationCeiling` is the lowest amount shown. Spending with no recorded place of performance ranks as one unattributed area
|
|
171
|
+
- Agency, cfda, and recipient also return `totals` across every matching row: `obligation`, `outlay`, and either `total_budgetary_resources` (agency, `total`) or `award_count`. Overview can still time out with codes supplied: narrow `filters.def_codes`, retry later, or use the agency breakdown with `spending_type: total` for obligations, outlays, and budgetary resources
|
|
172
|
+
- Notices preserve upstream messages, ignored filters, cap guidance, and empty-page recovery on both output surfaces. `query` is ignored outside recipient, `geo_layer` outside geography, and `award_type_codes` on overview. An empty page whose offset reaches a positive total directs callers to an earlier page with the same filters; an empty interior page reports the total without claiming exhaustion, and an absent total stays unknown
|
|
166
173
|
|
|
167
174
|
---
|
|
168
175
|
|
|
@@ -193,15 +200,15 @@ USAspending-specific:
|
|
|
193
200
|
|
|
194
201
|
- USAspending.gov API v2, keyless: the data is public under the DATA Act
|
|
195
202
|
- Award search and the spending analytics tools cover action dates from 2007-10-01 on (an earlier start date fails as `date_before_earliest`), and DoD contract data lags publication by 90 days
|
|
196
|
-
- `usaspending_spending_by_category` puts
|
|
197
|
-
- Each request runs under
|
|
203
|
+
- `usaspending_spending_by_category` puts eight category sub-routes behind one `category` enum, and `usaspending_disaster_spending` puts five disaster endpoints behind `dimension`
|
|
204
|
+
- 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
|
|
198
205
|
|
|
199
206
|
Agent-friendly output:
|
|
200
207
|
|
|
201
208
|
- Chaining IDs as explicit fields: `generated_internal_id`, `agency_slug`, `recipient.recipient_id`, `federal_account`, and `account_number`, so agents follow the money without parsing display strings
|
|
202
|
-
- Honest pagination: `page_metadata.has_next` on every list, a `total` or `count` where the upstream publishes one, and `truncated` / `shown` / `cap` when
|
|
203
|
-
- Empty results are notices, not errors: an empty page
|
|
204
|
-
- Typed failures with recovery hints: `award_not_found`, `recipient_not_found`, `agency_not_found`, `account_not_found`, `no_match`, `date_before_earliest`, `date_range_inverted`, `unsupported_sort`, `assistance_listings_type_mismatch`, `pagination_limit_exceeded`
|
|
209
|
+
- 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
|
|
210
|
+
- 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 never supplies a total. The ID-keyed list tools (transactions, subawards, funding accounts, IDV children, account breakdown) return an empty list for an unknown ID rather than failing
|
|
211
|
+
- 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`
|
|
205
212
|
|
|
206
213
|
## Getting started
|
|
207
214
|
|
|
@@ -322,8 +329,8 @@ No variable is required; the defaults work out of the box.
|
|
|
322
329
|
| Variable | Description | Default |
|
|
323
330
|
|:---|:---|:---|
|
|
324
331
|
| `USASPENDING_BASE_URL` | USAspending.gov API v2 base URL. | `https://api.usaspending.gov/api/v2/` |
|
|
325
|
-
| `USASPENDING_TIMEOUT_MS` | Per-attempt HTTP timeout, in ms (1000–120000). | `
|
|
326
|
-
| `USASPENDING_RETRY_BUDGET_MS` | Wall-clock budget for one request
|
|
332
|
+
| `USASPENDING_TIMEOUT_MS` | Per-attempt HTTP timeout, in ms (1000–120000). Each attempt is cut at this or at the time left in the request budget, whichever is smaller; a timed-out attempt is not retried. | `45000` |
|
|
333
|
+
| `USASPENDING_RETRY_BUDGET_MS` | Wall-clock budget for one request, every attempt and backoff included, in ms (1000–300000). Fast failures such as a 503 retry inside it. | `45000`, or `USASPENDING_TIMEOUT_MS` when higher |
|
|
327
334
|
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
|
|
328
335
|
| `MCP_HTTP_PORT` | HTTP server port. | `3010` |
|
|
329
336
|
| `MCP_SESSION_MODE` | HTTP session mode: `stateless`, `stateful`, or `auto`. | `stateless` |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Autocomplete agency rows drop id and name the matched agency; get_agency rejects both identifiers; nested filter keys are strict. Fixes location_filter normalization, analytics code filters, geography shape_codes, award-detail fields, recipient fiscal-year totals, agency budget years, truncation labels, and request timeouts."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.5.0 — 2026-10-12
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`psc_codes`, `def_codes`, and `assistance_listings`** filter the `filters` of `usaspending_spending_by_geography`, `usaspending_spending_by_category`, and `usaspending_spending_over_time`, and `usaspending_search_awards` takes all three both flat and inside its `filters` (it took only a flat `assistance_listings` before), each echoed as `applied_*` ([#77](https://github.com/cyanheads/usaspending-mcp-server/issues/77)). PSC and DEF codes are sent uppercased; `assistance_listings` with only contract or IDV award types fails as `assistance_listings_type_mismatch`, `psc_codes` with only assistance types as `psc_codes_type_mismatch`.
|
|
12
|
+
- **`usaspending_spending_by_geography` `shape_codes`** (1–500, beside `limit`) returns only the listed areas, reaching counties ranked past `limit`; the codes echo as `applied_shape_codes` and an unmatched code is named in the `notice` ([#72](https://github.com/cyanheads/usaspending-mcp-server/issues/72)).
|
|
13
|
+
- **`usaspending_get_award` `assistance_listings[]`** (`number`, `title`, `obligation`), `recipient.parent_uei`, `recipient.parent_recipient_id`, `recipient.business_categories`, and `total_loan_value` / `total_subsidy_cost` on loans; `recipient.uei` and the three-letter `country_code` on `recipient.location` and `place_of_performance` are now populated ([#68](https://github.com/cyanheads/usaspending-mcp-server/issues/68)).
|
|
14
|
+
- **`usaspending_get_recipient` `period`** names the totals window, `FY<year>` or `trailing 12 months` ([#67](https://github.com/cyanheads/usaspending-mcp-server/issues/67)).
|
|
15
|
+
- **`usaspending_get_agency` `sub_agency_fiscal_year`** and an optional **`unavailable_sections`** listing each failed section with its `reason` ([#86](https://github.com/cyanheads/usaspending-mcp-server/issues/86), [#69](https://github.com/cyanheads/usaspending-mcp-server/issues/69)).
|
|
16
|
+
- **`usaspending_spending_by_category`** `recipient_duns` rows carry `recipient_id` and `uei` when upstream has them ([#83](https://github.com/cyanheads/usaspending-mcp-server/issues/83)).
|
|
17
|
+
- **`invalid_location`** (`usaspending_search_awards`), **`psc_codes_type_mismatch`** (`usaspending_search_awards` and the three spending analytics tools), and **`conflicting_input`** (`usaspending_get_agency`) typed failures; `assistance_listings_type_mismatch`, until now on `usaspending_search_awards` alone, is added to the three spending analytics tools.
|
|
18
|
+
|
|
19
|
+
## Changed
|
|
20
|
+
|
|
21
|
+
- **BREAKING: unknown keys inside the nested `filters`, `time_period`, and `location_filter` objects are rejected** with the key path named (for example `time_period.fiscal_year`); they were dropped and the call ran without them ([#74](https://github.com/cyanheads/usaspending-mcp-server/issues/74)). `usaspending_search_awards` rejects `filters.recipient_id`.
|
|
22
|
+
- **BREAKING: `usaspending_autocomplete_filters` agency rows drop `id`** and carry the matched agency's own `name` (the top-tier parent was returned for a sub-agency), with `abbreviation`, `tier`, and the parent in `toptier_name` / `toptier_code`; `code` is no longer advertised for agencies ([#71](https://github.com/cyanheads/usaspending-mcp-server/issues/71)).
|
|
23
|
+
- **BREAKING: `usaspending_get_agency` rejects any call with both `toptier_code` and `agency_slug`** as `conflicting_input`, a matching pair included ([#75](https://github.com/cyanheads/usaspending-mcp-server/issues/75)).
|
|
24
|
+
- **`usaspending_search_awards` `location_filter` is normalized** (`country` defaults to `USA`, a territory code becomes `USA` plus its state, a 2-digit FIPS `state` becomes its postal code, a 5-digit county FIPS stands alone) and echoed as `applied_location`. A malformed `country`, `state`, or `county` fails as `-32602`; an unknown US state, a county without a state or with an armed-forces state (`AA`/`AE`/`AP`), a county or FIPS-number state under a non-USA country, and parts that name different states fail as `invalid_location` ([#70](https://github.com/cyanheads/usaspending-mcp-server/issues/70)).
|
|
25
|
+
- **`usaspending_get_recipient` totals** cover the requested `fiscal_year` instead of always the trailing 12 months ([#67](https://github.com/cyanheads/usaspending-mcp-server/issues/67)).
|
|
26
|
+
- **`usaspending_get_agency`** reports the most recent fiscal year with budget data, and `sub_agencies` cover that same year ([#81](https://github.com/cyanheads/usaspending-mcp-server/issues/81), [#86](https://github.com/cyanheads/usaspending-mcp-server/issues/86)). A failed budget or sub-agency request omits those fields, and `sub_agency_page` / `has_more_sub_agencies` become optional ([#69](https://github.com/cyanheads/usaspending-mcp-server/issues/69)).
|
|
27
|
+
- **`truncated` / `shown` / `cap` are set only on evidence** (an upstream `hasNext`, or a row received past `limit`) in `usaspending_autocomplete_filters`, `usaspending_search_awards`, and `usaspending_get_idv_awards`, where any full page set them before; a page that exactly fills `limit` is no longer labeled truncated, and the two paged tools still report `has_next`. Autocomplete at `limit: 500`, the upstream maximum, says in its new `notice` that more matches may exist ([#76](https://github.com/cyanheads/usaspending-mcp-server/issues/76)).
|
|
28
|
+
- **`usaspending_disaster_spending` geography** returns a page of `limit` areas (default 10) with `total` counting every area and `has_next` set from the page position ([#73](https://github.com/cyanheads/usaspending-mcp-server/issues/73)).
|
|
29
|
+
- **Request timeouts:** `USASPENDING_TIMEOUT_MS` defaults to 45000 (was 30000) and `USASPENDING_RETRY_BUDGET_MS` to 45000, or the timeout when higher (was 1.5 × the timeout). A timed-out attempt is not retried; 5xx and network failures still retry inside the budget ([#79](https://github.com/cyanheads/usaspending-mcp-server/issues/79)).
|
|
30
|
+
- **Framework (mcp-ts-core 0.13.15):** unknown nested keys are rejected with the key path named (the mechanism behind #74); `{"keyword": null}` and a lone string for an array filter such as `filters.keywords: "water"`, rejected with `-32602` before, are repaired and accepted.
|
|
31
|
+
- **Docker, `.mcpbignore`, docs:** the base image is Bun 1.4.3; the `.mcpb` bundle excludes `tests/`, `src/`, `scripts/`, `docs/`, `coverage/`, `.github/`, and `.vscode/` ([#88](https://github.com/cyanheads/usaspending-mcp-server/issues/88)); `framework-skills/` is synced to 0.13.15.
|
|
32
|
+
|
|
33
|
+
## Removed
|
|
34
|
+
|
|
35
|
+
- **BREAKING: `usaspending_spending_by_category` `category: "recipient_parent_duns"`**; it always answered 404 upstream ([#80](https://github.com/cyanheads/usaspending-mcp-server/issues/80)).
|
|
36
|
+
- **BREAKING: `usaspending_get_recipient` `award_type`**; the endpoint has no award-type selector, so the value was ignored. Use `usaspending_spending_over_time` with `filters.recipient_id` and `award_type_codes` for totals by type ([#67](https://github.com/cyanheads/usaspending-mcp-server/issues/67)).
|
|
37
|
+
- **`usaspending_get_award` `cfda` and `recipient.business_types`**, never populated; replaced by `assistance_listings[]` and `recipient.business_categories`. An empty `place_of_performance` or `recipient.location` is omitted instead of returned as `{}` ([#68](https://github.com/cyanheads/usaspending-mcp-server/issues/68)).
|
|
38
|
+
- **`usaspending_spending_by_geography` `award_count`** (result field and "Awards" column), never populated ([#82](https://github.com/cyanheads/usaspending-mcp-server/issues/82)).
|
|
39
|
+
|
|
40
|
+
## Fixed
|
|
41
|
+
|
|
42
|
+
- **An Assistance Listing or PSC filter the award types cannot match** — `filters.psc_codes` or `filters.assistance_listings` on `usaspending_search_awards` or on the three spending analytics tools — was dropped and the call answered without it; it now fails as `assistance_listings_type_mismatch` or `psc_codes_type_mismatch` ([#74](https://github.com/cyanheads/usaspending-mcp-server/issues/74), [#77](https://github.com/cyanheads/usaspending-mcp-server/issues/77)).
|
|
43
|
+
|
|
44
|
+
## Dependencies
|
|
45
|
+
|
|
46
|
+
- `@cyanheads/mcp-ts-core` `^0.13.13` → `^0.13.15`
|
|
47
|
+
- `pino-pretty` `^13.1.3` → `^13.2.0`
|
|
48
|
+
- `@types/node` `^26.6.4` → `^26.6.5` (dev)
|
|
49
|
+
- `@modelcontextprotocol/server` `2.2.0` → `2.3.1` (lockfile, via the framework)
|
|
50
|
+
- Bun `1.4.2` → `1.4.3` (`packageManager`, Dockerfile base image, README badge)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Correct search results and disaster spending recovery"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.5.1 — 2026-10-24
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **Disaster recipient narrowing** accepts trimmed `filters.query`, echoes the applied query, preserves upstream messages, and describes the 10,000 reachable ceiling as a lower bound on possible matches. ([#100](https://github.com/cyanheads/usaspending-mcp-server/issues/100))
|
|
12
|
+
|
|
13
|
+
## Fixed
|
|
14
|
+
|
|
15
|
+
- **Disaster overview filters** forward optional DEF codes and echo applied codes; unsupported filters produce notices, and timeout recovery includes filtered requests plus retry and agency-breakdown alternatives. ([#91](https://github.com/cyanheads/usaspending-mcp-server/issues/91))
|
|
16
|
+
- **Empty-page recovery** distinguishes zero totals, exhausted pages, empty interior pages, and unknown totals across award/account, recipient, and disaster tools, with notices on both output surfaces. ([#93](https://github.com/cyanheads/usaspending-mcp-server/issues/93))
|
|
17
|
+
- **Recipient keywords** are trimmed; blank text omits the keyword filter and discloses the unrestricted keyword search while retaining award-type filters and pagination notices. ([#94](https://github.com/cyanheads/usaspending-mcp-server/issues/94))
|
|
18
|
+
- **Validation recovery** declares non-retryable `incomplete_cursor` and `missing_def_codes` reasons with structured recovery hints and matching text. ([#95](https://github.com/cyanheads/usaspending-mcp-server/issues/95))
|
|
19
|
+
- **Award performance cities** use `Primary Place of Performance.city_name` instead of a city code, preserving sparse locations. ([#101](https://github.com/cyanheads/usaspending-mcp-server/issues/101))
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
- `zod` ^4.6.5 → ^4.6.7.
|
|
24
|
+
- `@biomejs/biome` ^2.5.15 → ^2.6.2.
|
|
25
|
+
- `ignore` ^7.0.12 → ^7.0.13.
|
|
26
|
+
- `tsc-alias` ^1.9.7 → ^1.9.8.
|
|
27
|
+
- `vitest` ^5.0.3 → ^5.0.5.
|
|
28
|
+
- Transitive `vite` 8.3.2 → 8.3.3.
|
|
29
|
+
- **Bun toolchain and Docker images** 1.4.3 → 1.4.4.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;iBAwBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,wBAAgB,eAAe,IAAI,YAAY,CAO9C"}
|
|
@@ -15,15 +15,15 @@ const ServerConfigSchema = z.object({
|
|
|
15
15
|
.int()
|
|
16
16
|
.min(1000)
|
|
17
17
|
.max(120_000)
|
|
18
|
-
.default(
|
|
19
|
-
.describe('HTTP
|
|
18
|
+
.default(45_000)
|
|
19
|
+
.describe('Per-attempt HTTP timeout in milliseconds. Each attempt is cut at this or at the time left in the request budget, whichever is smaller, and an attempt that times out is not retried.'),
|
|
20
20
|
retryBudgetMs: z.coerce
|
|
21
21
|
.number()
|
|
22
22
|
.int()
|
|
23
23
|
.min(1000)
|
|
24
24
|
.max(300_000)
|
|
25
25
|
.optional()
|
|
26
|
-
.describe('Wall-clock budget
|
|
26
|
+
.describe('Wall-clock budget in milliseconds for one request, every attempt and retry backoff included. Fast transient failures (5xx, network errors) retry inside it. Defaults to 45000, or to the per-attempt timeout when that is higher, so one attempt can always run its full timeout.'),
|
|
27
27
|
});
|
|
28
28
|
let _config;
|
|
29
29
|
export function getServerConfig() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,EAAE;SACL,OAAO,CAAC,qCAAqC,CAAC;SAC9C,QAAQ,CAAC,iCAAiC,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM;SAChB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,IAAI,CAAC;SACT,GAAG,CAAC,OAAO,CAAC;SACZ,OAAO,CAAC,MAAM,CAAC;SACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,EAAE;SACL,OAAO,CAAC,qCAAqC,CAAC;SAC9C,QAAQ,CAAC,iCAAiC,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM;SAChB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,IAAI,CAAC;SACT,GAAG,CAAC,OAAO,CAAC;SACZ,OAAO,CAAC,MAAM,CAAC;SACf,QAAQ,CACP,sLAAsL,CACvL;IACH,aAAa,EAAE,CAAC,CAAC,MAAM;SACpB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,IAAI,CAAC;SACT,GAAG,CAAC,OAAO,CAAC;SACZ,QAAQ,EAAE;SACV,QAAQ,CACP,mRAAmR,CACpR;CACJ,CAAC,CAAC;AAIH,IAAI,OAAiC,CAAC;AAEtC,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,cAAc,CAAC,kBAAkB,EAAE;QAC7C,OAAO,EAAE,sBAAsB;QAC/B,SAAS,EAAE,wBAAwB;QACnC,aAAa,EAAE,6BAA6B;KAC7C,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ await createApp({
|
|
|
36
36
|
instructions: 'USAspending.gov MCP server — federal award, recipient, agency, and spending data from the US Treasury DATA Act platform.\n' +
|
|
37
37
|
'- Start with usaspending_list_agencies or usaspending_autocomplete_filters to discover agency codes, NAICS/PSC codes, and Assistance Listing numbers\n' +
|
|
38
38
|
'- Use usaspending_search_awards to find awards, then usaspending_get_award for full details\n' +
|
|
39
|
+
'- 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' +
|
|
39
40
|
'- Chain recipient_id from usaspending_get_award into usaspending_get_recipient for entity profiles\n' +
|
|
40
41
|
'- Search window: 2007-10-01 onward. DoD contracts have a 90-day publication lag.',
|
|
41
42
|
setup(core) {
|
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,EAAE,MAAM,+CAA+C,CAAC;AAEvF,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B;;;;;;OAMG;IACH,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KACzD;IACD;;;;;;OAMG;IACH,WAAW,EAAE,WAAW;IACxB,YAAY,EACV,4HAA4H;QAC5H,wJAAwJ;QACxJ,+FAA+F;QAC/F,sGAAsG;QACtG,kFAAkF;IACpF,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,sBAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
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,EAAE,MAAM,+CAA+C,CAAC;AAEvF,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B;;;;;;OAMG;IACH,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KACzD;IACD;;;;;;OAMG;IACH,WAAW,EAAE,WAAW;IACxB,YAAY,EACV,4HAA4H;QAC5H,wJAAwJ;QACxJ,+FAA+F;QAC/F,4KAA4K;QAC5K,sGAAsG;QACtG,kFAAkF;IACpF,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,sBAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -21,7 +21,13 @@ export declare const autocompleteFiltersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
21
21
|
results: z.ZodArray<z.ZodObject<{
|
|
22
22
|
code: z.ZodOptional<z.ZodString>;
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
|
-
|
|
24
|
+
abbreviation: z.ZodOptional<z.ZodString>;
|
|
25
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
subtier: "subtier";
|
|
27
|
+
toptier: "toptier";
|
|
28
|
+
}>>;
|
|
29
|
+
toptier_name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
toptier_code: z.ZodOptional<z.ZodString>;
|
|
25
31
|
uei: z.ZodOptional<z.ZodString>;
|
|
26
32
|
duns: z.ZodOptional<z.ZodString>;
|
|
27
33
|
}, z.core.$strip>>;
|
|
@@ -52,5 +58,6 @@ export declare const autocompleteFiltersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
52
58
|
readonly truncated: z.ZodOptional<z.ZodBoolean>;
|
|
53
59
|
readonly shown: z.ZodOptional<z.ZodNumber>;
|
|
54
60
|
readonly cap: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
readonly notice: z.ZodOptional<z.ZodString>;
|
|
55
62
|
}>;
|
|
56
63
|
//# sourceMappingURL=autocomplete-filters.tool.d.ts.map
|
|
@@ -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;
|
|
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;AAOjE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmSlC,CAAC"}
|