@cyanheads/usaspending-mcp-server 0.2.4 → 0.2.6

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.
Files changed (29) hide show
  1. package/CLAUDE.md +1 -1
  2. package/README.md +8 -6
  3. package/changelog/0.2.x/0.2.5.md +27 -0
  4. package/changelog/0.2.x/0.2.6.md +24 -0
  5. package/dist/mcp-server/tools/definitions/autocomplete.tool.d.ts +2 -0
  6. package/dist/mcp-server/tools/definitions/autocomplete.tool.d.ts.map +1 -1
  7. package/dist/mcp-server/tools/definitions/autocomplete.tool.js +21 -8
  8. package/dist/mcp-server/tools/definitions/autocomplete.tool.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.d.ts.map +1 -1
  10. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js +15 -6
  11. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/index.d.ts +36 -12
  13. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +24 -2
  15. package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/search-awards.tool.js +198 -46
  17. package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
  18. package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts +10 -10
  19. package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/definitions/search-recipients.tool.js +56 -49
  21. package/dist/mcp-server/tools/definitions/search-recipients.tool.js.map +1 -1
  22. package/dist/services/usaspending/types.d.ts +28 -14
  23. package/dist/services/usaspending/types.d.ts.map +1 -1
  24. package/dist/services/usaspending/usaspending-service.d.ts +7 -3
  25. package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
  26. package/dist/services/usaspending/usaspending-service.js +3 -4
  27. package/dist/services/usaspending/usaspending-service.js.map +1 -1
  28. package/package.json +1 -1
  29. package/server.json +3 -3
