ris-mcp-ts 1.8.0 → 1.8.1

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.
Files changed (2) hide show
  1. package/README.md +33 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
6
  [![Node.js](https://img.shields.io/badge/node-%3E%3D20.19.0-brightgreen.svg)](https://nodejs.org/)
7
7
  [![MCP](https://img.shields.io/badge/MCP-compatible-blue.svg)](https://modelcontextprotocol.io/)
8
- [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.philrox%2Fris-green.svg)](https://registry.modelcontextprotocol.io)
8
+ [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.Honeyfield--Org%2Fris-green.svg)](https://registry.modelcontextprotocol.io)
9
9
 
10
10
  An [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that gives AI assistants access to Austria's official legal database — the **Rechtsinformationssystem (RIS)**.
11
11
 
@@ -31,7 +31,7 @@ The server translates these natural language requests into structured API calls
31
31
 
32
32
  ## Features
33
33
 
34
- - **12 specialized tools** covering all major RIS collections
34
+ - **13 specialized tools** covering all major RIS collections
35
35
  - **Federal law** (ABGB, StGB, UGB, ...) and **state law** for all 9 provinces
36
36
  - **Court decisions** from 16 court types (Supreme Court, Constitutional Court, Administrative Court, ...)
37
37
  - **Law gazettes** — Federal (BGBl) and state (LGBl)
@@ -154,6 +154,7 @@ npx -y ris-mcp-ts
154
154
  | `ris_landesgesetzblatt` | Search State Law Gazettes (LGBl) |
155
155
  | `ris_regierungsvorlagen` | Search government bills |
156
156
  | `ris_dokument` | Retrieve full document text by ID or URL |
157
+ | `ris_dokument_abschnitt` | Return one section of an open document by character offset (feeds the document viewer widget) |
157
158
  | `ris_bezirke` | Search district authority announcements |
158
159
  | `ris_gemeinden` | Search municipal law and regulations |
159
160
  | `ris_sonstige` | Search miscellaneous collections (8 sub-apps) |
@@ -408,6 +409,36 @@ At least one of `dokumentnummer` or `url` is required. Long documents are trunca
408
409
 
409
410
  </details>
410
411
 
412
+ <details>
413
+ <summary><strong>ris_dokument_abschnitt</strong> — Document Section</summary>
414
+
415
+ Return one section of a document already open in the RIS document viewer. Intended for the viewer widget, not for direct use — for the full text of a document use `ris_dokument`.
416
+
417
+ The tool is declared app-only (`_meta.ui.visibility: ["app"]`): hosts that honour the flag hide it from the model and let only the viewer widget call it. It serves the same text `ris_dokument` produced, from the document cache where possible, so the offsets the viewer holds address the same document.
418
+
419
+ **Inputs:**
420
+
421
+ | Parameter | Type | Description |
422
+ |-----------|------|-------------|
423
+ | `dokumentnummer` | string | RIS document number of the open document - from the ris_dokument call that opened it |
424
+ | `url` | string | Direct URL of the open document, for documents opened by URL rather than by number |
425
+ | `offset` | number | Character offset into the document text; 0 returns the first section and the outline (default: 0) |
426
+
427
+ At least one of `dokumentnummer` or `url` is required. Each section is 25,000 characters long.
428
+
429
+ **Output (`structuredContent`):**
430
+
431
+ | Field | Type | Description |
432
+ |-------|------|-------------|
433
+ | `text` | string | The requested section of the document text |
434
+ | `total_length` | number | Length of the complete document text — compare across calls to detect that the document was re-fetched and offsets shifted |
435
+ | `next_offset` | number \| null | Offset to request for the following section, or null at the end of the document |
436
+ | `outline` | array | Jump targets of the document. Only returned for offset 0; empty when the document has no headings |
437
+ | `dokumentnummer` | string | RIS document number of the document this section belongs to (absent for documents opened by URL) |
438
+ | `source_url` | string | RIS URL the document text was rendered from |
439
+
440
+ </details>
441
+
411
442
  <details>
412
443
  <summary><strong>ris_bezirke</strong> — District Authority Announcements</summary>
413
444
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ris-mcp-ts",
3
- "version": "1.8.0",
4
- "mcpName": "io.github.philrox/ris",
3
+ "version": "1.8.1",
4
+ "mcpName": "io.github.Honeyfield-Org/ris",
5
5
  "description": "MCP Server for Austrian Legal Information System (RIS) - TypeScript",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",