@cyanheads/usaspending-mcp-server 0.6.0 → 0.7.0
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 +22 -116
- package/changelog/0.7.x/0.7.0.md +29 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/server.json +3 -3
- package/skills/usaspending-guide/SKILL.md +54 -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.0
|
|
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.0
|
|
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>
|
|
@@ -215,137 +219,32 @@ Agent-friendly output:
|
|
|
215
219
|
|
|
216
220
|
## Getting started
|
|
217
221
|
|
|
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:
|
|
222
|
+
Connect to the hosted instance, no install:
|
|
223
223
|
|
|
224
224
|
```sh
|
|
225
225
|
claude mcp add --transport http usaspending-mcp-server https://usaspending.caseyjhand.com/mcp
|
|
226
226
|
```
|
|
227
227
|
|
|
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
|
|
228
|
+
Or run it locally:
|
|
256
229
|
|
|
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
|
-
}
|
|
230
|
+
```sh
|
|
231
|
+
claude mcp add usaspending-mcp-server -- npx -y @cyanheads/usaspending-mcp-server
|
|
273
232
|
```
|
|
274
233
|
|
|
275
|
-
|
|
234
|
+
For other clients, add this to the MCP config file:
|
|
276
235
|
|
|
277
236
|
```json
|
|
278
237
|
{
|
|
279
238
|
"mcpServers": {
|
|
280
239
|
"usaspending-mcp-server": {
|
|
281
|
-
"type": "stdio",
|
|
282
240
|
"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
|
-
]
|
|
241
|
+
"args": ["-y", "@cyanheads/usaspending-mcp-server"]
|
|
306
242
|
}
|
|
307
243
|
}
|
|
308
244
|
}
|
|
309
245
|
```
|
|
310
246
|
|
|
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
|
-
```
|
|
247
|
+
No API key or account is required. For Docker or a source build, see [Running the server](#running-the-server).
|
|
349
248
|
|
|
350
249
|
## Configuration
|
|
351
250
|
|
|
@@ -373,6 +272,14 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
|
373
272
|
|
|
374
273
|
### Local development
|
|
375
274
|
|
|
275
|
+
Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+). No API key or account is required.
|
|
276
|
+
|
|
277
|
+
```sh
|
|
278
|
+
git clone https://github.com/cyanheads/usaspending-mcp-server.git
|
|
279
|
+
cd usaspending-mcp-server && bun install
|
|
280
|
+
cp .env.example .env # optional overrides
|
|
281
|
+
```
|
|
282
|
+
|
|
376
283
|
- **Build and run:**
|
|
377
284
|
|
|
378
285
|
```sh
|
|
@@ -396,11 +303,10 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
|
|
|
396
303
|
### Docker
|
|
397
304
|
|
|
398
305
|
```sh
|
|
399
|
-
docker
|
|
400
|
-
docker run --rm -p 3010:3010 usaspending-mcp-server
|
|
306
|
+
docker run --rm -p 3010:3010 ghcr.io/cyanheads/usaspending-mcp-server:latest
|
|
401
307
|
```
|
|
402
308
|
|
|
403
|
-
The
|
|
309
|
+
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
310
|
|
|
405
311
|
## Project structure
|
|
406
312
|
|
|
@@ -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
|
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"}
|
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.
|
|
4
|
+
"version": "0.7.0",
|
|
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",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"changelog/",
|
|
14
|
+
"skills/",
|
|
14
15
|
"dist/",
|
|
15
16
|
"!dist/*.mcpb",
|
|
16
17
|
"README.md",
|
|
@@ -91,19 +92,19 @@
|
|
|
91
92
|
},
|
|
92
93
|
"trustedDependencies": ["@socketsecurity/bun-security-scanner"],
|
|
93
94
|
"dependencies": {
|
|
94
|
-
"@cyanheads/mcp-ts-core": "^0.13.
|
|
95
|
+
"@cyanheads/mcp-ts-core": "^0.13.18",
|
|
95
96
|
"pino-pretty": "^13.2.0",
|
|
96
97
|
"zod": "^4.6.7"
|
|
97
98
|
},
|
|
98
99
|
"devDependencies": {
|
|
99
|
-
"@biomejs/biome": "^2.6.
|
|
100
|
+
"@biomejs/biome": "^2.6.3",
|
|
100
101
|
"@socketsecurity/bun-security-scanner": "^1.1.3",
|
|
101
102
|
"@types/markdown-it": "^14.2.0",
|
|
102
103
|
"@types/node": "^26.6.5",
|
|
103
104
|
"depcheck": "^1.4.7",
|
|
104
|
-
"ignore": "^7.0.
|
|
105
|
+
"ignore": "^7.0.14",
|
|
105
106
|
"markdown-it": "^15.0.3",
|
|
106
|
-
"tsc-alias": "^1.9.
|
|
107
|
+
"tsc-alias": "^1.9.9",
|
|
107
108
|
"typescript": "^7.0.2",
|
|
108
109
|
"vitest": "^5.0.5"
|
|
109
110
|
}
|
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.
|
|
9
|
+
"version": "0.7.0",
|
|
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.
|
|
22
|
+
"version": "0.7.0",
|
|
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.
|
|
41
|
+
"version": "0.7.0",
|
|
42
42
|
"environmentVariables": [
|
|
43
43
|
{
|
|
44
44
|
"name": "MCP_TRANSPORT_TYPE",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: usaspending-guide
|
|
3
|
+
description: Use with usaspending_* tools to trace federal awards through recipients and funding accounts, compare spending across reporting periods, or investigate emergency funding without mixing award totals, transaction obligations, and budget data.
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: "cyanheads"
|
|
7
|
+
version: "1.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
11
|
+
|
|
12
|
+
Use USAspending for federal award investigations and spending comparisons. Award search cannot establish coverage before 2007-10-01; use bulk downloads for earlier award searches. This restriction does not describe the federal-account tools' reporting-year coverage.
|
|
13
|
+
|
|
14
|
+
## Identifiers
|
|
15
|
+
|
|
16
|
+
Preserve identifiers returned at each hop rather than constructing them from display names:
|
|
17
|
+
|
|
18
|
+
- Award search's `generated_internal_id` opens the award detail and award drill-down tools. The displayed award number is not the chain ID. An IDV child's `generated_unique_award_id` opens that child's detail.
|
|
19
|
+
- Recipient search's `id`, award detail's `recipient.recipient_id`, and recipient-category rows' `recipient_id` identify recipient profiles. Preserve the hierarchy suffix; UEI and DUNS are separate identifiers.
|
|
20
|
+
- Award funding rows' `federal_account` and account search's `account_number` open the federal-account tools. A detail's Treasury Account Symbol child code is not a federal-account code.
|
|
21
|
+
|
|
22
|
+
## Gates
|
|
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.
|
|
25
|
+
|
|
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
|
+
|
|
28
|
+
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
|
+
|
|
30
|
+
## Workflows
|
|
31
|
+
|
|
32
|
+
### Investigate a recipient
|
|
33
|
+
|
|
34
|
+
Resolve the organization with usaspending_search_recipients and inspect its profile before choosing a parent, child, or standalone entity. For exact-entity trends, carry that recipient hash into usaspending_spending_over_time and explicitly select award types. The profile covers every award type and defaults to the trailing 12 months; select a fiscal year when comparing annual results.
|
|
35
|
+
|
|
36
|
+
Use usaspending_search_awards to discover individual awards by recipient name, then inspect their recipient identities. Name matching is partial and cannot substitute for the analytics tools' exact recipient hash when reconciling an entity's totals.
|
|
37
|
+
|
|
38
|
+
### Trace an award's funding
|
|
39
|
+
|
|
40
|
+
Open the award, then use usaspending_get_award_federal_accounts and carry each returned account code into usaspending_get_federal_account. Use usaspending_get_federal_account_breakdown to inspect program activity or object class for the same fiscal year. Account search defaults to the latest submission year, detail to the current fiscal year, and breakdown to all available periods: select one year across the chain. Even within one year, account search and detail budget totals use different upstream calculations and need not match.
|
|
41
|
+
|
|
42
|
+
Keep the award's funding contribution separate from the account's full budget.
|
|
43
|
+
|
|
44
|
+
### Compare places and periods
|
|
45
|
+
|
|
46
|
+
Choose recipient location or place of performance according to the question, and retain that distinction in the conclusion. Reuse the same award types and date range across geography, category, and time-series calls. Fiscal month 1 is October.
|
|
47
|
+
|
|
48
|
+
For a named area absent from a ranked geography result, resolve its code and select it with usaspending_spending_by_geography rather than inferring zero spending. Returned county `shape_code` values can also be carried directly into award search's county location filter; award search normalizes the five-digit FIPS code and infers its state. External resolution is needed when the desired code is not already available from results.
|
|
49
|
+
|
|
50
|
+
### Reconcile emergency funding
|
|
51
|
+
|
|
52
|
+
Choose DEF codes for the appropriation being investigated, then keep them fixed across breakdowns. 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.
|
|
53
|
+
|
|
54
|
+
Use the returned overall totals when present instead of summing one page. If the recipient response discloses a reachable ceiling, narrow the recipient query before treating its count as exact. Keep obligations, outlays, and budgetary resources separate in the answer.
|