@cyanheads/usaspending-mcp-server 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +16 -6
- package/CLAUDE.md +16 -6
- package/Dockerfile +4 -0
- package/README.md +39 -119
- package/changelog/0.7.x/0.7.0.md +29 -0
- package/changelog/0.7.x/0.7.1.md +26 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts +11 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js +86 -22
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.d.ts +12 -0
- package/dist/mcp-server/tools/definitions/filters.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.js +59 -0
- package/dist/mcp-server/tools/definitions/filters.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js +10 -3
- package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-idv-awards.tool.d.ts +11 -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 +11 -1
- package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js +2 -2
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +93 -2
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/list-agencies.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/list-agencies.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +12 -0
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.js +30 -7
- package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js +1 -1
- 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 +19 -0
- 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 +47 -7
- 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 +19 -0
- 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 +44 -7
- 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 +21 -0
- 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 +63 -10
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js.map +1 -1
- package/dist/services/usaspending/types.d.ts +14 -0
- package/dist/services/usaspending/types.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.d.ts +10 -6
- package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.js +94 -16
- package/dist/services/usaspending/usaspending-service.js.map +1 -1
- package/package.json +8 -7
- package/server.json +3 -3
- package/skills/usaspending-guide/SKILL.md +56 -0
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.7.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
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.
|
|
@@ -277,9 +277,18 @@ src/
|
|
|
277
277
|
|
|
278
278
|
## Skills
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
Two skill trees live at the project root, written for different readers:
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
| Tree | For | Written by |
|
|
283
|
+
|:-----|:----|:-----------|
|
|
284
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
285
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
286
|
+
|
|
287
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
288
|
+
|
|
289
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
290
|
+
|
|
291
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
283
292
|
|
|
284
293
|
Available skills:
|
|
285
294
|
|
|
@@ -291,6 +300,7 @@ Available skills:
|
|
|
291
300
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
292
301
|
| `add-resource` | Scaffold a new resource definition |
|
|
293
302
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
303
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
294
304
|
| `add-service` | Scaffold a new service integration |
|
|
295
305
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
296
306
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -356,7 +366,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
356
366
|
|
|
357
367
|
## Bundling
|
|
358
368
|
|
|
359
|
-
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
369
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
360
370
|
|
|
361
371
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
362
372
|
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.7.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
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.
|
|
@@ -277,9 +277,18 @@ src/
|
|
|
277
277
|
|
|
278
278
|
## Skills
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
Two skill trees live at the project root, written for different readers:
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
| Tree | For | Written by |
|
|
283
|
+
|:-----|:----|:-----------|
|
|
284
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
285
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
286
|
+
|
|
287
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
288
|
+
|
|
289
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
290
|
+
|
|
291
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
283
292
|
|
|
284
293
|
Available skills:
|
|
285
294
|
|
|
@@ -291,6 +300,7 @@ Available skills:
|
|
|
291
300
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
292
301
|
| `add-resource` | Scaffold a new resource definition |
|
|
293
302
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
303
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
294
304
|
| `add-service` | Scaffold a new service integration |
|
|
295
305
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
296
306
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -356,7 +366,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
356
366
|
|
|
357
367
|
## Bundling
|
|
358
368
|
|
|
359
|
-
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
369
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
360
370
|
|
|
361
371
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
362
372
|
|
package/Dockerfile
CHANGED
|
@@ -29,6 +29,9 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
|
29
29
|
# Copy the rest of the source code
|
|
30
30
|
COPY . .
|
|
31
31
|
|
|
32
|
+
# Published skills are optional; keep the runtime copy valid when absent.
|
|
33
|
+
RUN mkdir -p skills
|
|
34
|
+
|
|
32
35
|
# Build the application
|
|
33
36
|
RUN bun run build
|
|
34
37
|
|
|
@@ -136,6 +139,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
|
|
|
136
139
|
|
|
137
140
|
# Copy the compiled application code from the build stage
|
|
138
141
|
COPY --from=build /usr/src/app/dist ./dist
|
|
142
|
+
COPY --from=build /usr/src/app/skills ./skills
|
|
139
143
|
|
|
140
144
|
# The 'oven/bun' image already provides a non-root user named 'bun'.
|
|
141
145
|
# We will use this existing user for enhanced security.
|
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
|
|
|
@@ -54,6 +54,10 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
54
54
|
| `usaspending_get_federal_account` | Fetch a federal account's budget totals and its Treasury Account Symbol components |
|
|
55
55
|
| `usaspending_get_federal_account_breakdown` | Break a federal account's obligations down by program activity or object class |
|
|
56
56
|
|
|
57
|
+
### Research guide
|
|
58
|
+
|
|
59
|
+
The [usaspending-guide](./skills/usaspending-guide/SKILL.md) covers recipient research, award-to-account funding traces, and spending comparisons across periods and emergency appropriations. Plugin installs discover it in `skills/`; MCP clients can read `skill://usaspending-guide/SKILL.md` through the Skills extension. There are no domain-data resources.
|
|
60
|
+
|
|
57
61
|
## Capability reference
|
|
58
62
|
|
|
59
63
|
### `usaspending_list_agencies` <sub>tool</sub>
|
|
@@ -74,9 +78,18 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
74
78
|
|
|
75
79
|
### `usaspending_search_awards` <sub>tool</sub>
|
|
76
80
|
|
|
77
|
-
- Filters:
|
|
81
|
+
- Filters:
|
|
82
|
+
- `keyword`, `agency_name`, `recipient_name`, `naics_codes`
|
|
83
|
+
- `assistance_listings`: Assistance Listing numbers such as `93.866`, from `usaspending_autocomplete_filters` `type: cfda`
|
|
84
|
+
- `psc_codes`: 1–4 characters, where a prefix such as `Y1` covers the codes under it; contracts and IDVs only
|
|
85
|
+
- `def_codes`: Disaster Emergency Fund Codes such as `Z` (PSC and DEF codes are sent uppercased)
|
|
86
|
+
- `time_period`: `YYYY-MM-DD` from 2007-10-01 on; either end may be given alone
|
|
87
|
+
- `location_filter`: `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`
|
|
88
|
+
- `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`
|
|
89
|
+
- `limit`: up to 100
|
|
78
90
|
- 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)
|
|
79
91
|
- `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
|
|
92
|
+
- 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`
|
|
80
93
|
|
|
81
94
|
---
|
|
82
95
|
|
|
@@ -114,6 +127,7 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
114
127
|
### `usaspending_get_idv_awards` <sub>tool</sub>
|
|
115
128
|
|
|
116
129
|
- Parent IDV `award_id`; `type` is `child_awards` (task and delivery orders, the default), `child_idvs`, or `grandchild_awards`; `limit` up to 100
|
|
130
|
+
- `sort` is `obligated_amount` (default), `award_type`, `description`, `funding_agency`, `awarding_agency`, `last_date_to_order`, `period_of_performance_current_end_date`, `period_of_performance_start_date`, or `piid`
|
|
117
131
|
- Rows carry `generated_unique_award_id` for `usaspending_get_award`, `obligated_amount`, and performance dates; there is no total, and `has_next` is true on any full page
|
|
118
132
|
|
|
119
133
|
---
|
|
@@ -134,7 +148,7 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
134
148
|
|
|
135
149
|
### `usaspending_get_agency` <sub>tool</sub>
|
|
136
150
|
|
|
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`
|
|
151
|
+
- 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`
|
|
138
152
|
- 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
153
|
- 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
|
|
140
154
|
|
|
@@ -144,6 +158,7 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
144
158
|
|
|
145
159
|
- `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
160
|
- 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
|
|
161
|
+
- 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
|
|
147
162
|
- 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
163
|
- `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`
|
|
149
164
|
- With no filters, every award type is aggregated and `applied_award_type_default` says so; `subawards: true` switches to subaward data
|
|
@@ -161,6 +176,7 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
161
176
|
|
|
162
177
|
- `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
|
|
163
178
|
- Rows carry `time_period`, `aggregated_amount`, and per-type `contracts`, `grants`, `direct_payments`, `idvs`, `loans`, and `other`
|
|
179
|
+
- `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
|
|
164
180
|
|
|
165
181
|
---
|
|
166
182
|
|
|
@@ -169,13 +185,15 @@ Where federal money goes, from USAspending.gov: awards, recipients, agencies, an
|
|
|
169
185
|
- `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
186
|
- 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
187
|
- 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
|
|
188
|
+
- `amount_coverage.status` is `complete`, `partial`, `unavailable`, or `unknown`, with requested `supported_def_codes` and `unsupported_def_codes` when known. Award breakdowns and geography use the provider's COVID-19 grouping for amounts; matching rows and counts may cover other codes. Overview and agency `spending_type: total` cover all requested codes. Retained zeros outside monetary coverage do not mean zero actual spending; an unavailable reference leaves coverage `unknown` without discarding the primary data
|
|
189
|
+
- Agency, CFDA, and recipient rows rank by obligation before paging. Agency award queries without award-type filters collect the upstream result set before sorting because that upstream path sorts only within a page; the page walk and amount-coverage lookup share one deadline of at most 45 seconds
|
|
172
190
|
- 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
|
|
173
191
|
|
|
174
192
|
---
|
|
175
193
|
|
|
176
194
|
### `usaspending_search_federal_accounts` <sub>tool</sub>
|
|
177
195
|
|
|
178
|
-
- Optional `keyword` and
|
|
196
|
+
- Optional `keyword` and `agency_identifier`, using the directory `toptier_code` from `usaspending_list_agencies` (e.g. `1601` for Labor). This input differs from the account-prefix `agency_identifier` in returned rows (`016` for Labor). `sort_field` is `account_name`, `account_number`, `budgetary_resources` (default), or `managing_agency`; `limit` up to 100
|
|
179
197
|
- Rows carry `account_number` (e.g. `097-8097`) for the federal-account tools, `managing_agency`, and `budgetary_resources`; `page_metadata.count` is the total. Optional `fiscal_year` selects the reporting year; otherwise the provider uses its latest submission year. The returned `fiscal_year` identifies that period
|
|
180
198
|
|
|
181
199
|
---
|
|
@@ -215,137 +233,32 @@ Agent-friendly output:
|
|
|
215
233
|
|
|
216
234
|
## Getting started
|
|
217
235
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
A public instance is available at `https://usaspending.caseyjhand.com/mcp` — no installation required. It serves Streamable HTTP; each client takes its own config shape.
|
|
221
|
-
|
|
222
|
-
For Claude Code:
|
|
236
|
+
Connect to the hosted instance, no install:
|
|
223
237
|
|
|
224
238
|
```sh
|
|
225
239
|
claude mcp add --transport http usaspending-mcp-server https://usaspending.caseyjhand.com/mcp
|
|
226
240
|
```
|
|
227
241
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
```json
|
|
231
|
-
{
|
|
232
|
-
"mcpServers": {
|
|
233
|
-
"usaspending-mcp-server": {
|
|
234
|
-
"type": "streamableHttp",
|
|
235
|
-
"url": "https://usaspending.caseyjhand.com/mcp"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
For Cursor (`mcp.json`):
|
|
242
|
-
|
|
243
|
-
```json
|
|
244
|
-
{
|
|
245
|
-
"mcpServers": {
|
|
246
|
-
"usaspending-mcp-server": {
|
|
247
|
-
"url": "https://usaspending.caseyjhand.com/mcp"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
Claude Desktop adds remote servers under Settings → Connectors.
|
|
254
|
-
|
|
255
|
-
### Self-Hosted / Local
|
|
242
|
+
Or run it locally:
|
|
256
243
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
```json
|
|
260
|
-
{
|
|
261
|
-
"mcpServers": {
|
|
262
|
-
"usaspending-mcp-server": {
|
|
263
|
-
"type": "stdio",
|
|
264
|
-
"command": "bunx",
|
|
265
|
-
"args": ["@cyanheads/usaspending-mcp-server@latest"],
|
|
266
|
-
"env": {
|
|
267
|
-
"MCP_TRANSPORT_TYPE": "stdio",
|
|
268
|
-
"MCP_LOG_LEVEL": "info"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
244
|
+
```sh
|
|
245
|
+
claude mcp add usaspending-mcp-server -- npx -y @cyanheads/usaspending-mcp-server
|
|
273
246
|
```
|
|
274
247
|
|
|
275
|
-
|
|
248
|
+
For other clients, add this to the MCP config file:
|
|
276
249
|
|
|
277
250
|
```json
|
|
278
251
|
{
|
|
279
252
|
"mcpServers": {
|
|
280
253
|
"usaspending-mcp-server": {
|
|
281
|
-
"type": "stdio",
|
|
282
254
|
"command": "npx",
|
|
283
|
-
"args": ["-y", "@cyanheads/usaspending-mcp-server
|
|
284
|
-
"env": {
|
|
285
|
-
"MCP_TRANSPORT_TYPE": "stdio",
|
|
286
|
-
"MCP_LOG_LEVEL": "info"
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
Or with Docker:
|
|
294
|
-
|
|
295
|
-
```json
|
|
296
|
-
{
|
|
297
|
-
"mcpServers": {
|
|
298
|
-
"usaspending-mcp-server": {
|
|
299
|
-
"type": "stdio",
|
|
300
|
-
"command": "docker",
|
|
301
|
-
"args": [
|
|
302
|
-
"run", "-i", "--rm",
|
|
303
|
-
"-e", "MCP_TRANSPORT_TYPE=stdio",
|
|
304
|
-
"ghcr.io/cyanheads/usaspending-mcp-server:latest"
|
|
305
|
-
]
|
|
255
|
+
"args": ["-y", "@cyanheads/usaspending-mcp-server"]
|
|
306
256
|
}
|
|
307
257
|
}
|
|
308
258
|
}
|
|
309
259
|
```
|
|
310
260
|
|
|
311
|
-
For
|
|
312
|
-
|
|
313
|
-
```sh
|
|
314
|
-
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
315
|
-
# Server listens at http://localhost:3010/mcp
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
### Prerequisites
|
|
319
|
-
|
|
320
|
-
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
321
|
-
- No API key or account: USAspending.gov is open to anonymous requests.
|
|
322
|
-
|
|
323
|
-
### Installation
|
|
324
|
-
|
|
325
|
-
1. **Clone the repository:**
|
|
326
|
-
|
|
327
|
-
```sh
|
|
328
|
-
git clone https://github.com/cyanheads/usaspending-mcp-server.git
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
2. **Navigate into the directory:**
|
|
332
|
-
|
|
333
|
-
```sh
|
|
334
|
-
cd usaspending-mcp-server
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
3. **Install dependencies:**
|
|
338
|
-
|
|
339
|
-
```sh
|
|
340
|
-
bun install
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
4. **Configure environment (optional):**
|
|
344
|
-
|
|
345
|
-
```sh
|
|
346
|
-
cp .env.example .env
|
|
347
|
-
# edit .env if you need to override defaults
|
|
348
|
-
```
|
|
261
|
+
No API key or account is required. For Docker or a source build, see [Running the server](#running-the-server).
|
|
349
262
|
|
|
350
263
|
## Configuration
|
|
351
264
|
|
|
@@ -373,6 +286,14 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
|
373
286
|
|
|
374
287
|
### Local development
|
|
375
288
|
|
|
289
|
+
Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+). No API key or account is required.
|
|
290
|
+
|
|
291
|
+
```sh
|
|
292
|
+
git clone https://github.com/cyanheads/usaspending-mcp-server.git
|
|
293
|
+
cd usaspending-mcp-server && bun install
|
|
294
|
+
cp .env.example .env # optional overrides
|
|
295
|
+
```
|
|
296
|
+
|
|
376
297
|
- **Build and run:**
|
|
377
298
|
|
|
378
299
|
```sh
|
|
@@ -396,11 +317,10 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
|
396
317
|
### Docker
|
|
397
318
|
|
|
398
319
|
```sh
|
|
399
|
-
docker
|
|
400
|
-
docker run --rm -p 3010:3010 usaspending-mcp-server
|
|
320
|
+
docker run --rm -p 3010:3010 ghcr.io/cyanheads/usaspending-mcp-server:latest
|
|
401
321
|
```
|
|
402
322
|
|
|
403
|
-
The
|
|
323
|
+
The image defaults to HTTP transport, stateless session mode, and logs to `/var/log/usaspending-mcp-server`. For stdio, use `"command": "docker"` with `"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/usaspending-mcp-server:latest"]`. Build locally with `docker build -t usaspending-mcp-server .`; OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.
|
|
404
324
|
|
|
405
325
|
## Project structure
|
|
406
326
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Publish a federal spending research guide over MCP and adopt mcp-ts-core 0.13.18 with HTTP request cleanup and literal enrichment rendering."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.0 — 2026-10-25
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- Add the `usaspending-guide` skill as the `skill://usaspending-guide/SKILL.md` MCP resource for award, recipient, and funding-account research.
|
|
12
|
+
- **Guide delivery** includes npm, Docker, MCPB, and plugin installations; root `plugin.json` and `mcp.json` support Agent Plugins clients.
|
|
13
|
+
|
|
14
|
+
## Changed
|
|
15
|
+
|
|
16
|
+
- **Framework behavior** adopts mcp-ts-core 0.13.17 HTTP request cleanup and 0.13.18 code-literal rendering for applied-query and DEF-code enrichment.
|
|
17
|
+
- **Packaging and development guidance** sync framework scripts and skills, validate published skills and plugin manifests, exclude build-only bundle paths, and set the dependency minimum release age to one day.
|
|
18
|
+
- **Getting started** leads with hosted and local connection commands and moves Docker and source instructions to Running the server.
|
|
19
|
+
|
|
20
|
+
## Fixed
|
|
21
|
+
|
|
22
|
+
- **MCPB cleaning** removes package-root agent documentation while retaining runtime modules such as the MCP SDK's `dist/ext/skills`; regression tests cover scoped and nested dependencies.
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- `@cyanheads/mcp-ts-core` ^0.13.16 → ^0.13.18
|
|
27
|
+
- `@biomejs/biome` ^2.6.2 → ^2.6.3
|
|
28
|
+
- `ignore` ^7.0.13 → ^7.0.14
|
|
29
|
+
- `tsc-alias` ^1.9.8 → ^1.9.9
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Disclose federal spending scope and correct disaster ranking and effective input validation."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.7.1 — 2026-11-03
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`usaspending-guide` 1.0 → 1.1** explains disaster monetary coverage and ranking before pagination.
|
|
12
|
+
|
|
13
|
+
## Fixed
|
|
14
|
+
|
|
15
|
+
- **Time-series scope** echoes effective award types and discloses the contract default; breakdown zeros apply only within that selection. ([#105](https://github.com/cyanheads/usaspending-mcp-server/issues/105))
|
|
16
|
+
- **Disaster amount coverage** distinguishes complete, partial, unavailable, and unknown monetary scope from matching rows and counts; reference failures retain the primary response. ([#106](https://github.com/cyanheads/usaspending-mcp-server/issues/106))
|
|
17
|
+
- **Disaster ranking** orders obligations before pagination, collecting all agency award pages when required under one shared deadline of at most 45 seconds. ([#107](https://github.com/cyanheads/usaspending-mcp-server/issues/107))
|
|
18
|
+
- **Analytics recipient filters** reject malformed hashes, normalize hexadecimal case, and echo the applied recipient ID. ([#115](https://github.com/cyanheads/usaspending-mcp-server/issues/115))
|
|
19
|
+
- **Effective input validation** checks merged keywords and NAICS codes, normalizes numeric NAICS aliases and disaster DEF codes, advertises supported IDV sorts, and pads short agency codes while preserving four-digit identifiers. ([#116](https://github.com/cyanheads/usaspending-mcp-server/issues/116))
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
- **`@biomejs/biome`** ^2.6.3 → ^2.6.4
|
|
24
|
+
- **`@types/node`** ^26.6.5 → ^26.6.6
|
|
25
|
+
- **`tsc-alias`** ^1.9.9 → ^1.9.10
|
|
26
|
+
- **`vitest`** ^5.0.5 → ^5.1.0
|
package/dist/index.js
CHANGED
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,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"}
|
|
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,MAAM,EAAE,QAAQ;IAChB,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"}
|
|
@@ -29,6 +29,16 @@ export declare const disasterSpendingTool: import("@cyanheads/mcp-ts-core").Tool
|
|
|
29
29
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
30
30
|
page: z.ZodDefault<z.ZodNumber>;
|
|
31
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
amount_coverage: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
status: z.ZodEnum<{
|
|
34
|
+
complete: "complete";
|
|
35
|
+
partial: "partial";
|
|
36
|
+
unavailable: "unavailable";
|
|
37
|
+
unknown: "unknown";
|
|
38
|
+
}>;
|
|
39
|
+
supported_def_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
unsupported_def_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
32
42
|
dimension: z.ZodString;
|
|
33
43
|
spending_type: z.ZodString;
|
|
34
44
|
overview: z.ZodOptional<z.ZodObject<{
|
|
@@ -92,7 +102,7 @@ export declare const disasterSpendingTool: import("@cyanheads/mcp-ts-core").Tool
|
|
|
92
102
|
readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
|
|
93
103
|
readonly retryable: true;
|
|
94
104
|
readonly thrownBy: "service";
|
|
95
|
-
readonly recovery: "By dimension — agency, cfda, recipient: pass fewer filters.def_codes or a smaller limit, then retry. geography: pass fewer filters.def_codes, then retry. overview: narrow with optional filters.def_codes; filtered requests can still time out, so retry later, or call dimension \"agency\" with filters.def_codes (e.g. [\"L\"
|
|
105
|
+
readonly recovery: "By dimension — agency award without filters.award_type_codes: pass fewer filters.def_codes or retry later; all provider pages must be collected before ranking, so a smaller limit does not reduce that work. agency total, agency award with filters.award_type_codes, cfda, recipient: pass fewer filters.def_codes or a smaller limit, then retry. geography: pass fewer filters.def_codes, then retry. overview: narrow with optional filters.def_codes; filtered requests can still time out, so retry later, or call dimension \"agency\" with filters.def_codes (e.g. [\"L\"]), spending_type \"total\", and limit 100 for per-agency obligations and outlays plus overall totals.";
|
|
96
106
|
}], {
|
|
97
107
|
readonly applied_dimension: z.ZodString;
|
|
98
108
|
readonly applied_def_codes: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disaster-spending.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/disaster-spending.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":"disaster-spending.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/disaster-spending.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4FjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4mB/B,CAAC"}
|