@betanyc/nyc-charter-laws-rules 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -112,11 +112,11 @@ get_version()
112
112
  Example response:
113
113
 
114
114
  ```
115
- NYC Charter: Current through Local Law 2026/086, enacted April 25, 2026, and includes amendments effective through May 17, 2026. (854 sections)
116
- Administrative Code: Current through Local Law 2026/086, enacted April 25, 2026, and includes amendments effective through May 17, 2026. (12551 sections)
117
- Rules of NYC: Current through rules effective May 15, 2026. (8645 sections)
115
+ NYC Charter: Current through Local Law 2026/094, enacted May 16, 2026, and includes amendments effective through May 17, 2026. (854 sections)
116
+ Administrative Code: Current through Local Law 2026/094, enacted May 16, 2026, and includes amendments effective through May 17, 2026. (12558 sections)
117
+ Rules of NYC: Current through rules effective May 20, 2026. (8645 sections)
118
118
 
119
- Index built: 2026-05-19T19:57:18.179Z
119
+ Index built: 2026-05-26T01:30:51.847Z
120
120
  ```
121
121
 
122
122
  ---
@@ -157,7 +157,7 @@ nyc-charter-laws-rules/
157
157
  └── dist/ ← compiled MCP server (built locally)
158
158
  ```
159
159
 
160
- The JSON and Markdown indexes are committed to the repo. Anyone who clones it gets 22,050 sections across all three documents immediately — no build step required to browse or run the server.
160
+ The JSON and Markdown indexes are committed to the repo. Anyone who clones it gets 22,057 sections across all three documents immediately — no build step required to browse or run the server.
161
161
 
162
162
  ---
163
163
 
@@ -165,11 +165,11 @@ The JSON and Markdown indexes are committed to the repo. Anyone who clones it ge
165
165
 
166
166
  All content is sourced from publicly available bulk XML downloads hosted by [American Legal Publishing](https://codelibrary.amlegal.com/codes/newyorkcity/latest/overview). No API key required.
167
167
 
168
- | Document | Sections | Bulk XML source |
169
- |---|---|---|
170
- | NYC Charter | 854 | `http://files.amlegal.com/pdffiles/NewYorkCity/Charter/XML.zip` |
171
- | NYC Administrative Code | 12,551 | `http://files.amlegal.com/pdffiles/NewYorkCity/Admin/XML.zip` |
172
- | Rules of the City of New York | 8,645 | `http://files.amlegal.com/pdffiles/NewYorkCity/Rules/XML.zip` |
168
+ | Document | Sections | Current Through | Bulk XML source |
169
+ |---|---|---|---|
170
+ | NYC Charter | 854 | LL 2026/094, amendments through May 17, 2026 | `http://files.amlegal.com/pdffiles/NewYorkCity/Charter/XML.zip` |
171
+ | NYC Administrative Code | 12,558 | LL 2026/094, amendments through May 17, 2026 | `http://files.amlegal.com/pdffiles/NewYorkCity/Admin/XML.zip` |
172
+ | Rules of the City of New York | 8,645 | Rules effective through May 20, 2026 | `http://files.amlegal.com/pdffiles/NewYorkCity/Rules/XML.zip` |
173
173
 
174
174
  AML publishes updated ZIPs as new local laws and rules are adopted. Re-run `npm run fetch-data && npm run build-index` to refresh the index and commit the updated files.
175
175
 
@@ -183,6 +183,23 @@ AML publishes updated ZIPs as new local laws and rules are adopted. Re-run `npm
183
183
 
184
184
  ## Installation
185
185
 
186
+ ### npx (recommended — no install required)
187
+
188
+ ```bash
189
+ npx @betanyc/nyc-charter-laws-rules
190
+ ```
191
+
192
+ The corpus data is bundled in the package — no setup required.
193
+
194
+ ### Global install
195
+
196
+ ```bash
197
+ npm install -g @betanyc/nyc-charter-laws-rules
198
+ nyc-charter-laws-rules
199
+ ```
200
+
201
+ ### From source (for development or refreshing the index)
202
+
186
203
  ```bash
187
204
  git clone https://github.com/BetaNYC/nyc-charter-laws-rules.git
188
205
  cd nyc-charter-laws-rules
@@ -191,11 +208,40 @@ npm install
191
208
 
192
209
  ---
193
210
 
211
+ ## Claude Desktop configuration
212
+
213
+ Add to your `claude_desktop_config.json`:
214
+
215
+ ```json
216
+ {
217
+ "mcpServers": {
218
+ "nyc-charter-laws-rules": {
219
+ "command": "npx",
220
+ "args": ["-y", "@betanyc/nyc-charter-laws-rules"]
221
+ }
222
+ }
223
+ }
224
+ ```
225
+
226
+ Or if installed globally:
227
+
228
+ ```json
229
+ {
230
+ "mcpServers": {
231
+ "nyc-charter-laws-rules": {
232
+ "command": "nyc-charter-laws-rules"
233
+ }
234
+ }
235
+ }
236
+ ```
237
+
238
+ ---
239
+
194
240
  ## Setup
195
241
 
196
242
  **The index is already committed — no data download needed to run the server.**
197
243
 
198
- **Step 1 — Build and start the server:**
244
+ **Step 1 — Build and start the server (from source only):**
199
245
 
200
246
  ```bash
201
247
  npm run build
@@ -231,24 +277,22 @@ The `data/raw/` directory is gitignored — the ZIPs will not be committed.
231
277
 
232
278
  ## Configuration
233
279
 
234
- ### Claude Desktop
280
+ ### Claude Code
235
281
 
236
- Add to your `claude_desktop_config.json`:
282
+ Add to your project's `.mcp.json` or `.claude/settings.json`:
237
283
 
238
284
  ```json
239
285
  {
240
286
  "mcpServers": {
241
287
  "nyc-charter-laws-rules": {
242
- "command": "node",
243
- "args": ["/path/to/nyc-charter-laws-rules/dist/index.js"]
288
+ "command": "npx",
289
+ "args": ["-y", "@betanyc/nyc-charter-laws-rules"]
244
290
  }
245
291
  }
246
292
  }
247
293
  ```
248
294
 
249
- ### Claude Code
250
-
251
- Add to your project's `.mcp.json` or `.claude/settings.json`:
295
+ Or if running from a local clone:
252
296
 
253
297
  ```json
254
298
  {
@@ -299,6 +343,22 @@ Add to your project's `.mcp.json` or `.claude/settings.json`:
299
343
 
300
344
  ---
301
345
 
346
+ ## Changelog
347
+
348
+ ### 0.1.2 — May 25, 2026
349
+ - Updated index: Charter and Admin Code now current through **Local Law 2026/094** (enacted May 16, 2026), up from LL 2026/086
350
+ - Updated index: Rules now current through **May 20, 2026**, up from May 15, 2026
351
+ - Admin Code gained 7 sections (12,551 → 12,558)
352
+ - Total indexed sections: 22,057 (up from 22,050)
353
+
354
+ ### 0.1.1
355
+ - Initial published release with full JSON and Markdown indexes committed to repo
356
+
357
+ ### 0.1.0
358
+ - Initial release
359
+
360
+ ---
361
+
302
362
  ## Contributing
303
363
 
304
364
  Issues and pull requests welcome at [github.com/BetaNYC/nyc-charter-laws-rules](https://github.com/BetaNYC/nyc-charter-laws-rules).