@cyanheads/usaspending-mcp-server 0.1.2 → 0.1.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/CLAUDE.md +15 -38
- package/Dockerfile +2 -1
- package/README.md +26 -1
- package/changelog/0.1.x/0.1.3.md +20 -0
- package/changelog/0.1.x/0.1.4.md +19 -0
- package/changelog/template.md +8 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +1 -1
- package/package.json +36 -19
- package/server.json +9 -3
package/CLAUDE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** usaspending-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.
|
|
4
|
+
**Version:** 0.1.4
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.13`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
@@ -50,7 +50,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
50
50
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
51
51
|
- **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
|
|
52
52
|
- **Secrets in env vars only** — never hardcoded.
|
|
53
|
-
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed
|
|
53
|
+
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
@@ -265,9 +265,13 @@ Available skills:
|
|
|
265
265
|
| `add-service` | Scaffold a new service integration |
|
|
266
266
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
267
267
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
268
|
+
| `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
|
|
268
269
|
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
270
|
+
| `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
|
|
269
271
|
| `devcheck` | Lint, format, typecheck, audit |
|
|
270
272
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
273
|
+
| `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
|
|
274
|
+
| `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
|
|
271
275
|
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
272
276
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
273
277
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
@@ -276,6 +280,7 @@ Available skills:
|
|
|
276
280
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
277
281
|
| `api-context` | Context interface, logger, state, progress |
|
|
278
282
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
283
|
+
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
279
284
|
| `api-services` | LLM, Speech, Graph services |
|
|
280
285
|
| `api-testing` | createMockContext, test patterns |
|
|
281
286
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
@@ -296,7 +301,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
296
301
|
| `npm run rebuild` | Clean + build |
|
|
297
302
|
| `npm run clean` | Remove build artifacts |
|
|
298
303
|
| `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
299
|
-
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, re-audit
|
|
304
|
+
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
|
|
300
305
|
| `npm run tree` | Generate directory structure doc |
|
|
301
306
|
| `npm run format` | Auto-fix formatting |
|
|
302
307
|
| `npm test` | Run tests |
|
|
@@ -314,40 +319,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
314
319
|
|
|
315
320
|
**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.
|
|
316
321
|
|
|
317
|
-
**README install badges
|
|
318
|
-
|
|
319
|
-
| Client | Mechanism |
|
|
320
|
-
|:-------|:----------|
|
|
321
|
-
| Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
|
|
322
|
-
| Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
|
|
323
|
-
| VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
|
|
324
|
-
| Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
|
|
325
|
-
|
|
326
|
-
```markdown
|
|
327
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
328
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
329
|
-
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
|
|
333
|
-
|
|
334
|
-
Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
|
|
335
|
-
|
|
336
|
-
```bash
|
|
337
|
-
# Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
|
|
338
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
|
|
339
|
-
# Without env (no required keys):
|
|
340
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
|
|
341
|
-
|
|
342
|
-
# VS Code: URL-encoded JSON. Same shape plus a `name` field.
|
|
343
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
|
|
344
|
-
# Without env:
|
|
345
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
|
|
349
|
-
|
|
350
|
-
The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
|
|
322
|
+
**README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
|
|
351
323
|
|
|
352
324
|
---
|
|
353
325
|
|
|
@@ -370,6 +342,8 @@ security: false # optional — true flags security fi
|
|
|
370
342
|
|
|
371
343
|
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
372
344
|
|
|
345
|
+
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
346
|
+
|
|
373
347
|
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
374
348
|
|
|
375
349
|
**Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
|
|
@@ -402,4 +376,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
402
376
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
403
377
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
404
378
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
379
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
380
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
381
|
+
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
405
382
|
- [ ] `npm run devcheck` passes
|
package/Dockerfile
CHANGED
|
@@ -37,9 +37,10 @@ WORKDIR /usr/src/app
|
|
|
37
37
|
ENV NODE_ENV=production
|
|
38
38
|
|
|
39
39
|
# OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
|
|
40
|
-
LABEL org.opencontainers.image.title="usaspending-mcp-server"
|
|
40
|
+
LABEL org.opencontainers.image.title="@cyanheads/usaspending-mcp-server"
|
|
41
41
|
LABEL org.opencontainers.image.description="Access US federal award, recipient, agency, and spending analytics data from USAspending.gov via MCP. STDIO or Streamable HTTP."
|
|
42
42
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
43
|
+
LABEL org.opencontainers.image.source="https://github.com/cyanheads/usaspending-mcp-server"
|
|
43
44
|
|
|
44
45
|
# Copy dependency manifests
|
|
45
46
|
COPY package.json bun.lock ./
|
package/README.md
CHANGED
|
@@ -7,16 +7,24 @@
|
|
|
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
|
|
|
14
14
|
<div align="center">
|
|
15
15
|
|
|
16
|
+
[](https://github.com/cyanheads/usaspending-mcp-server/releases/latest/download/usaspending-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=usaspending-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvdXNhc3BlbmRpbmctbWNwLXNlcnZlciJdfQ==) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22usaspending-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fusaspending-mcp-server%22%5D%7D)
|
|
17
|
+
|
|
16
18
|
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
17
19
|
|
|
18
20
|
</div>
|
|
19
21
|
|
|
22
|
+
<div align="center">
|
|
23
|
+
|
|
24
|
+
**Public Hosted Server:** [https://usaspending.caseyjhand.com/mcp](https://usaspending.caseyjhand.com/mcp)
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
|
|
20
28
|
---
|
|
21
29
|
|
|
22
30
|
## Tools
|
|
@@ -212,6 +220,23 @@ Agent-friendly output:
|
|
|
212
220
|
|
|
213
221
|
## Getting started
|
|
214
222
|
|
|
223
|
+
### Public Hosted Instance
|
|
224
|
+
|
|
225
|
+
A public instance is available at `https://usaspending.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"mcpServers": {
|
|
230
|
+
"usaspending": {
|
|
231
|
+
"type": "streamable-http",
|
|
232
|
+
"url": "https://usaspending.caseyjhand.com/mcp"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Self-Hosted / Local
|
|
239
|
+
|
|
215
240
|
Add the following to your MCP client configuration file. No API key is required — USAspending.gov data is public domain.
|
|
216
241
|
|
|
217
242
|
```json
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Package metadata, scripts, badges, and Docker alignment with ecosystem gold standard"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.1.3 — 2026-05-26
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`package.json` scripts** migrated from `tsx` to `bun run` (`build`, `rebuild`, `clean`, `devcheck`, `tree`, `list-skills`, `lint:mcp`, `lint:packaging`, `changelog:build`, `changelog:check`); `start:stdio` and `start:http` now use `bun ./dist/index.js` instead of `node`; `test` uses `bunx vitest run`; removed bare `start` alias
|
|
12
|
+
- **`package.json` metadata** — added `author`, `bugs`, `homepage`, and `funding` fields; removed unused `tsx` devDependency
|
|
13
|
+
- **README badges** — added Docker (ghcr.io), MCP SDK, and npm badges to the first badge row; added Install in Claude Desktop, Install in Cursor, and Install in VS Code one-click install buttons
|
|
14
|
+
- **Dockerfile** — build stage uses `bun run build` (via script); added `org.opencontainers.image.source` OCI label; corrected `org.opencontainers.image.title` to scoped package name
|
|
15
|
+
- **Docker image** — multi-arch (`linux/amd64`, `linux/arm64`) image published to `ghcr.io/cyanheads/usaspending-mcp-server`
|
|
16
|
+
- **`.github/FUNDING.yml`** — added GitHub Sponsors and Buy Me a Coffee funding configuration
|
|
17
|
+
|
|
18
|
+
## Fixed
|
|
19
|
+
|
|
20
|
+
- GitHub release created for `v0.1.1` tag (was missing)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "mcp-ts-core ^0.9.13: body cap (413), session-init gate, quieter 4xx logging, keywords on GET /mcp; ValidationError for missing agency input"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.1.4 — 2026-05-28
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`usaspending_get_agency` missing-input error** — `missing_input` reason now maps to `ValidationError` instead of `InvalidParams` (`JsonRpcErrorCode.ValidationError`). Clients reading `data.reason` see the same `'missing_input'` string; clients reading the numeric error code see the updated value. Test updated to match.
|
|
12
|
+
- **`@cyanheads/mcp-ts-core`** `^0.9.9` → `^0.9.13` — picks up:
|
|
13
|
+
- `MCP_HTTP_MAX_BODY_BYTES` — configurable inbound request-body cap (default 1 MiB); oversized requests rejected with HTTP 413 before the SDK parses the body ([#157](https://github.com/cyanheads/mcp-ts-core/issues/157))
|
|
14
|
+
- HTTP session-init gate — stateful HTTP mode rejects non-`initialize` requests without `Mcp-Session-Id` with HTTP 400 ([#154](https://github.com/cyanheads/mcp-ts-core/issues/154))
|
|
15
|
+
- Expected client errors (401, 403, 400, 404) now log at `warning` level instead of full `ErrorHandler` pipeline with stack traces, reducing noise ([#158](https://github.com/cyanheads/mcp-ts-core/issues/158))
|
|
16
|
+
- `GET /mcp` surfaces `package.json` `keywords` on the status JSON alongside name/version/description ([#165](https://github.com/cyanheads/mcp-ts-core/issues/165))
|
|
17
|
+
- `landing.requireAuth` — landing page inventory now gated behind auth by default when `MCP_AUTH_MODE` is `jwt`/`oauth`; `landing: { requireAuth: false }` added to `createApp()` call to preserve public-catalog behavior ([#156](https://github.com/cyanheads/mcp-ts-core/issues/156))
|
|
18
|
+
- **`package.json` `keywords`** — added `typescript`, `bun`, `stdio`, `streamable-http` for better discoverability on npm and `GET /mcp` status.
|
|
19
|
+
- **`@biomejs/biome`** `^2.4.15` → `^2.4.16`
|
package/changelog/template.md
CHANGED
|
@@ -19,6 +19,14 @@ breaking: false
|
|
|
19
19
|
# `## Security` section below. Flagged as `Security` in the rollup so
|
|
20
20
|
# users can triage upgrade urgency at a glance.
|
|
21
21
|
security: false
|
|
22
|
+
|
|
23
|
+
# Optional free-form notes for maintenance agents processing this release.
|
|
24
|
+
# Not rendered in CHANGELOG — consumed by agents running `maintenance` on
|
|
25
|
+
# downstream servers. Use for adoption instructions that don't fit the
|
|
26
|
+
# human-facing sections: new files to create, fields to populate, one-time
|
|
27
|
+
# migration steps. Omit the field entirely when there's nothing to say.
|
|
28
|
+
# agent-notes: |
|
|
29
|
+
# <instructions for downstream maintenance agents>
|
|
22
30
|
---
|
|
23
31
|
|
|
24
32
|
# <version> — YYYY-MM-DD
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ await createApp({
|
|
|
12
12
|
tools: [...allToolDefinitions],
|
|
13
13
|
resources: [],
|
|
14
14
|
prompts: [],
|
|
15
|
+
landing: { requireAuth: false },
|
|
15
16
|
instructions: 'USAspending.gov MCP server — federal award, recipient, agency, and spending data from the US Treasury DATA Act platform.\n' +
|
|
16
17
|
'- Start with usaspending_list_agencies or usaspending_autocomplete to discover agency codes and NAICS/PSC codes\n' +
|
|
17
18
|
'- Use usaspending_search_awards to find awards, then usaspending_get_award for full details\n' +
|
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,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,4HAA4H;QAC5H,mHAAmH;QACnH,+FAA+F;QAC/F,sGAAsG;QACtG,kFAAkF;IACpF,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,sBAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAEvF,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B,YAAY,EACV,4HAA4H;QAC5H,mHAAmH;QACnH,+FAA+F;QAC/F,sGAAsG;QACtG,kFAAkF;IACpF,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,sBAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -37,7 +37,7 @@ export declare const getAgencyTool: import("@cyanheads/mcp-ts-core").ToolDefinit
|
|
|
37
37
|
readonly recovery: "Use usaspending_list_agencies to browse available agencies and find the correct code or slug.";
|
|
38
38
|
}, {
|
|
39
39
|
readonly reason: "missing_input";
|
|
40
|
-
readonly code: JsonRpcErrorCode.
|
|
40
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
41
41
|
readonly when: "Neither toptier_code nor agency_slug was provided.";
|
|
42
42
|
readonly recovery: "Provide either a toptier_code (e.g., 097) or agency_slug (e.g., department-of-defense).";
|
|
43
43
|
}, {
|
|
@@ -71,7 +71,7 @@ export const getAgencyTool = tool('usaspending_get_agency', {
|
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
reason: 'missing_input',
|
|
74
|
-
code: JsonRpcErrorCode.
|
|
74
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
75
75
|
when: 'Neither toptier_code nor agency_slug was provided.',
|
|
76
76
|
recovery: 'Provide either a toptier_code (e.g., 097) or agency_slug (e.g., department-of-defense).',
|
|
77
77
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-agency.tool.js","s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AY,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,IAAI,MAAM,SAAS,IAAI,CAC5G,CAAC;YACJ,CAAC;QACH,CAAC;QAED,IAAI,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;YACrD,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACjC,KAAK,CAAC,IAAI,CACR,OAAO,CAAC,CAAC,IAAI,IAAI,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC5F,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -436,7 +436,7 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
|
|
|
436
436
|
readonly recovery: "Use usaspending_list_agencies to browse available agencies and find the correct code or slug.";
|
|
437
437
|
}, {
|
|
438
438
|
readonly reason: "missing_input";
|
|
439
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
439
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
440
440
|
readonly when: "Neither toptier_code nor agency_slug was provided.";
|
|
441
441
|
readonly recovery: "Provide either a toptier_code (e.g., 097) or agency_slug (e.g., department-of-defense).";
|
|
442
442
|
}, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/usaspending-mcp-server",
|
|
3
3
|
"mcpName": "io.github.cyanheads/usaspending-mcp-server",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "Access US federal award, recipient, agency, and spending analytics data from USAspending.gov via MCP. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -19,29 +19,32 @@
|
|
|
19
19
|
"server.json"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "
|
|
23
|
-
"rebuild": "
|
|
24
|
-
"clean": "
|
|
25
|
-
"devcheck": "
|
|
22
|
+
"build": "bun run scripts/build.ts",
|
|
23
|
+
"rebuild": "bun run scripts/clean.ts && bun run build",
|
|
24
|
+
"clean": "bun run scripts/clean.ts",
|
|
25
|
+
"devcheck": "bun run scripts/devcheck.ts",
|
|
26
26
|
"audit:refresh": "rm -f bun.lock && bun install && bun audit",
|
|
27
|
-
"tree": "
|
|
28
|
-
"list-skills": "
|
|
27
|
+
"tree": "bun run scripts/tree.ts",
|
|
28
|
+
"list-skills": "bun run scripts/list-skills.ts",
|
|
29
29
|
"format": "biome check --write --unsafe .",
|
|
30
|
-
"lint:mcp": "
|
|
31
|
-
"lint:packaging": "
|
|
32
|
-
"bundle": "
|
|
30
|
+
"lint:mcp": "bun run scripts/lint-mcp.ts",
|
|
31
|
+
"lint:packaging": "bun run scripts/lint-packaging.ts",
|
|
32
|
+
"bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/usaspending-mcp-server.mcpb",
|
|
33
33
|
"publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
|
|
34
|
-
"changelog:build": "
|
|
35
|
-
"changelog:check": "
|
|
36
|
-
"test": "vitest run",
|
|
37
|
-
"start": "
|
|
38
|
-
"start:
|
|
39
|
-
"start:http": "MCP_TRANSPORT_TYPE=http node dist/index.js"
|
|
34
|
+
"changelog:build": "bun run scripts/build-changelog.ts",
|
|
35
|
+
"changelog:check": "bun run scripts/build-changelog.ts --check",
|
|
36
|
+
"test": "bunx vitest run",
|
|
37
|
+
"start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
|
|
38
|
+
"start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
|
|
40
39
|
},
|
|
41
40
|
"keywords": [
|
|
42
41
|
"mcp",
|
|
43
42
|
"mcp-server",
|
|
44
43
|
"model-context-protocol",
|
|
44
|
+
"typescript",
|
|
45
|
+
"bun",
|
|
46
|
+
"stdio",
|
|
47
|
+
"streamable-http",
|
|
45
48
|
"federal-spending",
|
|
46
49
|
"usaspending",
|
|
47
50
|
"government-contracts",
|
|
@@ -56,6 +59,21 @@
|
|
|
56
59
|
"type": "git",
|
|
57
60
|
"url": "git+https://github.com/cyanheads/usaspending-mcp-server.git"
|
|
58
61
|
},
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/cyanheads/usaspending-mcp-server/issues"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/cyanheads/usaspending-mcp-server#readme",
|
|
66
|
+
"author": "cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/usaspending-mcp-server#readme)",
|
|
67
|
+
"funding": [
|
|
68
|
+
{
|
|
69
|
+
"type": "github",
|
|
70
|
+
"url": "https://github.com/sponsors/cyanheads"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "buy_me_a_coffee",
|
|
74
|
+
"url": "https://www.buymeacoffee.com/cyanheads"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
59
77
|
"license": "Apache-2.0",
|
|
60
78
|
"engines": {
|
|
61
79
|
"bun": ">=1.3.0",
|
|
@@ -65,17 +83,16 @@
|
|
|
65
83
|
"access": "public"
|
|
66
84
|
},
|
|
67
85
|
"dependencies": {
|
|
68
|
-
"@cyanheads/mcp-ts-core": "^0.9.
|
|
86
|
+
"@cyanheads/mcp-ts-core": "^0.9.13",
|
|
69
87
|
"pino-pretty": "^13.1.3",
|
|
70
88
|
"zod": "^4.4.3"
|
|
71
89
|
},
|
|
72
90
|
"devDependencies": {
|
|
73
|
-
"@biomejs/biome": "^2.4.
|
|
91
|
+
"@biomejs/biome": "^2.4.16",
|
|
74
92
|
"@types/node": "^25.9.1",
|
|
75
93
|
"depcheck": "^1.4.7",
|
|
76
94
|
"ignore": "^7.0.5",
|
|
77
95
|
"tsc-alias": "^1.8.17",
|
|
78
|
-
"tsx": "^4.22.3",
|
|
79
96
|
"typescript": "^6.0.3",
|
|
80
97
|
"vitest": "^4.1.7"
|
|
81
98
|
}
|
package/server.json
CHANGED
|
@@ -6,14 +6,20 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/usaspending-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.4",
|
|
10
|
+
"remotes": [
|
|
11
|
+
{
|
|
12
|
+
"type": "streamable-http",
|
|
13
|
+
"url": "https://usaspending.caseyjhand.com/mcp"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
10
16
|
"packages": [
|
|
11
17
|
{
|
|
12
18
|
"registryType": "npm",
|
|
13
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
14
20
|
"identifier": "@cyanheads/usaspending-mcp-server",
|
|
15
21
|
"runtimeHint": "node",
|
|
16
|
-
"version": "0.1.
|
|
22
|
+
"version": "0.1.4",
|
|
17
23
|
"packageArguments": [
|
|
18
24
|
{
|
|
19
25
|
"type": "positional",
|
|
@@ -42,7 +48,7 @@
|
|
|
42
48
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
43
49
|
"identifier": "@cyanheads/usaspending-mcp-server",
|
|
44
50
|
"runtimeHint": "node",
|
|
45
|
-
"version": "0.1.
|
|
51
|
+
"version": "0.1.4",
|
|
46
52
|
"packageArguments": [
|
|
47
53
|
{
|
|
48
54
|
"type": "positional",
|