@pipeworx/mcp-reginfo 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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "staged_at": "2026-09-23T21:07:20.194Z",
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,163 @@
1
+ # @pipeworx/reginfo
2
+
3
+ The Unified Agenda of Federal Regulatory and Deregulatory Actions — every RIN
4
+ (Regulation Identifier Number) a federal agency has told OIRA it intends to
5
+ propose, finalize, or has completed, published biannually since Fall 1995.
6
+ This is the LEADING record ahead of `ecfr`/`federal-register`'s trailing one:
7
+ an agency's "planning to propose X" shows up here, edition by edition, often
8
+ years before the same rule actually publishes or takes effect.
9
+
10
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1669+ live data sources.
11
+
12
+ ## Tools
13
+
14
+ - `reg_agenda_search(agency?, keyword?, stage?, edition?, limit?)` — search RINs by agency, free-text keyword, and/or rulemaking stage. Defaults to the newest edition on file.
15
+ - `reg_rin(rin)` — full detail for one RIN across EVERY edition it has appeared in, showing how its stage/status changed over time.
16
+ - `reg_agency_agenda(agency, edition?, limit?)` — one agency's full regulatory agenda for an edition, grouped by rule_stage.
17
+ - `reg_agenda_coverage()` — which editions are currently loaded (oldest/newest, total rows).
18
+
19
+ ## Auth
20
+
21
+ Keyless — no operator key needed. Backed by `reginfo_rins`, refreshed
22
+ monthly by `workers/data-pipeline` (dataset `reginfo`).
23
+
24
+ ## Data sources
25
+
26
+ - <https://www.reginfo.gov/public/do/XMLReportList> — the Unified Agenda
27
+ report index.
28
+ - <https://www.reginfo.gov/public/do/XMLViewFileAction?f=REGINFO_RIN_DATA_202504.xml>
29
+ — one biannual edition's full XML (~16.5MB, ~3,800 `RIN_INFO` records).
30
+ Editions run `REGINFO_RIN_DATA_199510.xml` .. present, April(04)/October(10)
31
+ each year.
32
+
33
+ **A missing edition answers HTTP 200, not 404.** reginfo.gov serves a ~50KB
34
+ HTML "no such report" page (`Content-Type: text/html`) for an edition that
35
+ was never published — a real edition answers `Content-Type: application/xml`.
36
+ The ingest HEAD-probes content-type before ever GETting a file, so a not-yet-
37
+ published edition (or a genuine off-cycle gap in the pre-2000 grid) costs a
38
+ cheap HEAD request rather than leaking an HTML page into the data.
39
+
40
+ **One row PER (rin, publication_id), not per RIN.** A RIN's `rule_stage`
41
+ changes edition to edition ("Proposed Rule Stage" → "Final Rule Stage" →
42
+ "Completed Actions") — that history is the whole point of this dataset, so a
43
+ newer edition never overwrites an older one. `reg_rin` returns every edition
44
+ a RIN has appeared in, newest first.
45
+
46
+ **Coverage grows in gradually, not all at once.** The backfill drains in
47
+ edition by edition rather than loading all ~60 editions back to 1995 in one
48
+ pass; `reg_agenda_coverage` reports exactly which editions are loaded right
49
+ now, so a caller can tell "not backfilled yet" apart from "genuinely never
50
+ published".
51
+
52
+ **Agency matching covers name, acronym, AND code**, and matches on either the
53
+ direct agency or its PARENT — asking for "Interior" also surfaces its
54
+ sub-agencies' (e.g. Fish & Wildlife) rules, since the source records both
55
+ levels per RIN.
56
+
57
+ **The abstract is HTML wrapped in CDATA in the source XML.** The ingest
58
+ strips tags and decodes entities before writing the `abstract` column, so
59
+ callers only ever see plain text.
60
+
61
+ ## Quick Start
62
+
63
+ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
64
+
65
+ ```json
66
+ {
67
+ "mcpServers": {
68
+ "reginfo": {
69
+ "url": "https://gateway.pipeworx.io/reginfo/mcp"
70
+ }
71
+ }
72
+ }
73
+ ```
74
+
75
+ ### What this endpoint actually serves
76
+
77
+ `tools/list` at `https://gateway.pipeworx.io/reginfo/mcp` returns the tools in the table
78
+ above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
79
+ `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
80
+ gateway-wide set. So the tool count you see is larger than this table: a
81
+ single-pack endpoint currently lists roughly 30 shared tools alongside the
82
+ pack's own. The connection's `initialize` response states its exact scope, and
83
+ is the authoritative answer for a given day.
84
+
85
+ This is deliberate, not multiplexing by accident. The meta-tools are what let a
86
+ scoped connection answer a question this pack does not cover — via
87
+ `ask_pipeworx`, which routes across the whole catalog — without you adding a
88
+ second MCP server. There is currently no way to mount a pack endpoint without
89
+ them; if the extra schemas cost you more context than the routing is worth,
90
+ connect to the full gateway once rather than to several pack endpoints.
91
+
92
+ Or connect to the full Pipeworx gateway to get every pack's tools listed
93
+ directly, instead of just this one's:
94
+
95
+ ```json
96
+ {
97
+ "mcpServers": {
98
+ "pipeworx": {
99
+ "url": "https://gateway.pipeworx.io/mcp"
100
+ }
101
+ }
102
+ }
103
+ ```
104
+
105
+ Both URLs reach the same gateway and the same 1669+ data sources. The
106
+ only difference is which pack's tools are listed **directly**; `ask_pipeworx`
107
+ reaches all of them from either one.
108
+
109
+ ## No MCP client? Call it over HTTP
110
+
111
+ ```bash
112
+ curl -X POST https://gateway.pipeworx.io/v1/tools/reg_agenda_search \
113
+ -H 'Content-Type: application/json' \
114
+ -d '{"agency":"EPA","limit":25}'
115
+ ```
116
+
117
+ No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/reg_agenda_search`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
118
+
119
+ ## Standalone (no gateway account)
120
+
121
+ This package also runs as a local stdio MCP server — no Pipeworx account, no
122
+ gateway round-trip:
123
+
124
+ ```json
125
+ {
126
+ "mcpServers": {
127
+ "reginfo": {
128
+ "command": "npx",
129
+ "args": ["-y", "@pipeworx/mcp-reginfo"]
130
+ }
131
+ }
132
+ }
133
+ ```
134
+
135
+ Or run it directly to confirm it starts:
136
+
137
+ ```bash
138
+ npx -y @pipeworx/mcp-reginfo
139
+ ```
140
+
141
+ It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
142
+ for **only** this pack's tools — none of the shared meta-tools the gateway
143
+ connection above adds. Same source, same tools, no ask_pipeworx routing.
144
+
145
+ ## Using with ask_pipeworx
146
+
147
+ Instead of calling tools directly, you can ask questions in plain English —
148
+ this works on the pack endpoint above as well as on the full gateway:
149
+
150
+ ```
151
+ ask_pipeworx({ question: "your question about Reginfo data" })
152
+ ```
153
+
154
+ The gateway picks the right tool and fills the arguments automatically.
155
+
156
+ ## More
157
+
158
+ - [Docs and guides](https://pipeworx.io/docs)
159
+ - [pipeworx.io](https://pipeworx.io)
160
+
161
+ ## License
162
+
163
+ 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-reginfo",
3
+ "version": "0.1.0",
4
+ "description": "reginfo MCP — the Unified Agenda of Federal Regulatory and Deregulatory",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "bin": {
9
+ "mcp-reginfo": "bin/cli.js"
10
+ },
11
+ "keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "reginfo"],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/pipeworx-io/mcp-reginfo.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/reginfo",
4
+ "title": "Reginfo",
5
+ "description": "reginfo MCP — the Unified Agenda of Federal Regulatory and Deregulatory",
6
+ "version": "0.1.0",
7
+ "websiteUrl": "https://pipeworx.io/packs/reginfo",
8
+ "repository": {
9
+ "url": "https://github.com/pipeworx-io/mcp-reginfo",
10
+ "source": "github"
11
+ },
12
+ "remotes": [
13
+ {
14
+ "type": "streamable-http",
15
+ "url": "https://gateway.pipeworx.io/reginfo/mcp"
16
+ }
17
+ ]
18
+ }