@cyanheads/usaspending-mcp-server 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +29 -14
- package/changelog/0.7.x/0.7.3.md +29 -0
- package/changelog/0.7.x/0.7.4.md +35 -0
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/agency-filters.d.ts +40 -0
- package/dist/mcp-server/tools/definitions/agency-filters.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/agency-filters.js +125 -0
- package/dist/mcp-server/tools/definitions/agency-filters.js.map +1 -0
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.d.ts +5 -1
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.js +60 -15
- package/dist/mcp-server/tools/definitions/autocomplete-filters.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dates.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/dates.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/dates.js +2 -0
- package/dist/mcp-server/tools/definitions/dates.js.map +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js +4 -4
- package/dist/mcp-server/tools/definitions/disaster-spending.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.d.ts +78 -14
- package/dist/mcp-server/tools/definitions/filters.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/filters.js +117 -18
- package/dist/mcp-server/tools/definitions/filters.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js +35 -13
- package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js +3 -6
- package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts +17 -0
- package/dist/mcp-server/tools/definitions/get-award.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-award.tool.js +122 -17
- package/dist/mcp-server/tools/definitions/get-award.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js +20 -10
- package/dist/mcp-server/tools/definitions/get-recipient.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +72 -11
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/locations.d.ts +15 -1
- package/dist/mcp-server/tools/definitions/locations.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/locations.js +31 -11
- package/dist/mcp-server/tools/definitions/locations.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +34 -5
- package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-awards.tool.js +211 -89
- package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js +9 -5
- package/dist/mcp-server/tools/definitions/search-recipients.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts +5 -2
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.js +26 -17
- package/dist/mcp-server/tools/definitions/spending-by-category.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts +5 -2
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js +22 -18
- package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts +4 -2
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js +13 -14
- package/dist/mcp-server/tools/definitions/spending-over-time.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.d.ts +3 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/unavailable-sections.js +9 -3
- package/dist/mcp-server/tools/definitions/unavailable-sections.js.map +1 -1
- package/dist/services/usaspending/types.d.ts +29 -2
- package/dist/services/usaspending/types.d.ts.map +1 -1
- package/dist/services/usaspending/types.js.map +1 -1
- package/dist/services/usaspending/usaspending-service.d.ts +36 -10
- package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
- package/dist/services/usaspending/usaspending-service.js +110 -33
- package/dist/services/usaspending/usaspending-service.js.map +1 -1
- package/package.json +5 -5
- package/server.json +3 -3
- package/skills/usaspending-guide/SKILL.md +10 -4
package/server.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/usaspending-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.7.
|
|
9
|
+
"version": "0.7.4",
|
|
10
10
|
"remotes": [
|
|
11
11
|
{
|
|
12
12
|
"type": "streamable-http",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
20
20
|
"identifier": "@cyanheads/usaspending-mcp-server",
|
|
21
21
|
"runtimeHint": "npx",
|
|
22
|
-
"version": "0.7.
|
|
22
|
+
"version": "0.7.4",
|
|
23
23
|
"environmentVariables": [
|
|
24
24
|
{
|
|
25
25
|
"name": "MCP_LOG_LEVEL",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
39
39
|
"identifier": "@cyanheads/usaspending-mcp-server",
|
|
40
40
|
"runtimeHint": "npx",
|
|
41
|
-
"version": "0.7.
|
|
41
|
+
"version": "0.7.4",
|
|
42
42
|
"environmentVariables": [
|
|
43
43
|
{
|
|
44
44
|
"name": "MCP_TRANSPORT_TYPE",
|
|
@@ -4,7 +4,7 @@ description: Use with usaspending_* tools to trace federal awards through recipi
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: "cyanheads"
|
|
7
|
-
version: "1.
|
|
7
|
+
version: "1.4"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## Scope
|
|
@@ -21,17 +21,23 @@ Preserve identifiers returned at each hop rather than constructing them from dis
|
|
|
21
21
|
|
|
22
22
|
## Gates
|
|
23
23
|
|
|
24
|
-
Before comparing amounts across tools, fix the award types, period, recipient hierarchy, geographic scope, and measure being compared. Search and time series default to contracts; an unfiltered geography query covers every award type. Do not compare their defaults as if they describe the same population.
|
|
24
|
+
Before comparing amounts across tools, fix the award types, period, recipient hierarchy, geographic scope, and measure being compared. Search and time series default to contracts; an unfiltered geography query covers every award type. Do not compare their defaults as if they describe the same population. A contracts search says nothing about grants or loans: use the `matches_by_group` counts and the notice naming the other groups with matches and their `award_type_codes` as the cross-group check. A filter only some groups carry (NAICS, PSC, the contract filters, assistance listings) zeroes the others, and a partial `award_type_codes` selection can leave `page_metadata.total` below its group's `matches_by_group` entry.
|
|
25
25
|
|
|
26
26
|
Before treating an empty ID-keyed listing as evidence of no activity, confirm the award or account with its detail tool. A nonexistent ID can also return an empty listing. Check pagination and response notices before describing any result as exhaustive.
|
|
27
27
|
|
|
28
|
+
Before interpreting an agency-filtered zero, check whether the response verified the agency name. An unresolved-name notice means zero spending does not establish that the agency had no activity; use the agency lookup to confirm the intended name. The awarding and funding roles resolve in separate directories: confirm `agency_name` with usaspending_autocomplete_filters `type=awarding_agency` and `funding_agency_name` with `type=funding_agency`, never one role's match in the other.
|
|
29
|
+
|
|
30
|
+
Before reading a contract-filter zero (`extent_competed_type_codes`, `set_aside_type_codes`, `contract_pricing_type_codes` on usaspending_search_awards), remember the codes are free FPDS strings and an unknown or misspelled one matches nothing without an error. Take them from the `competition` and `contract_pricing` codes of usaspending_get_award, and check the echoed `applied_*` codes. Contracts and IDVs only; most recent contracts carry no set-aside code at all.
|
|
31
|
+
|
|
28
32
|
Before attributing a matching award's amount to an Assistance Listing or DEF code, inspect the award's listing obligations or DEF funding breakdown. These filters select matching awards; the returned whole-award amount is not the requested listing's or code's share.
|
|
29
33
|
|
|
30
34
|
## Workflows
|
|
31
35
|
|
|
32
36
|
### Investigate a recipient
|
|
33
37
|
|
|
34
|
-
Resolve the organization with usaspending_search_recipients and inspect its profile before choosing a parent, child, or standalone entity. For
|
|
38
|
+
Resolve the organization with usaspending_search_recipients and inspect its profile before choosing a parent, child, or standalone entity. For the entity's own awards, carry the returned child (`-C`) or standalone (`-R`) ID into usaspending_spending_over_time and explicitly select award types. These roles depend on the parent recorded with each award; check both when search returns both, and never construct one ID by changing another's suffix. A parent (`-P`) ID covers awards attributed to that parent, whose historical attribution can change.
|
|
39
|
+
|
|
40
|
+
Recipient search amounts are precomputed trailing-12-month obligations and can differ from the profile's live totals. The profile covers every award type and defaults to the trailing 12 months; select a fiscal year for annual comparisons or all fiscal years for USAspending's available recipient history.
|
|
35
41
|
|
|
36
42
|
Use usaspending_search_awards to discover individual awards by recipient name; each row's `recipient_id` opens usaspending_get_recipient, so inspect the identity there. Name matching is partial and cannot substitute for the analytics tools' exact recipient hash when reconciling an entity's totals.
|
|
37
43
|
|
|
@@ -51,7 +57,7 @@ For a named area absent from a ranked geography result, resolve its code and sel
|
|
|
51
57
|
|
|
52
58
|
### Reconcile emergency funding
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
Resolve the appropriation's title or public law to DEF codes with usaspending_autocomplete_filters, then keep those codes fixed across breakdowns. The reference lookup is independent of whether one agency reports spending under a code in a particular year. Use the agency breakdown's total-spending view when the question includes direct non-award spending. Recipient and program breakdowns do not gain that coverage by requesting total spending, and geography reports obligations; their sums cannot stand in for the agency total-spending view.
|
|
55
61
|
|
|
56
62
|
Check amount_coverage before interpreting any monetary value. Award breakdowns and geography aggregate only the provider's COVID DEF grouping; other codes can still add matching rows and award counts. Partial coverage means the amounts exclude unsupported codes; unavailable coverage means retained zeros cannot establish zero spending. Unknown coverage means the reference could not be verified. Overview and agency total cover all requested codes. General category/geography DEF filters offer whole matching award amounts, not the DEF-funded share.
|
|
57
63
|
|