@pipeworx/mcp-gsa-calc 0.1.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/.pipeworx-staged-ok +6 -0
- package/LICENSE +21 -0
- package/README.md +186 -0
- package/bin/cli.js +17 -0
- package/package.json +28 -0
- package/server.json +18 -0
- package/src/index.ts +1094 -0
- package/src/server.ts +45 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"staged_at": "2026-09-23T20:04:27.193Z",
|
|
3
|
+
"publisher_blob": "da6994091dc9dcc6a7433084251ca4bbd58b4bed",
|
|
4
|
+
"publisher_commit": "1c417b2cfcdac06e2d9210e869265722ef013f20",
|
|
5
|
+
"note": "Written by scripts/publish-pack.sh as its LAST step. Its presence is the ONLY thing that lets stage-unpublished-packs.sh skip this pack. Deleting this dir is the correct way to force a rebuild."
|
|
6
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mojibake Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# gsa-calc
|
|
2
|
+
|
|
3
|
+
GSA CALC+ ceiling labor rates — the maximum hourly price a vendor may charge the
|
|
4
|
+
US government for a labor category under a GSA schedule contract. Used to
|
|
5
|
+
benchmark rates before negotiating.
|
|
6
|
+
|
|
7
|
+
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1663+ live data sources.
|
|
8
|
+
|
|
9
|
+
## Tools
|
|
10
|
+
|
|
11
|
+
| Tool | What it answers |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `gsa_labor_rates` | "What do senior software engineers bill under MAS?" — individual rates with vendor, contract number and SIN, plus a price summary |
|
|
14
|
+
| `gsa_rate_stats` | "What is the median GSA rate for a project manager?" — the summary only |
|
|
15
|
+
| `gsa_vendor_rates` | "What rates does this contractor have on its schedule?" |
|
|
16
|
+
|
|
17
|
+
Filters on all three: `min_experience` / `max_experience`, `education`,
|
|
18
|
+
`worksite`, `business_size`, `security_clearance`, `min_rate` / `max_rate`,
|
|
19
|
+
`sort_by` / `sort_dir`.
|
|
20
|
+
|
|
21
|
+
## Auth
|
|
22
|
+
|
|
23
|
+
None. `api.gsa.gov/acquisition/calc/v3` is keyless — no api.data.gov key is
|
|
24
|
+
needed, unlike `gsa-auctions` and `gsa_perdiem` which do use
|
|
25
|
+
`PLATFORM_DATAGOV_KEY`.
|
|
26
|
+
|
|
27
|
+
## Data sources
|
|
28
|
+
|
|
29
|
+
- CALC+ Quick Rate API — <https://open.gsa.gov/api/dx-calc-api/>
|
|
30
|
+
- Endpoint: `https://api.gsa.gov/acquisition/calc/v3/api/ceilingrates/`
|
|
31
|
+
- Rates come from GSA MAS contracts; the figure is the **ceiling** rate for the
|
|
32
|
+
current contract year, not a negotiated or paid price.
|
|
33
|
+
|
|
34
|
+
The older `calc.gsa.gov/api/rates/` path found in pre-2026 write-ups is dead
|
|
35
|
+
(404). `calc.gsa.gov` now redirects to a landing page on `buy.gsa.gov`.
|
|
36
|
+
|
|
37
|
+
## Upstream behaviour worth knowing
|
|
38
|
+
|
|
39
|
+
All measured live on 2026-08-28. The running API differs from its documentation
|
|
40
|
+
in ways that change answers, so they are listed rather than assumed.
|
|
41
|
+
|
|
42
|
+
**An unrecognised filter value is silently ignored.** `filter=worksite:Contractor`
|
|
43
|
+
(capital C) and `filter=nonsense_field:zzz` each return the *complete unfiltered
|
|
44
|
+
result set* with HTTP 200 — the same total as sending no filter at all. A caller
|
|
45
|
+
who asks for contractor-site rates and gets a confident answer may be reading
|
|
46
|
+
every rate in the schedule. **This pack validates every enum and refuses an
|
|
47
|
+
unknown value** rather than forwarding it; the error names the accepted set. A
|
|
48
|
+
refused call is recoverable, a silently unfiltered benchmark is not.
|
|
49
|
+
|
|
50
|
+
**The vocabularies are case-sensitive in opposite directions, and there are
|
|
51
|
+
three of them.** `worksite` matches lowercase only (`contractor`); `Contractor`
|
|
52
|
+
is ignored. `business_size` matches uppercase only (`S`); `s` returns zero rows.
|
|
53
|
+
And the same field is spelled differently depending on where you read it —
|
|
54
|
+
filter `BA`, JSON response `Bachelors`, CSV export `small business` for filter
|
|
55
|
+
`S`. The pack accepts human spellings (`"bachelors"`, `"small business"`,
|
|
56
|
+
`"contractor facility"`) and maps them.
|
|
57
|
+
|
|
58
|
+
**`min_years_experience` is an equality filter, not a minimum.** Upstream,
|
|
59
|
+
`min_years_experience:5` returns only rows requiring exactly 5 years (667 of
|
|
60
|
+
4,396 for "software engineer"). Our `min_experience` means what a caller means
|
|
61
|
+
by it — 5 or more — and maps to `experience_range:5,99` (2,561 rows, with
|
|
62
|
+
requirements from 5 to 15+ years).
|
|
63
|
+
|
|
64
|
+
**`page` and `page_size` are both ignored.** The JSON endpoint returns exactly 20
|
|
65
|
+
rows for every query; `page=1`, `page=2` and `page=3` return byte-identical rows,
|
|
66
|
+
and `page_size=300` returns 20. `export=y` returns the complete matching set as
|
|
67
|
+
CSV instead, so this pack computes percentiles from the export — `based_on` in
|
|
68
|
+
every `rate_summary` states how many rows the numbers came from. The JSON
|
|
69
|
+
endpoint's own total caps at 10,000 with `relation: "gte"`; the export count is
|
|
70
|
+
exact.
|
|
71
|
+
|
|
72
|
+
**`Accept: text/csv` returns 406.** The export responds `Content-Type: text/csv`,
|
|
73
|
+
but asking for that type is the one request it refuses. Send `*/*`.
|
|
74
|
+
|
|
75
|
+
## Reading the result
|
|
76
|
+
|
|
77
|
+
`rate_summary` is computed over **every matching rate**, not the rows returned —
|
|
78
|
+
`based_on` is the row count behind it and `complete` is false only if a very
|
|
79
|
+
broad query hit the pack's byte cap. `matched_labor_categories` shows which
|
|
80
|
+
contract titles the keyword actually hit, because labor-category names are free
|
|
81
|
+
text on the contracts ("Sr. Software Engineer" vs "Software Engineer III") and
|
|
82
|
+
the spread tells you whether you are benchmarking the right thing.
|
|
83
|
+
|
|
84
|
+
## Quick Start
|
|
85
|
+
|
|
86
|
+
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"mcpServers": {
|
|
91
|
+
"gsa-calc": {
|
|
92
|
+
"url": "https://gateway.pipeworx.io/gsa-calc/mcp"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### What this endpoint actually serves
|
|
99
|
+
|
|
100
|
+
`tools/list` at `https://gateway.pipeworx.io/gsa-calc/mcp` returns the tools in the table
|
|
101
|
+
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
|
|
102
|
+
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
|
|
103
|
+
gateway-wide set. So the tool count you see is larger than this table: a
|
|
104
|
+
single-pack endpoint currently lists roughly 30 shared tools alongside the
|
|
105
|
+
pack's own. The connection's `initialize` response states its exact scope, and
|
|
106
|
+
is the authoritative answer for a given day.
|
|
107
|
+
|
|
108
|
+
This is deliberate, not multiplexing by accident. The meta-tools are what let a
|
|
109
|
+
scoped connection answer a question this pack does not cover — via
|
|
110
|
+
`ask_pipeworx`, which routes across the whole catalog — without you adding a
|
|
111
|
+
second MCP server. There is currently no way to mount a pack endpoint without
|
|
112
|
+
them; if the extra schemas cost you more context than the routing is worth,
|
|
113
|
+
connect to the full gateway once rather than to several pack endpoints.
|
|
114
|
+
|
|
115
|
+
Or connect to the full Pipeworx gateway to get every pack's tools listed
|
|
116
|
+
directly, instead of just this one's:
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"mcpServers": {
|
|
121
|
+
"pipeworx": {
|
|
122
|
+
"url": "https://gateway.pipeworx.io/mcp"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Both URLs reach the same gateway and the same 1663+ data sources. The
|
|
129
|
+
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
|
|
130
|
+
reaches all of them from either one.
|
|
131
|
+
|
|
132
|
+
## No MCP client? Call it over HTTP
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
curl -X POST https://gateway.pipeworx.io/v1/tools/gsa_labor_rates \
|
|
136
|
+
-H 'Content-Type: application/json' \
|
|
137
|
+
-d '{"labor_category":"software engineer","min_experience":5}'
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/gsa_labor_rates`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
|
|
141
|
+
|
|
142
|
+
## Standalone (no gateway account)
|
|
143
|
+
|
|
144
|
+
This package also runs as a local stdio MCP server — no Pipeworx account, no
|
|
145
|
+
gateway round-trip:
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"mcpServers": {
|
|
150
|
+
"gsa-calc": {
|
|
151
|
+
"command": "npx",
|
|
152
|
+
"args": ["-y", "@pipeworx/mcp-gsa-calc"]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Or run it directly to confirm it starts:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
npx -y @pipeworx/mcp-gsa-calc
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
|
|
165
|
+
for **only** this pack's tools — none of the shared meta-tools the gateway
|
|
166
|
+
connection above adds. Same source, same tools, no ask_pipeworx routing.
|
|
167
|
+
|
|
168
|
+
## Using with ask_pipeworx
|
|
169
|
+
|
|
170
|
+
Instead of calling tools directly, you can ask questions in plain English —
|
|
171
|
+
this works on the pack endpoint above as well as on the full gateway:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
ask_pipeworx({ question: "your question about Gsa Calc data" })
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
The gateway picks the right tool and fills the arguments automatically.
|
|
178
|
+
|
|
179
|
+
## More
|
|
180
|
+
|
|
181
|
+
- [Docs and guides](https://pipeworx.io/docs)
|
|
182
|
+
- [pipeworx.io](https://pipeworx.io)
|
|
183
|
+
|
|
184
|
+
## License
|
|
185
|
+
|
|
186
|
+
MIT
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
//
|
|
3
|
+
// Entry point for `npx @pipeworx/mcp-<slug>`.
|
|
4
|
+
//
|
|
5
|
+
// Packs ship as raw TypeScript (no build step — see publish-pack.sh for why:
|
|
6
|
+
// tsx sidesteps every extensionless-import / bare-JSON-import edge case a
|
|
7
|
+
// per-pack tsc build would have to solve one pack at a time). This file
|
|
8
|
+
// registers tsx's ESM loader programmatically, then hands off to src/server.ts,
|
|
9
|
+
// which wraps the pack's {tools, callTool} export in a stdio MCP server.
|
|
10
|
+
//
|
|
11
|
+
// Copied verbatim into every published pack repo by scripts/publish-pack.sh —
|
|
12
|
+
// edit this file, not a per-pack copy.
|
|
13
|
+
import { register } from 'tsx/esm/api';
|
|
14
|
+
|
|
15
|
+
register();
|
|
16
|
+
|
|
17
|
+
await import('../src/server.ts');
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pipeworx/mcp-gsa-calc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "GSA CALC+ ceiling labor rates — what vendors may charge per hour under GSA",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-gsa-calc": "bin/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "gsa-calc"],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/pipeworx-io/mcp-gsa-calc.git"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
22
|
+
"tsx": "^4.19.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.9.3",
|
|
26
|
+
"@cloudflare/workers-types": "^4.20260405.1"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.pipeworx-io/gsa-calc",
|
|
4
|
+
"title": "Gsa Calc",
|
|
5
|
+
"description": "GSA CALC+ ceiling labor rates — what vendors may charge per hour under GSA",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"websiteUrl": "https://pipeworx.io/packs/gsa-calc",
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/pipeworx-io/mcp-gsa-calc",
|
|
10
|
+
"source": "github"
|
|
11
|
+
},
|
|
12
|
+
"remotes": [
|
|
13
|
+
{
|
|
14
|
+
"type": "streamable-http",
|
|
15
|
+
"url": "https://gateway.pipeworx.io/gsa-calc/mcp"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|