package/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** usaspending-mcp-server
4
- **Version:** 0.2.4
4
+ **Version:** 0.2.6
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.10.14`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.2.4-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/usaspending-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/usaspending-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/usaspending-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.14-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.2.6-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/usaspending-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/usaspending-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/usaspending-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.14-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -38,7 +38,7 @@
38
38
  | `usaspending_get_idv_awards` | List child contracts and task/delivery orders placed under an IDV award. Each row includes a `generated_unique_award_id` for chaining into `usaspending_get_award`. |
39
39
  | `usaspending_get_award_transactions` | List individual transactions (modifications, amendments) on an award. Reveals spending history and obligation changes over time. |
40
40
  | `usaspending_get_award_subawards` | List subaward contracts or grants under a prime award. Reveals the sub-contractor or sub-grantee layer — who actually does the work. |
41
- | `usaspending_search_recipients` | Search for organizations receiving federal funds by name or UEI. Returns recipient IDs, total award amounts, and business type classifications. |
41
+ | `usaspending_search_recipients` | Search for organizations receiving federal funds by name, UEI, or DUNS. Returns recipient hash IDs, UEI/DUNS, total award amounts, and hierarchy level. Paginated — page through with `page`; `page_metadata.total` reports the full match count. |
42
42
  | `usaspending_get_recipient` | Fetch a recipient's profile: address, business types, parent organization, alternate names, and total award amounts by type. |
43
43
  | `usaspending_get_agency` | Fetch an agency's fiscal year overview: mission, budget authority, obligation totals, sub-agency count, and DEF codes. Accepts a 3-digit `toptier_code` or an `agency_slug` from award search results. |
44
44
  | `usaspending_spending_by_geography` | Aggregate federal spending by state, county, or congressional district. Returns per-capita figures when combined with population data. |
@@ -56,9 +56,9 @@ Search for federal awards across contracts, grants, loans, direct payments, and
56
56
 
57
57
  - Full-text keyword search across award descriptions, recipient names, and locations
58
58
  - Filter by award type codes (`A/B/C/D` = contracts, `02/03/04/05` = grants, `06/10` = direct payments, `07/08` = loans, `IDV_*` = IDVs)
59
- - Filter by awarding or funding agency (toptier or subtier), recipient name or ID, NAICS code, PSC code, and place of performance
59
+ - Filter by awarding or funding agency (toptier or subtier), recipient name, NAICS code, and place of performance
60
60
  - Date range filtering — earliest 2007-10-01 via search API
61
- - Pagination via `limit` (max 100) and `page`; `page_metadata.hasNext` signals more results
61
+ - Pagination via `limit` (max 100) and `page`; `page_metadata.hasNext` signals more results. Page-number paging caps at a 50,000-result offset (`page` × `limit`) — past that, continue with keyset pagination using the `last_record_sort_value` + `last_record_unique_id` cursor returned on every page
62
62
  - Returns `generated_internal_id` for chaining to `usaspending_get_award` and `agency_slug` for chaining to `usaspending_get_agency`
63
63
 
64
64
  ---
@@ -109,10 +109,11 @@ List subawards under a prime contract or grant.
109
109
 
110
110
  ### `usaspending_search_recipients`
111
111
 
112
- Search for organizations receiving federal funds by name or UEI.
112
+ Search for organizations receiving federal funds by name, UEI, or DUNS.
113
113
 
114
114
  - Returns recipient IDs (UUID hashes with level suffix: `-P` parent, `-C` child, `-R` root), UEI, DUNS, name, recipient level, and total award amount
115
115
  - `results[].id` chains to `usaspending_get_recipient`; `uei` and `duns` chain to SAM.gov or SEC EDGAR
116
+ - Paginated via `limit` (max 100) and `page`; `page_metadata` reports `total`, `page`, and `has_next` — page through to reach matches beyond the first page
116
117
 
117
118
  ---
118
119
 
@@ -216,8 +217,9 @@ List all top-tier federal agencies.
216
217
  Discover valid code values for award filter fields.
217
218
 
218
219
  - `type` enum selects the lookup: `naics`, `psc`, `cfda`, `awarding_agency`, or `recipient`
219
- - Returns matching codes and names — use before filtering to find the right code when you only know a description (e.g., "cybersecurity" → NAICS code)
220
+ - Returns matching codes and names — use before filtering to find the right code when you only know a description (e.g., "cybersecurity" → NAICS code); `recipient` matches also carry `uei`/`duns`
220
221
  - Consolidates five autocomplete endpoints into one tool
222
+ - `limit` accepts 1–500 (the `recipient` lookup enforces an upstream max of 500; the other four return only their matching entries)
221
223
 
222
224
  ## Features
223
225
 
@@ -0,0 +1,27 @@
1
+ ---
2
+ summary: "usaspending_search_awards gains a nested filters object mirroring the analytics tools, an agency_slug chaining field, and keyset-cursor pagination past the endpoint's 50,000-result window, plus a fix for a crash on any search's terminal page."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.5 — 2026-07-16
8
+
9
+ Four `usaspending_search_awards` fixes: a nested `filters` object, the `agency_slug` chaining field, keyset-cursor pagination past the endpoint's 50,000-result window, and a crash fix on the last page of any search.
10
+
11
+ ## Added
12
+
13
+ - **`usaspending_search_awards` accepts a nested `filters` object** — mirrors the analytics-tool shape (`keywords`, `award_type_codes`, `agency_name`, `recipient_name`, `naics_codes`, `time_period_start`/`time_period_end`); per field, a nested value wins over its flat-input equivalent. `recipient_id` is intentionally excluded — `spending_by_award` silently ignores it. ([#21](https://github.com/cyanheads/usaspending-mcp-server/issues/21))
14
+ - **`agency_slug` in `usaspending_search_awards` results** — requested via `AWARD_SEARCH_FIELDS` and mapped into both `structuredContent` and `content[]` for chaining into `usaspending_get_agency`; absent (not `null`) when the agency has no profile page. ([#22](https://github.com/cyanheads/usaspending-mcp-server/issues/22))
15
+ - **Keyset-cursor pagination on `usaspending_search_awards`** — `last_record_sort_value` + `last_record_unique_id` accepted as input and returned in `page_metadata`, so callers can page past the endpoint's 50,000-result page-number boundary. A new `pagination_limit_exceeded` error fires when `page × limit` crosses that boundary without a cursor supplied. ([#37](https://github.com/cyanheads/usaspending-mcp-server/issues/37))
16
+ - **Upstream `messages` surfaced** — `usaspending_search_awards` reads the `messages` array `search/spending_by_award/` returns (e.g. an ignored filter) into an `upstream_messages` enrichment field, rendered as a bullet list in `content[]`. ([#21](https://github.com/cyanheads/usaspending-mcp-server/issues/21))
17
+ - **Page-based truncation disclosure** — `usaspending_search_awards` calls `ctx.enrich.truncated()` with `shown`/`cap` when a page is capped, since the endpoint returns no total count. ([#37](https://github.com/cyanheads/usaspending-mcp-server/issues/37))
18
+
19
+ ## Changed
20
+
21
+ - **`page_metadata.total` removed from `usaspending_search_awards`** — `spending_by_award` never populates it, confirmed across three live query shapes; the `totalCount` enrichment field is removed alongside it. ([#37](https://github.com/cyanheads/usaspending-mcp-server/issues/37))
22
+ - **`RawPageMetadata` cursor fields widened to `string | null` / `number | null`** — matches the upstream's literal terminal-page sentinels. ([#39](https://github.com/cyanheads/usaspending-mcp-server/issues/39))
23
+ - **`USASpendingService.searchAwards()` — `page` is now optional**, with new `last_record_sort_value?` / `last_record_unique_id?` params; page and cursor are mutually exclusive on the outgoing request. ([#37](https://github.com/cyanheads/usaspending-mcp-server/issues/37))
24
+
25
+ ## Fixed
26
+
27
+ - **Crash on the last page of any `usaspending_search_awards` call** — the upstream's terminal-page sentinels (`last_record_unique_id: null`, `last_record_sort_value: "None"`) passed a bare `!== undefined` check and failed the `z.number()` output schema, crashing routine searches — including zero-result ones — once they reached their last page. The cursor pair is now omitted unless `has_next` is true and both values are genuinely usable. ([#39](https://github.com/cyanheads/usaspending-mcp-server/issues/39))
@@ -0,0 +1,24 @@
1
+ ---
2
+ summary: "Fixes usaspending_get_idv_awards's false has_next hiding later pages, adds real pagination to usaspending_search_recipients, corrects usaspending_autocomplete's recipient field mapping, and raises its limit ceiling to 500."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.6 — 2026-07-16
8
+
9
+ Four fixes across recipient search and autocomplete: a stale IDV-awards continuation signal, missing recipient-search pagination, a broken recipient-autocomplete field mapping, and a limit ceiling too low for the endpoint it wraps.
10
+
11
+ ## Added
12
+
13
+ - **`usaspending_search_recipients` accepts a `page` input** — output gains `page_metadata` (`total`, `page`, `has_next`, `limit`), replacing the old cap-guessing truncation heuristic; recovery guidance at the max limit now points to the next page instead of suggesting an impossible limit increase. ([#24](https://github.com/cyanheads/usaspending-mcp-server/issues/24))
14
+ - **`usaspending_autocomplete`'s `recipient` type surfaces `uei` and `duns`** as independent optional output fields, each populated only when the search text matches that specific identifier. ([#25](https://github.com/cyanheads/usaspending-mcp-server/issues/25))
15
+
16
+ ## Changed
17
+
18
+ - **`usaspending_autocomplete`'s `limit` ceiling raised from 50 to 500** — matches the upstream `recipient` lookup's documented max; the other four lookup types (`naics`, `psc`, `cfda`, `awarding_agency`) have no documented ceiling and return only their matching entries regardless. ([#30](https://github.com/cyanheads/usaspending-mcp-server/issues/30))
19
+ - **`RawRecipientSearchResult`'s dead `location`/`state_province` fields removed** — confirmed against the live `POST /recipient/` endpoint to never populate. ([#24](https://github.com/cyanheads/usaspending-mcp-server/issues/24))
20
+
21
+ ## Fixed
22
+
23
+ - **`usaspending_get_idv_awards` no longer hides later pages behind a stale upstream `hasNext`** — `page_metadata.has_next`, `enrichment.has_next_page`, and the truncation notice now also fire whenever a page is full (`results.length >= limit`), not only when upstream `hasNext` is true; a short or empty page still marks the end. ([#23](https://github.com/cyanheads/usaspending-mcp-server/issues/23))
24
+ - **`usaspending_autocomplete`'s `recipient` type no longer renders matches as empty objects** — the handler read nonexistent `recipient_id`/`legal_business_name` fields; it now maps the live response's `recipient_name` to `name`. ([#25](https://github.com/cyanheads/usaspending-mcp-server/issues/25))
@@ -22,6 +22,8 @@ export declare const autocompleteTool: import("@cyanheads/mcp-ts-core").ToolDefi
22
22
  code: z.ZodOptional<z.ZodString>;
23
23
  name: z.ZodOptional<z.ZodString>;
24
24
  id: z.ZodOptional<z.ZodString>;
25
+ uei: z.ZodOptional<z.ZodString>;
26
+ duns: z.ZodOptional<z.ZodString>;
25
27
  }, z.core.$strip>>;
26
28
  total: z.ZodNumber;
27
29
  }, z.core.$strip>, readonly [{
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoK3B,CAAC"}
1
+ {"version":3,"file":"autocomplete.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuL3B,CAAC"}
@@ -8,7 +8,7 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
8
8
  import { getUSASpendingService } from '../../../services/usaspending/usaspending-service.js';
9
9
  export const autocompleteTool = tool('usaspending_autocomplete', {
10
10
  title: 'Autocomplete Codes and Names',
11
- description: 'Look up valid code values for filter fields by searching free-text descriptions. Use the type parameter to select the lookup table: naics (NAICS industry codes), psc (product/service codes), cfda (CFDA/Assistance Listing program numbers), awarding_agency (agency names and IDs), or recipient (recipient names and IDs). Call this before filtering awards when you know a description but not the exact code. Returns matching codes and names for use in other tool filters.',
11
+ description: 'Look up valid code values for filter fields by searching free-text descriptions. Use the type parameter to select the lookup table: naics (NAICS industry codes), psc (product/service codes), cfda (CFDA/Assistance Listing program numbers), awarding_agency (agency names and IDs), or recipient (recipient names with UEI/DUNS). Call this before filtering awards when you know a description but not the exact code. Returns matching codes and names for use in other tool filters.',
12
12
  annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
13
13
  input: z.object({
14
14
  type: z
@@ -22,9 +22,9 @@ export const autocompleteTool = tool('usaspending_autocomplete', {
22
22
  .number()
23
23
  .int()
24
24
  .min(1)
25
- .max(50)
25
+ .max(500)
26
26
  .default(10)
27
- .describe('Maximum number of results to return (1–50)'),
27
+ .describe('Maximum number of results to return (1–500). The recipient lookup enforces an upstream max of 500; naics/psc/cfda/awarding_agency return only their matching entries regardless.'),
28
28
  }),
29
29
  output: z.object({
30
30
  type: z.string().describe('Lookup table searched'),
@@ -40,9 +40,17 @@ export const autocompleteTool = tool('usaspending_autocomplete', {
40
40
  id: z
41
41
  .string()
42
42
  .optional()
43
- .describe('Numeric or string ID (for agency and recipient types)'),
43
+ .describe('Numeric or string ID (for the awarding_agency type)'),
44
+ uei: z
45
+ .string()
46
+ .optional()
47
+ .describe('Unique Entity Identifier (SAM.gov) — recipient type only; populated when the search text matches a UEI'),
48
+ duns: z
49
+ .string()
50
+ .optional()
51
+ .describe('DUNS number (legacy) — recipient type only; populated when the search text matches a DUNS'),
44
52
  })
45
- .describe('Matched code entry with optional code, name, and ID fields'))
53
+ .describe('Matched entry — code/name for code lookups, name plus optional UEI/DUNS for recipients'))
46
54
  .describe('Matching codes and names'),
47
55
  total: z.number().describe('Number of results returned'),
48
56
  }),
@@ -111,8 +119,9 @@ export const autocompleteTool = tool('usaspending_autocomplete', {
111
119
  // recipient
112
120
  const resp = await svc.autocompleteRecipient(input.search_text, input.limit, ctx);
113
121
  rawResults = (resp.results ?? []).map((r) => ({
114
- ...(r.recipient_id ? { id: r.recipient_id } : {}),
115
- ...(r.legal_business_name ? { name: r.legal_business_name } : {}),
122
+ ...(r.recipient_name ? { name: r.recipient_name } : {}),
123
+ ...(r.uei ? { uei: r.uei } : {}),
124
+ ...(r.duns ? { duns: r.duns } : {}),
116
125
  }));
117
126
  }
118
127
  if (rawResults.length === 0) {
@@ -131,7 +140,7 @@ export const autocompleteTool = tool('usaspending_autocomplete', {
131
140
  ctx.enrich.truncated({
132
141
  shown: rawResults.length,
133
142
  cap: input.limit,
134
- guidance: 'More matches may exist. Raise limit (max 50) or use a more specific search term.',
143
+ guidance: 'More matches may exist. Raise limit (max 500) or use a more specific search term.',
135
144
  });
136
145
  }
137
146
  return {
@@ -151,6 +160,10 @@ export const autocompleteTool = tool('usaspending_autocomplete', {
151
160
  parts.push(`**ID:** ${r.id}`);
152
161
  if (r.name)
153
162
  parts.push(`**Name:** ${r.name}`);
163
+ if (r.uei)
164
+ parts.push(`**UEI:** ${r.uei}`);
165
+ if (r.duns)
166
+ parts.push(`**DUNS:** ${r.duns}`);
154
167
  lines.push(`- ${parts.join(' | ')}`);
155
168
  }
156
169
  lines.push(`\n**Total:** ${result.total}`);
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAC/D,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,sdAAsd;IACxd,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE;IAE9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC;aAC9D,QAAQ,CACP,sKAAsK,CACvK;QACH,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,uFAAuF,CACxF;QACH,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,EAAE,CAAC;aACP,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,4CAA4C,CAAC;KAC1D,CAAC;IAEF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CA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AC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;YAC9C,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"autocomplete.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/autocomplete.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAC/D,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,4dAA4d;IAC9d,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE;IAE9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC;aAC9D,QAAQ,CACP,sKAAsK,CACvK;QACH,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,uFAAuF,CACxF;QACH,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aAC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"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6N3B,CAAC"}
1
+ {"version":3,"file":"get-idv-awards.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-idv-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2O3B,CAAC"}
@@ -65,7 +65,9 @@ export const getIdvAwardsTool = tool('usaspending_get_idv_awards', {
65
65
  .describe('Child awards placed under this IDV'),
66
66
  page_metadata: z
67
67
  .object({
68
- has_next: z.boolean().describe('Whether there are more pages of results'),
68
+ has_next: z
69
+ .boolean()
70
+ .describe('Whether more child awards may remain — true on a full page even when the upstream flag reports none (this endpoint returns no total). A short or empty page marks the end.'),
69
71
  has_previous: z.boolean().describe('Whether there are previous pages'),
70
72
  page: z.number().describe('Current page number'),
71
73
  limit: z.number().describe('Results per page'),
@@ -78,11 +80,13 @@ export const getIdvAwardsTool = tool('usaspending_get_idv_awards', {
78
80
  enrichment: {
79
81
  parent_award_id: z.string().describe('Parent IDV award ID whose children were listed'),
80
82
  current_page: z.number().describe('Current page returned'),
81
- has_next_page: z.boolean().describe('Whether there are more pages of child awards'),
83
+ has_next_page: z
84
+ .boolean()
85
+ .describe('Whether more pages of child awards may remain — set on a full page even when the upstream flag reports none.'),
82
86
  truncated: z
83
87
  .boolean()
84
88
  .optional()
85
- .describe('True when more child awards remain beyond this page.'),
89
+ .describe('True when this page was full and more child awards may remain beyond it.'),
86
90
  shown: z.number().optional().describe('Number of child awards returned on this page.'),
87
91
  cap: z.number().optional().describe('The per-page limit that was applied.'),
88
92
  notice: z
@@ -141,9 +145,14 @@ export const getIdvAwardsTool = tool('usaspending_get_idv_awards', {
141
145
  ...(raw.funding_agency ? { funding_agency: String(raw.funding_agency) } : {}),
142
146
  };
143
147
  });
144
- const hasNext = data.hasNext ?? false;
148
+ const rawHasNext = data.hasNext ?? false;
145
149
  const hasPrevious = data.hasPrevious ?? false;
146
150
  const currentPage = typeof data.page === 'number' ? data.page : input.page;
151
+ // idvs/awards page_metadata omits a total and can report a stale hasNext, so a full
152
+ // page must disclose possible continuation even when upstream hasNext is false. A
153
+ // short or empty page marks the end.
154
+ const pageIsFull = results.length >= input.limit;
155
+ const hasNext = rawHasNext || pageIsFull;
147
156
  ctx.enrich({
148
157
  parent_award_id: input.award_id,
149
158
  current_page: currentPage,
@@ -153,11 +162,11 @@ export const getIdvAwardsTool = tool('usaspending_get_idv_awards', {
153
162
  ctx.enrich.notice(`No child awards of type "${input.type}" found for IDV "${input.award_id}". ` +
154
163
  `Verify the award_id is a valid IDV and try type="child_idvs" if looking for sub-IDVs.`);
155
164
  }
156
- else if (hasNext && results.length >= input.limit) {
165
+ else if (pageIsFull) {
157
166
  ctx.enrich.truncated({
158
167
  shown: results.length,
159
168
  cap: input.limit,
160
- guidance: 'More child awards remain. Request the next page or raise limit (max 100).',
169
+ guidance: 'A full page may have more child awards. Request the next page to continue; an empty or short page marks the end. Raise limit up to 100 for fewer round-trips.',
161
170
  });
162
171
  }
163
172
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"get-idv-awards.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-idv-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA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O,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"get-idv-awards.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-idv-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,4BAA4B,EAAE;IACjE,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,6dAA6d;IAC/d,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE;IAE/E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,0LAA0L,CAC3L;QACH,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,cAAc,EAAE,YAAY,EAAE,mBAAmB,CAAC,CAAC;aACzD,OAAO,CAAC,cAAc,CAAC;aACvB,QAAQ,CACP,qIAAqI,CACtI;QACH,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,OAAO,CAAC,kBAAkB,CAAC;aAC3B,QAAQ,CACP,0FAA0F,CAC3F;QACH,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACzE,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,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AC,uBAAuB,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC;YAC5E,IAAI,CAAC,CAAC,gCAAgC,IAAI,CAAC,CAAC,sCAAsC;gBAChF,KAAK,CAAC,IAAI,CACR,eAAe,CAAC,CAAC,gCAAgC,IAAI,KAAK,MAAM,CAAC,CAAC,sCAAsC,IAAI,KAAK,EAAE,CACpH,CAAC;YACJ,IAAI,CAAC,CAAC,kBAAkB;gBAAE,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC;YACxF,IAAI,CAAC,CAAC,WAAW;gBAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -65,6 +65,8 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
65
65
  code: import("zod").ZodOptional<import("zod").ZodString>;
66
66
  name: import("zod").ZodOptional<import("zod").ZodString>;
67
67
  id: import("zod").ZodOptional<import("zod").ZodString>;
68
+ uei: import("zod").ZodOptional<import("zod").ZodString>;
69
+ duns: import("zod").ZodOptional<import("zod").ZodString>;
68
70
  }, import("zod/v4/core").$strip>>;
69
71
  total: import("zod").ZodNumber;
70
72
  }, import("zod/v4/core").$strip>, readonly [{
@@ -115,6 +117,17 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
115
117
  }>>;
116
118
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
117
119
  page: import("zod").ZodDefault<import("zod").ZodNumber>;
120
+ last_record_sort_value: import("zod").ZodOptional<import("zod").ZodString>;
121
+ last_record_unique_id: import("zod").ZodOptional<import("zod").ZodNumber>;
122
+ filters: import("zod").ZodOptional<import("zod").ZodObject<{
123
+ keywords: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
124
+ award_type_codes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
125
+ agency_name: import("zod").ZodOptional<import("zod").ZodString>;
126
+ recipient_name: import("zod").ZodOptional<import("zod").ZodString>;
127
+ naics_codes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
128
+ time_period_start: import("zod").ZodOptional<import("zod").ZodString>;
129
+ time_period_end: import("zod").ZodOptional<import("zod").ZodString>;
130
+ }, import("zod/v4/core").$strip>>;
118
131
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
119
132
  results: import("zod").ZodArray<import("zod").ZodObject<{
120
133
  award_id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -124,6 +137,7 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
124
137
  total_outlays: import("zod").ZodOptional<import("zod").ZodNumber>;
125
138
  awarding_agency: import("zod").ZodOptional<import("zod").ZodString>;
126
139
  awarding_sub_agency: import("zod").ZodOptional<import("zod").ZodString>;
140
+ agency_slug: import("zod").ZodOptional<import("zod").ZodString>;
127
141
  award_type: import("zod").ZodOptional<import("zod").ZodString>;
128
142
  start_date: import("zod").ZodOptional<import("zod").ZodString>;
129
143
  end_date: import("zod").ZodOptional<import("zod").ZodString>;
@@ -138,8 +152,9 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
138
152
  page_metadata: import("zod").ZodObject<{
139
153
  has_next: import("zod").ZodBoolean;
140
154
  page: import("zod").ZodNumber;
141
- total: import("zod").ZodOptional<import("zod").ZodNumber>;
142
155
  limit: import("zod").ZodNumber;
156
+ last_record_sort_value: import("zod").ZodOptional<import("zod").ZodString>;
157
+ last_record_unique_id: import("zod").ZodOptional<import("zod").ZodNumber>;
143
158
  }, import("zod/v4/core").$strip>;
144
159
  }, import("zod/v4/core").$strip>, readonly [{
145
160
  readonly reason: "api_unavailable";
@@ -147,10 +162,19 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
147
162
  readonly when: "USAspending.gov API is unreachable or returns an error.";
148
163
  readonly retryable: true;
149
164
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
165
+ }, {
166
+ readonly reason: "pagination_limit_exceeded";
167
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
168
+ readonly when: "page multiplied by limit exceeds the endpoint 50,000-result page window and no cursor was supplied.";
169
+ readonly retryable: false;
170
+ readonly recovery: "Continue past 50,000 results with keyset pagination: pass last_record_sort_value and last_record_unique_id from the most recent page_metadata instead of page.";
150
171
  }], {
151
- readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
152
172
  readonly page: import("zod").ZodNumber;
153
173
  readonly has_next: import("zod").ZodBoolean;
174
+ readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
175
+ readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
176
+ readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
177
+ readonly upstream_messages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
154
178
  readonly applied_keyword: import("zod").ZodOptional<import("zod").ZodString>;
155
179
  readonly applied_agency_name: import("zod").ZodOptional<import("zod").ZodString>;
156
180
  readonly applied_naics_codes: import("zod").ZodOptional<import("zod").ZodString>;
@@ -403,6 +427,7 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
403
427
  other_financial_assistance: "other_financial_assistance";
404
428
  }>>;
405
429
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
430
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
406
431
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
407
432
  results: import("zod").ZodArray<import("zod").ZodObject<{
408
433
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -411,14 +436,13 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
411
436
  duns: import("zod").ZodOptional<import("zod").ZodString>;
412
437
  recipient_level: import("zod").ZodOptional<import("zod").ZodString>;
413
438
  amount: import("zod").ZodOptional<import("zod").ZodNumber>;
414
- state: import("zod").ZodOptional<import("zod").ZodString>;
415
- location: import("zod").ZodOptional<import("zod").ZodObject<{
416
- city_name: import("zod").ZodOptional<import("zod").ZodString>;
417
- state_code: import("zod").ZodOptional<import("zod").ZodString>;
418
- country_code: import("zod").ZodOptional<import("zod").ZodString>;
419
- }, import("zod/v4/core").$strip>>;
420
439
  }, import("zod/v4/core").$strip>>;
421
- total: import("zod").ZodNumber;
440
+ page_metadata: import("zod").ZodObject<{
441
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
442
+ page: import("zod").ZodNumber;
443
+ has_next: import("zod").ZodBoolean;
444
+ limit: import("zod").ZodNumber;
445
+ }, import("zod/v4/core").$strip>;
422
446
  }, import("zod/v4/core").$strip>, readonly [{
423
447
  readonly reason: "api_unavailable";
424
448
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
@@ -427,9 +451,9 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
427
451
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
428
452
  }], {
429
453
  readonly recipient_count: import("zod").ZodNumber;
430
- readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
431
- readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
432
- readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
454
+ readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
455
+ readonly page: import("zod").ZodNumber;
456
+ readonly has_next: import("zod").ZodBoolean;
433
457
  readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
434
458
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
435
459
  recipient_id: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBrB,CAAC"}
@@ -35,6 +35,17 @@ export declare const searchAwardsTool: import("@cyanheads/mcp-ts-core").ToolDefi
35
35
  }>>;
36
36
  limit: z.ZodDefault<z.ZodNumber>;
37
37
  page: z.ZodDefault<z.ZodNumber>;
38
+ last_record_sort_value: z.ZodOptional<z.ZodString>;
39
+ last_record_unique_id: z.ZodOptional<z.ZodNumber>;
40
+ filters: z.ZodOptional<z.ZodObject<{
41
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ award_type_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ agency_name: z.ZodOptional<z.ZodString>;
44
+ recipient_name: z.ZodOptional<z.ZodString>;
45
+ naics_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ time_period_start: z.ZodOptional<z.ZodString>;
47
+ time_period_end: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strip>>;
38
49
  }, z.core.$strip>, z.ZodObject<{
39
50
  results: z.ZodArray<z.ZodObject<{
40
51
  award_id: z.ZodOptional<z.ZodString>;
@@ -44,6 +55,7 @@ export declare const searchAwardsTool: import("@cyanheads/mcp-ts-core").ToolDefi
44
55
  total_outlays: z.ZodOptional<z.ZodNumber>;
45
56
  awarding_agency: z.ZodOptional<z.ZodString>;
46
57
  awarding_sub_agency: z.ZodOptional<z.ZodString>;
58
+ agency_slug: z.ZodOptional<z.ZodString>;
47
59
  award_type: z.ZodOptional<z.ZodString>;
48
60
  start_date: z.ZodOptional<z.ZodString>;
49
61
  end_date: z.ZodOptional<z.ZodString>;
@@ -58,8 +70,9 @@ export declare const searchAwardsTool: import("@cyanheads/mcp-ts-core").ToolDefi
58
70
  page_metadata: z.ZodObject<{
59
71
  has_next: z.ZodBoolean;
60
72
  page: z.ZodNumber;
61
- total: z.ZodOptional<z.ZodNumber>;
62
73
  limit: z.ZodNumber;
74
+ last_record_sort_value: z.ZodOptional<z.ZodString>;
75
+ last_record_unique_id: z.ZodOptional<z.ZodNumber>;
63
76
  }, z.core.$strip>;
64
77
  }, z.core.$strip>, readonly [{
65
78
  readonly reason: "api_unavailable";
@@ -67,10 +80,19 @@ export declare const searchAwardsTool: import("@cyanheads/mcp-ts-core").ToolDefi
67
80
  readonly when: "USAspending.gov API is unreachable or returns an error.";
68
81
  readonly retryable: true;
69
82
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
83
+ }, {
84
+ readonly reason: "pagination_limit_exceeded";
85
+ readonly code: JsonRpcErrorCode.ValidationError;
86
+ readonly when: "page multiplied by limit exceeds the endpoint 50,000-result page window and no cursor was supplied.";
87
+ readonly retryable: false;
88
+ readonly recovery: "Continue past 50,000 results with keyset pagination: pass last_record_sort_value and last_record_unique_id from the most recent page_metadata instead of page.";
70
89
  }], {
71
- readonly totalCount: z.ZodOptional<z.ZodNumber>;
72
90
  readonly page: z.ZodNumber;
73
91
  readonly has_next: z.ZodBoolean;
92
+ readonly truncated: z.ZodOptional<z.ZodBoolean>;
93
+ readonly shown: z.ZodOptional<z.ZodNumber>;
94
+ readonly cap: z.ZodOptional<z.ZodNumber>;
95
+ readonly upstream_messages: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
96
  readonly applied_keyword: z.ZodOptional<z.ZodString>;
75
97
  readonly applied_agency_name: z.ZodOptional<z.ZodString>;
76
98
  readonly applied_naics_codes: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"search-awards.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyBjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuU3B,CAAC"}
1
+ {"version":3,"file":"search-awards.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAiClF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwgB3B,CAAC"}