@cyanheads/ris-austria-mcp-server 0.4.0 → 0.4.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.
- package/AGENTS.md +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +3 -3
- package/changelog/0.4.x/0.4.1.md +15 -0
- package/dist/mcp-server/resources/definitions/ris-document.resource.d.ts +4 -3
- package/dist/mcp-server/resources/definitions/ris-document.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/ris-document.resource.js +11 -6
- package/dist/mcp-server/resources/definitions/ris-document.resource.js.map +1 -1
- package/dist/mcp-server/tools/definitions/ris-get-document.tool.d.ts +95 -34
- package/dist/mcp-server/tools/definitions/ris-get-document.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/ris-get-document.tool.js +198 -46
- package/dist/mcp-server/tools/definitions/ris-get-document.tool.js.map +1 -1
- package/package.json +1 -1
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** ris-austria-mcp-server
|
|
4
|
-
**Version:** 0.4.
|
|
4
|
+
**Version:** 0.4.1
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.11.0`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** ris-austria-mcp-server
|
|
4
|
-
**Version:** 0.4.
|
|
4
|
+
**Version:** 0.4.1
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.11.0`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
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/ris-austria-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/ris-austria-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -132,8 +132,8 @@ Read and export a single document.
|
|
|
132
132
|
- `format`: `markdown` (default, boilerplate stripped), raw `html`, RIS `xml`, or `urls_only`
|
|
133
133
|
- Every response carries a binding status: `authentic` (with amtssigniert PDF URL), `consolidated_informational`, `historical_record`, `decision`, `preparatory`, `administrative_directive`, or `translation`
|
|
134
134
|
- Applications that publish only the signed PDF (district and municipal promulgations, court rules) or only scans (1848–1940 gazettes, ÖNB-hosted) return a `format_unavailable` notice with the usable URLs instead of failing
|
|
135
|
-
- Markdown over 40,000 bytes returns
|
|
136
|
-
-
|
|
135
|
+
- Markdown over 40,000 bytes returns an outline (`kind: outline`) instead of truncating. Re-call with `sections:[…]` to pull the entries you need
|
|
136
|
+
- Outline entries are the document's §/Artikel/Anlage sections, or — for the court decisions, gazette bodies and announcements that carry no such headings — contiguous byte windows named `Part 1 of N` … `Part N of N`, cut at line breaks and covering the text with nothing dropped. Raw `html`/`xml` are never sliced and return whole at any size
|
|
137
137
|
- Returns content, not fresh metadata. The upstream API has no document-by-number search, so document numbers come from a prior search or lookup result
|
|
138
138
|
|
|
139
139
|
---
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "ris_get_document now outlines heading-free markdown that overflows the byte budget into retrievable byte windows, instead of returning it whole at any size; also fixes a join bug in multi-section retrieval."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.4.1 — 2026-07-31
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`ris_get_document` / `ris://document/…`** — markdown that overflows the 40,000-byte budget with no §/Artikel/Anlage headings (most court decisions, gazette and announcement bodies, `§ 0` promulgation records) no longer returns whole at any size. `windowDocument()` cuts it into near-even byte windows snapped to line boundaries, named `Part n of N` in document order; `addressableSections()` resolves both the outline and the `sections:[…]` selector to §/Artikel/Anlage sections where the markdown carries at least two, else to windows. `html` and `xml` remain untouched passthroughs regardless of size. ([#33](https://github.com/cyanheads/ris-austria-mcp-server/issues/33))
|
|
12
|
+
|
|
13
|
+
## Fixed
|
|
14
|
+
|
|
15
|
+
- **`selectDocumentSections` multi-entry join** — a `sections:[…]` call naming several entries joined their text with `\n\n`, bytes not present in the source, inflating the returned size past the sum of the advertised entries and, in a table-heavy document, splitting a table at the seam. Entries now join with nothing between them and reassemble byte-for-byte. Predates the windowing change above; affects any multi-section retrieval.
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* of ris_get_document. Reads the same content path (HTML rendition converted to markdown) for
|
|
4
4
|
* an (application, documentNumber) pair. Applications with no text rendition (authentic-PDF-only,
|
|
5
5
|
* PDF-only, or metadata-only) return a short note pointing at the usable artifact instead of
|
|
6
|
-
* text. Oversized text degrades to the same
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* text. Oversized text degrades to the same outline the tool emits — §/Artikel/Anlage sections,
|
|
7
|
+
* or `Part n of N` byte windows where the rendition carries no such headings — plus a note
|
|
8
|
+
* pointing at ris_get_document (which carries the sections selector this bare-string resource
|
|
9
|
+
* cannot). Backed by the shared renderDocument helper from the tool definition.
|
|
9
10
|
* @module mcp-server/resources/definitions/ris-document
|
|
10
11
|
*/
|
|
11
12
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ris-document.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/ris-document.resource.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ris-document.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/ris-document.resource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAa3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;GA6F9B,CAAC"}
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
* of ris_get_document. Reads the same content path (HTML rendition converted to markdown) for
|
|
4
4
|
* an (application, documentNumber) pair. Applications with no text rendition (authentic-PDF-only,
|
|
5
5
|
* PDF-only, or metadata-only) return a short note pointing at the usable artifact instead of
|
|
6
|
-
* text. Oversized text degrades to the same
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* text. Oversized text degrades to the same outline the tool emits — §/Artikel/Anlage sections,
|
|
7
|
+
* or `Part n of N` byte windows where the rendition carries no such headings — plus a note
|
|
8
|
+
* pointing at ris_get_document (which carries the sections selector this bare-string resource
|
|
9
|
+
* cannot). Backed by the shared renderDocument helper from the tool definition.
|
|
9
10
|
* @module mcp-server/resources/definitions/ris-document
|
|
10
11
|
*/
|
|
11
12
|
import { resource, z } from '@cyanheads/mcp-ts-core';
|
|
12
13
|
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
13
|
-
import { exampleSectionNames, outlineDocument, renderDocument, renderOutlineSections, } from '../../../mcp-server/tools/definitions/ris-get-document.tool.js';
|
|
14
|
+
import { addressableSections, exampleSectionNames, outlineDocument, renderDocument, renderOutlineSections, } from '../../../mcp-server/tools/definitions/ris-get-document.tool.js';
|
|
14
15
|
import { RIS_APPLICATIONS } from '../../../services/ris/reference/index.js';
|
|
15
16
|
const APPLICATION_CODES = RIS_APPLICATIONS.map((app) => app.code);
|
|
16
17
|
export const risDocumentResource = resource('ris://document/{application}/{documentNumber}', {
|
|
@@ -79,9 +80,13 @@ export const risDocumentResource = resource('ris://document/{application}/{docum
|
|
|
79
80
|
return rendition.unavailableNotice;
|
|
80
81
|
if (rendition.text === undefined)
|
|
81
82
|
return '';
|
|
82
|
-
// Oversized markdown degrades to
|
|
83
|
+
// Oversized markdown degrades to an outline plus a notice pointing at the
|
|
83
84
|
// ris_get_document tool — this bare-string surface carries no section selector.
|
|
84
|
-
const
|
|
85
|
+
const addressable = addressableSections(rendition.text, 'markdown');
|
|
86
|
+
const size = rendition.byteSize !== undefined ? ` (${rendition.byteSize} bytes)` : '';
|
|
87
|
+
const decision = outlineDocument(rendition.text, addressable, (sections) => addressable[0]?.kind === 'window'
|
|
88
|
+
? `Document too large to inline${size}. It carries no §/Artikel/Anlage headings, so it is listed as ${sections.length} contiguous windows cut at line breaks — read them in the order they are named. Use the ris_get_document tool with sections:[…] to retrieve one — e.g. ${exampleSectionNames(addressable)}. This resource carries no selector.`
|
|
89
|
+
: `Document too large to inline${size}. Use the ris_get_document tool with sections:[…] to retrieve specific sections — e.g. ${exampleSectionNames(sections)}. This resource carries no section selector.`);
|
|
85
90
|
return decision.kind === 'full'
|
|
86
91
|
? decision.text
|
|
87
92
|
: `${renderOutlineSections(decision.sections)}\n\n${decision.notice}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ris-document.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/ris-document.resource.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ris-document.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/ris-document.resource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BA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E,CAAC;QAE5C,0EAA0E;QAC1E,gFAAgF;QAChF,MAAM,WAAW,GAAG,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACpE,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CACzE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,QAAQ;YAC/B,CAAC,CAAC,+BAA+B,IAAI,iEAAiE,QAAQ,CAAC,MAAM,0JAA0J,mBAAmB,CAAC,WAAW,CAAC,sCAAsC;YACrV,CAAC,CAAC,+BAA+B,IAAI,0FAA0F,mBAAmB,CAAC,QAAQ,CAAC,8CAA8C,CAC7M,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,KAAK,MAAM;YAC7B,CAAC,CAAC,QAAQ,CAAC,IAAI;YACf,CAAC,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC1E,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* metadata-only) — a text-format request against a non-text application degrades to a
|
|
11
11
|
* `format_unavailable` notice on a success result, never an error. Markdown conversion drops
|
|
12
12
|
* the `.sr-only` screen-reader twin RIS ships beside every abbreviated citation, keeping the
|
|
13
|
-
* visible form; `html` and `xml` pass through untouched. Oversized markdown
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* visible form; `html` and `xml` pass through untouched. Oversized markdown overflows to a
|
|
14
|
+
* retrievable outline rather than a silent truncation — its §/Artikel/Anlage sections, or
|
|
15
|
+
* `Part n of N` byte windows where it carries no such headings; a follow-up call with
|
|
16
|
+
* `sections:[…]` returns just the chosen entries, and a selector matching nothing gets the
|
|
17
|
+
* outline back with a notice rather than the whole document. The shared
|
|
18
18
|
* {@link renderDocument} helper backs both this tool and the `ris://document/…` resource.
|
|
19
19
|
* @module mcp-server/tools/definitions/ris-get-document
|
|
20
20
|
*/
|
|
@@ -24,20 +24,22 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
|
24
24
|
import { type OutlineResult, type SectionMeta } from '@cyanheads/mcp-ts-core/utils';
|
|
25
25
|
import type { RisBindingStatus } from '../../../services/ris/reference/index.js';
|
|
26
26
|
/** Requested output format. `markdown` and `html` both read the HTML rendition. */
|
|
27
|
-
type DocumentFormat = 'markdown' | 'html' | 'xml' | 'urls_only';
|
|
27
|
+
export type DocumentFormat = 'markdown' | 'html' | 'xml' | 'urls_only';
|
|
28
28
|
/**
|
|
29
|
-
* Serialized-length budget for inlining document text
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
29
|
+
* Serialized-length budget for inlining document text, and the size of one addressable
|
|
30
|
+
* window. Above it, markdown overflows to an outline instead of returning whole — its
|
|
31
|
+
* §/Artikel/Anlage sections where it carries at least two such headings, else the byte
|
|
32
|
+
* windows {@link windowDocument} cuts, so a rendition the segmenter cannot split is
|
|
33
|
+
* retrievable rather than returned whole at any size (court decisions, gazette and
|
|
34
|
+
* announcement bodies, and consolidated `§ 0` promulgation records all carry no headings,
|
|
35
|
+
* measured live to 399,972 bytes on a Bvwg decision).
|
|
35
36
|
*
|
|
36
37
|
* Sized against what one tool result can carry into a working context (≈10K tokens of legal
|
|
37
38
|
* prose), not against what counts as a pathological document: across live samples the
|
|
38
39
|
* documents callers routinely read land well under it — consolidated-law sections at 2–3 KB,
|
|
39
40
|
* drafts and bills at 6–36 KB — while the multi-act bills and long translations that motivated
|
|
40
|
-
* the outline (71 KB–199 KB) route through it.
|
|
41
|
+
* the outline (71 KB–199 KB) route through it. One number serves both roles because a window
|
|
42
|
+
* is by definition one result's worth, which is what the budget already means.
|
|
41
43
|
*
|
|
42
44
|
* Handed to `outlineOnOverflow`, which measures `JSON.stringify` length (≈ UTF-8 bytes for
|
|
43
45
|
* the mostly-Latin legal text); the exact `byte_size` is reported separately.
|
|
@@ -91,16 +93,22 @@ type ParsedDocumentUrl = {
|
|
|
91
93
|
*/
|
|
92
94
|
export declare function parseDocumentUrl(url: string, contentBaseUrl: string): ParsedDocumentUrl;
|
|
93
95
|
/**
|
|
94
|
-
* One addressable
|
|
95
|
-
* heading up to the next
|
|
96
|
-
* before its first heading
|
|
96
|
+
* One addressable entry of a rendered RIS document. Two kinds, never mixed in one roster:
|
|
97
|
+
* a `section` is a structural unit sliced from its heading up to the next (plus the leading
|
|
98
|
+
* `Präambel` when the document opens with text before its first heading); a `window` is a
|
|
99
|
+
* contiguous byte slice of a document carrying no such headings.
|
|
97
100
|
*/
|
|
98
101
|
export interface DocumentSection {
|
|
99
|
-
/** UTF-8 byte size of the
|
|
102
|
+
/** UTF-8 byte size of the entry's text. */
|
|
100
103
|
readonly bytes: number;
|
|
101
|
-
/**
|
|
104
|
+
/** Which roster this entry belongs to — see {@link addressableSections}. */
|
|
105
|
+
readonly kind: 'section' | 'window';
|
|
106
|
+
/**
|
|
107
|
+
* Entry identifier — a §/Artikel/Anlage marker (article-qualified so names stay unique)
|
|
108
|
+
* for a section, `Part n of N` for a window.
|
|
109
|
+
*/
|
|
102
110
|
readonly name: string;
|
|
103
|
-
/** The
|
|
111
|
+
/** The entry's text: heading to next heading for a section, line to line for a window. */
|
|
104
112
|
readonly text: string;
|
|
105
113
|
}
|
|
106
114
|
/**
|
|
@@ -112,40 +120,93 @@ export interface DocumentSection {
|
|
|
112
120
|
* html/xml rendition) — the caller reads that as "nothing to outline".
|
|
113
121
|
*/
|
|
114
122
|
export declare function segmentDocument(text: string): DocumentSection[];
|
|
123
|
+
/**
|
|
124
|
+
* Cut rendered document text into near-even windows snapped to line boundaries, named
|
|
125
|
+
* `Part 1 of N` … `Part N of N` in document order. The retrieval path for a rendition
|
|
126
|
+
* {@link segmentDocument} cannot split; returns `[]` under the budget and for text that
|
|
127
|
+
* carries no line break to cut on, which the caller reads as "nothing to outline".
|
|
128
|
+
*
|
|
129
|
+
* Even windows rather than fill-the-budget windows: filling leaves a runt tail (a 40,440-byte
|
|
130
|
+
* decision splits 39,602 + 838, buying a round-trip for a scrap) while an even split of the
|
|
131
|
+
* same document is 20,196 + 20,244. Each window's target is the bytes still unassigned over
|
|
132
|
+
* the windows still to cut, so the remainder that snapping to the next line break carries
|
|
133
|
+
* forward is spread across the rest instead of piling onto the tail.
|
|
134
|
+
*
|
|
135
|
+
* Two rules keep the budget a ceiling rather than an aspiration. A window never takes a line
|
|
136
|
+
* that would carry it past the budget, so snapping to the next line break cannot overshoot;
|
|
137
|
+
* and when the tail still lands over — the target sitting just under the budget leaves the
|
|
138
|
+
* last window everything the earlier ones declined — the window count rises until every
|
|
139
|
+
* window fits. A line longer than the budget is the exception, and the reason the count stops
|
|
140
|
+
* rising rather than climbing to one window per line: splitting inside a line would put the
|
|
141
|
+
* cut where the caller cannot see it, so such a line sits alone in a window that goes over.
|
|
142
|
+
*
|
|
143
|
+
* Window bytes sum to the document's byte size exactly — the windows concatenate back to the
|
|
144
|
+
* input, so nothing is dropped or double-counted.
|
|
145
|
+
*/
|
|
146
|
+
export declare function windowDocument(text: string, budget: number): DocumentSection[];
|
|
147
|
+
/**
|
|
148
|
+
* The one roster of what a caller can address in a rendition — §/Artikel/Anlage sections
|
|
149
|
+
* where the markdown carries at least two of them, else the byte windows an over-budget
|
|
150
|
+
* document is cut into. Both the outline and the `sections:[…]` selector resolve through
|
|
151
|
+
* here, so every entry the outline advertises is retrievable by name.
|
|
152
|
+
*
|
|
153
|
+
* Markdown only. `html` and `xml` are byte-identical passthroughs of the published artifact
|
|
154
|
+
* and a mid-document slice of either is not well-formed, so they stay whole at any size and
|
|
155
|
+
* a caller who needs one has `content_urls`.
|
|
156
|
+
*
|
|
157
|
+
* The two-entry floor matches `outlineOnOverflow`'s own short-circuit: an outline whose only
|
|
158
|
+
* possible `sections` argument returns the same bytes costs a round-trip and buys nothing.
|
|
159
|
+
*/
|
|
160
|
+
export declare function addressableSections(text: string, format: DocumentFormat): DocumentSection[];
|
|
115
161
|
/** Outcome of resolving a `sections:[…]` selector against a rendered document. */
|
|
116
162
|
export interface SectionSelection {
|
|
117
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* The document's whole entry roster — what the caller can re-pick from. Sections come
|
|
165
|
+
* largest first; windows keep document order (see {@link outlineDocument}).
|
|
166
|
+
*/
|
|
118
167
|
readonly available: SectionMeta[];
|
|
119
|
-
/** Concatenated text of the matched
|
|
168
|
+
/** Concatenated text of the matched entries, in document order; `''` when none matched. */
|
|
120
169
|
readonly text: string;
|
|
121
|
-
/** Requested names that matched no
|
|
170
|
+
/** Requested names that matched no entry, in the order requested. */
|
|
122
171
|
readonly unmatched: string[];
|
|
172
|
+
/** Whether `available` lists byte windows rather than §/Artikel/Anlage sections. */
|
|
173
|
+
readonly windowed: boolean;
|
|
123
174
|
}
|
|
124
175
|
/**
|
|
125
176
|
* Resolve a `sections:[…]` selector against rendered document text — the selective-retrieval
|
|
126
|
-
* counterpart to the outline
|
|
127
|
-
*
|
|
177
|
+
* counterpart to the outline, resolving through the same {@link addressableSections} roster
|
|
178
|
+
* so every advertised name retrieves. The handler re-fetches the document (the upstream query
|
|
179
|
+
* is deterministic, so it reproduces the same text) and slices it to the requested entries.
|
|
128
180
|
* Reports the unmatched names and the full roster alongside the matched text so the handler
|
|
129
181
|
* can disclose a mismatch instead of silently returning something the caller didn't ask for.
|
|
130
182
|
*/
|
|
131
|
-
export declare function selectDocumentSections(text: string, want: readonly string[]): SectionSelection;
|
|
183
|
+
export declare function selectDocumentSections(text: string, want: readonly string[], format: DocumentFormat): SectionSelection;
|
|
132
184
|
/**
|
|
133
185
|
* Apply the outline-on-overflow contract to rendered document text: whole under the byte
|
|
134
|
-
* budget (or with fewer than two
|
|
135
|
-
*
|
|
136
|
-
*
|
|
186
|
+
* budget (or with fewer than two addressable entries), else an outline of `roster`. The
|
|
187
|
+
* caller passes the roster it already resolved through {@link addressableSections}, so the
|
|
188
|
+
* outline it advertises and the wording of its notice describe the same entries; the `notice`
|
|
189
|
+
* builder is caller-specific (each points at its own re-call).
|
|
190
|
+
*
|
|
191
|
+
* `outlineOnOverflow` sorts entries largest first and offers no opt-out. That reads as a menu
|
|
192
|
+
* for a section roster, where the names say what each entry is. A window roster is a reading
|
|
193
|
+
* sequence, and a caller that walks `sections` in array order — the obvious way to read one
|
|
194
|
+
* — would take the document out of order, so document order is restored for it here.
|
|
137
195
|
*/
|
|
138
|
-
export declare function outlineDocument(text: string, notice: (sections: SectionMeta[]) => string): OutlineResult<{
|
|
196
|
+
export declare function outlineDocument(text: string, roster: readonly DocumentSection[], notice: (sections: SectionMeta[]) => string): OutlineResult<{
|
|
139
197
|
text: string;
|
|
140
198
|
}>;
|
|
141
199
|
/** Name the three largest sections, quoted, as examples for a re-call notice. */
|
|
142
200
|
export declare function exampleSectionNames(sections: readonly SectionMeta[]): string;
|
|
143
201
|
/**
|
|
144
|
-
* Render an outline — the
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
202
|
+
* Render an outline — the roster the agent picks from — to markdown. Shared by the tool's
|
|
203
|
+
* `format()` (as a content block) and the resource (as its body), so both client surfaces
|
|
204
|
+
* list identical entries. A roster is all sections or all windows ({@link addressableSections}
|
|
205
|
+
* never mixes them), and the heading names which, since this surface carries only names and
|
|
206
|
+
* byte sizes: windows are a reading sequence listed in document order, sections a menu listed
|
|
207
|
+
* largest first. Deliberately says nothing about *why* the outline was returned: the tool
|
|
208
|
+
* emits one both on a byte overflow and on an unmatched `sections` selector, and the
|
|
209
|
+
* accompanying notice is what separates the two.
|
|
149
210
|
*/
|
|
150
211
|
export declare function renderOutlineSections(sections: readonly SectionMeta[]): string;
|
|
151
212
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ris-get-document.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/ris-get-document.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAA6B,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAmB1F,mFAAmF;AACnF,
|
|
1
|
+
{"version":3,"file":"ris-get-document.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/ris-get-document.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAA6B,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAmB1F,mFAAmF;AACnF,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,CAAC;AAEvE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAkG3C,oEAAoE;AACpE,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,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CAK5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAO9E;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,OAAO,EACZ,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAuC5B;AAaD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsVzB,CAAC"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* metadata-only) — a text-format request against a non-text application degrades to a
|
|
11
11
|
* `format_unavailable` notice on a success result, never an error. Markdown conversion drops
|
|
12
12
|
* the `.sr-only` screen-reader twin RIS ships beside every abbreviated citation, keeping the
|
|
13
|
-
* visible form; `html` and `xml` pass through untouched. Oversized markdown
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* visible form; `html` and `xml` pass through untouched. Oversized markdown overflows to a
|
|
14
|
+
* retrievable outline rather than a silent truncation — its §/Artikel/Anlage sections, or
|
|
15
|
+
* `Part n of N` byte windows where it carries no such headings; a follow-up call with
|
|
16
|
+
* `sections:[…]` returns just the chosen entries, and a selector matching nothing gets the
|
|
17
|
+
* outline back with a notice rather than the whole document. The shared
|
|
18
18
|
* {@link renderDocument} helper backs both this tool and the `ris://document/…` resource.
|
|
19
19
|
* @module mcp-server/tools/definitions/ris-get-document
|
|
20
20
|
*/
|
|
@@ -36,18 +36,20 @@ const BINDING_STATUSES = [
|
|
|
36
36
|
'translation',
|
|
37
37
|
];
|
|
38
38
|
/**
|
|
39
|
-
* Serialized-length budget for inlining document text
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* Serialized-length budget for inlining document text, and the size of one addressable
|
|
40
|
+
* window. Above it, markdown overflows to an outline instead of returning whole — its
|
|
41
|
+
* §/Artikel/Anlage sections where it carries at least two such headings, else the byte
|
|
42
|
+
* windows {@link windowDocument} cuts, so a rendition the segmenter cannot split is
|
|
43
|
+
* retrievable rather than returned whole at any size (court decisions, gazette and
|
|
44
|
+
* announcement bodies, and consolidated `§ 0` promulgation records all carry no headings,
|
|
45
|
+
* measured live to 399,972 bytes on a Bvwg decision).
|
|
45
46
|
*
|
|
46
47
|
* Sized against what one tool result can carry into a working context (≈10K tokens of legal
|
|
47
48
|
* prose), not against what counts as a pathological document: across live samples the
|
|
48
49
|
* documents callers routinely read land well under it — consolidated-law sections at 2–3 KB,
|
|
49
50
|
* drafts and bills at 6–36 KB — while the multi-act bills and long translations that motivated
|
|
50
|
-
* the outline (71 KB–199 KB) route through it.
|
|
51
|
+
* the outline (71 KB–199 KB) route through it. One number serves both roles because a window
|
|
52
|
+
* is by definition one result's worth, which is what the budget already means.
|
|
51
53
|
*
|
|
52
54
|
* Handed to `outlineOnOverflow`, which measures `JSON.stringify` length (≈ UTF-8 bytes for
|
|
53
55
|
* the mostly-Latin legal text); the exact `byte_size` is reported separately.
|
|
@@ -300,6 +302,7 @@ export function segmentDocument(text) {
|
|
|
300
302
|
const seen = (counts.get(name) ?? 0) + 1;
|
|
301
303
|
counts.set(name, seen);
|
|
302
304
|
sections.push({
|
|
305
|
+
kind: 'section',
|
|
303
306
|
name: seen > 1 ? `${name} (${seen})` : name,
|
|
304
307
|
text: slice,
|
|
305
308
|
bytes: encoder.encode(slice).length,
|
|
@@ -321,24 +324,142 @@ export function segmentDocument(text) {
|
|
|
321
324
|
});
|
|
322
325
|
return sections;
|
|
323
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Shape of a window name. `Part n of N` is the one entry name {@link segmentDocument} can
|
|
329
|
+
* never produce — a section name always opens with a §/Artikel/Anlage marker — so it also
|
|
330
|
+
* identifies a roster's kind on a surface that carries only names and byte sizes.
|
|
331
|
+
*/
|
|
332
|
+
const WINDOW_NAME = /^Part \d+ of \d+$/u;
|
|
333
|
+
/**
|
|
334
|
+
* Cut rendered document text into near-even windows snapped to line boundaries, named
|
|
335
|
+
* `Part 1 of N` … `Part N of N` in document order. The retrieval path for a rendition
|
|
336
|
+
* {@link segmentDocument} cannot split; returns `[]` under the budget and for text that
|
|
337
|
+
* carries no line break to cut on, which the caller reads as "nothing to outline".
|
|
338
|
+
*
|
|
339
|
+
* Even windows rather than fill-the-budget windows: filling leaves a runt tail (a 40,440-byte
|
|
340
|
+
* decision splits 39,602 + 838, buying a round-trip for a scrap) while an even split of the
|
|
341
|
+
* same document is 20,196 + 20,244. Each window's target is the bytes still unassigned over
|
|
342
|
+
* the windows still to cut, so the remainder that snapping to the next line break carries
|
|
343
|
+
* forward is spread across the rest instead of piling onto the tail.
|
|
344
|
+
*
|
|
345
|
+
* Two rules keep the budget a ceiling rather than an aspiration. A window never takes a line
|
|
346
|
+
* that would carry it past the budget, so snapping to the next line break cannot overshoot;
|
|
347
|
+
* and when the tail still lands over — the target sitting just under the budget leaves the
|
|
348
|
+
* last window everything the earlier ones declined — the window count rises until every
|
|
349
|
+
* window fits. A line longer than the budget is the exception, and the reason the count stops
|
|
350
|
+
* rising rather than climbing to one window per line: splitting inside a line would put the
|
|
351
|
+
* cut where the caller cannot see it, so such a line sits alone in a window that goes over.
|
|
352
|
+
*
|
|
353
|
+
* Window bytes sum to the document's byte size exactly — the windows concatenate back to the
|
|
354
|
+
* input, so nothing is dropped or double-counted.
|
|
355
|
+
*/
|
|
356
|
+
export function windowDocument(text, budget) {
|
|
357
|
+
const encoder = new TextEncoder();
|
|
358
|
+
const total = encoder.encode(text).length;
|
|
359
|
+
if (total <= budget)
|
|
360
|
+
return [];
|
|
361
|
+
const lines = text.split('\n');
|
|
362
|
+
if (lines.length < 2)
|
|
363
|
+
return []; // no line break to cut on
|
|
364
|
+
const lineBytes = lines.map((line, i) => encoder.encode(line).length + (i === lines.length - 1 ? 0 : 1));
|
|
365
|
+
/** Line-index boundaries of `count` runs, each targeting an even share of what is left. */
|
|
366
|
+
const cut = (count) => {
|
|
367
|
+
const bounds = [0];
|
|
368
|
+
let cursor = 0;
|
|
369
|
+
let consumed = 0;
|
|
370
|
+
for (let remaining = count; remaining > 1; remaining -= 1) {
|
|
371
|
+
const target = (total - consumed) / remaining;
|
|
372
|
+
const limit = lines.length - (remaining - 1); // leave one line per remaining window
|
|
373
|
+
let bytes = 0;
|
|
374
|
+
while (cursor < limit && bytes < target) {
|
|
375
|
+
const next = lineBytes[cursor] ?? 0;
|
|
376
|
+
if (bytes > 0 && bytes + next > budget)
|
|
377
|
+
break;
|
|
378
|
+
bytes += next;
|
|
379
|
+
cursor += 1;
|
|
380
|
+
}
|
|
381
|
+
bounds.push(cursor);
|
|
382
|
+
consumed += bytes;
|
|
383
|
+
}
|
|
384
|
+
bounds.push(lines.length);
|
|
385
|
+
return bounds;
|
|
386
|
+
};
|
|
387
|
+
/** Every run fits the budget, or is the lone over-budget line nothing can split. */
|
|
388
|
+
const fits = (bounds) => bounds.slice(0, -1).every((from, i) => {
|
|
389
|
+
const to = bounds[i + 1] ?? lines.length;
|
|
390
|
+
return to - from <= 1 || lineBytes.slice(from, to).reduce((sum, n) => sum + n, 0) <= budget;
|
|
391
|
+
});
|
|
392
|
+
// A document with fewer lines than the budget asks windows for cannot have more windows
|
|
393
|
+
// than it has lines — every line over the budget is one nothing can split.
|
|
394
|
+
const floor = Math.min(Math.ceil(total / budget), lines.length);
|
|
395
|
+
let bounds = cut(floor);
|
|
396
|
+
for (let count = floor + 1; count <= lines.length && !fits(bounds); count += 1) {
|
|
397
|
+
bounds = cut(count);
|
|
398
|
+
}
|
|
399
|
+
const slices = bounds
|
|
400
|
+
.slice(0, -1)
|
|
401
|
+
.map((from, i) => {
|
|
402
|
+
const to = bounds[i + 1] ?? lines.length;
|
|
403
|
+
return lines.slice(from, to).join('\n') + (to < lines.length ? '\n' : '');
|
|
404
|
+
})
|
|
405
|
+
.filter((slice) => slice !== '');
|
|
406
|
+
if (slices.length < 2)
|
|
407
|
+
return [];
|
|
408
|
+
return slices.map((slice, i) => ({
|
|
409
|
+
kind: 'window',
|
|
410
|
+
name: `Part ${i + 1} of ${slices.length}`,
|
|
411
|
+
text: slice,
|
|
412
|
+
bytes: encoder.encode(slice).length,
|
|
413
|
+
}));
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* The one roster of what a caller can address in a rendition — §/Artikel/Anlage sections
|
|
417
|
+
* where the markdown carries at least two of them, else the byte windows an over-budget
|
|
418
|
+
* document is cut into. Both the outline and the `sections:[…]` selector resolve through
|
|
419
|
+
* here, so every entry the outline advertises is retrievable by name.
|
|
420
|
+
*
|
|
421
|
+
* Markdown only. `html` and `xml` are byte-identical passthroughs of the published artifact
|
|
422
|
+
* and a mid-document slice of either is not well-formed, so they stay whole at any size and
|
|
423
|
+
* a caller who needs one has `content_urls`.
|
|
424
|
+
*
|
|
425
|
+
* The two-entry floor matches `outlineOnOverflow`'s own short-circuit: an outline whose only
|
|
426
|
+
* possible `sections` argument returns the same bytes costs a round-trip and buys nothing.
|
|
427
|
+
*/
|
|
428
|
+
export function addressableSections(text, format) {
|
|
429
|
+
const sections = segmentDocument(text);
|
|
430
|
+
if (sections.length >= 2)
|
|
431
|
+
return sections;
|
|
432
|
+
return format === 'markdown' ? windowDocument(text, OUTLINE_BUDGET_BYTES) : [];
|
|
433
|
+
}
|
|
324
434
|
/**
|
|
325
435
|
* Resolve a `sections:[…]` selector against rendered document text — the selective-retrieval
|
|
326
|
-
* counterpart to the outline
|
|
327
|
-
*
|
|
436
|
+
* counterpart to the outline, resolving through the same {@link addressableSections} roster
|
|
437
|
+
* so every advertised name retrieves. The handler re-fetches the document (the upstream query
|
|
438
|
+
* is deterministic, so it reproduces the same text) and slices it to the requested entries.
|
|
328
439
|
* Reports the unmatched names and the full roster alongside the matched text so the handler
|
|
329
440
|
* can disclose a mismatch instead of silently returning something the caller didn't ask for.
|
|
330
441
|
*/
|
|
331
|
-
export function selectDocumentSections(text, want) {
|
|
332
|
-
const sections =
|
|
442
|
+
export function selectDocumentSections(text, want, format) {
|
|
443
|
+
const sections = addressableSections(text, format);
|
|
444
|
+
const windowed = sections[0]?.kind === 'window';
|
|
333
445
|
const names = new Set(sections.map((section) => section.name));
|
|
334
446
|
const wanted = new Set(want);
|
|
335
447
|
const matched = sections.filter((section) => wanted.has(section.name));
|
|
448
|
+
const available = sections.map(({ name, bytes }) => ({ name, bytes }));
|
|
449
|
+
// Same split as the outline's: a section roster is a menu, so largest first puts the
|
|
450
|
+
// substantial units on top; a window roster is a reading sequence and keeps document order.
|
|
451
|
+
if (!windowed)
|
|
452
|
+
available.sort((a, b) => b.bytes - a.bytes);
|
|
336
453
|
return {
|
|
337
|
-
available
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
454
|
+
available,
|
|
455
|
+
// No separator: every entry is a contiguous slice that already carries the line break
|
|
456
|
+
// ending it, so a multi-entry selection reassembles the source byte for byte and its
|
|
457
|
+
// size is the sum of the byte sizes the outline advertised. Inserting one would put
|
|
458
|
+
// bytes on the wire that are not in the document — enough, in a table-heavy RIS body,
|
|
459
|
+
// to split a table at the seam and orphan its rows from their header row.
|
|
460
|
+
text: matched.map((section) => section.text).join(''),
|
|
341
461
|
unmatched: [...new Set(want)].filter((name) => !names.has(name)),
|
|
462
|
+
windowed,
|
|
342
463
|
};
|
|
343
464
|
}
|
|
344
465
|
/** Quote a caller-supplied section-name list for a notice. */
|
|
@@ -347,16 +468,29 @@ function quoteNames(names) {
|
|
|
347
468
|
}
|
|
348
469
|
/**
|
|
349
470
|
* Apply the outline-on-overflow contract to rendered document text: whole under the byte
|
|
350
|
-
* budget (or with fewer than two
|
|
351
|
-
*
|
|
352
|
-
*
|
|
471
|
+
* budget (or with fewer than two addressable entries), else an outline of `roster`. The
|
|
472
|
+
* caller passes the roster it already resolved through {@link addressableSections}, so the
|
|
473
|
+
* outline it advertises and the wording of its notice describe the same entries; the `notice`
|
|
474
|
+
* builder is caller-specific (each points at its own re-call).
|
|
475
|
+
*
|
|
476
|
+
* `outlineOnOverflow` sorts entries largest first and offers no opt-out. That reads as a menu
|
|
477
|
+
* for a section roster, where the names say what each entry is. A window roster is a reading
|
|
478
|
+
* sequence, and a caller that walks `sections` in array order — the obvious way to read one
|
|
479
|
+
* — would take the document out of order, so document order is restored for it here.
|
|
353
480
|
*/
|
|
354
|
-
export function outlineDocument(text, notice) {
|
|
355
|
-
|
|
481
|
+
export function outlineDocument(text, roster, notice) {
|
|
482
|
+
const decision = outlineOnOverflow({ text }, {
|
|
356
483
|
budget: OUTLINE_BUDGET_BYTES,
|
|
357
|
-
extract: (
|
|
484
|
+
extract: () => roster.map(({ name, bytes }) => ({ name, bytes })),
|
|
358
485
|
notice,
|
|
359
486
|
});
|
|
487
|
+
if (decision.kind === 'full' || roster[0]?.kind !== 'window')
|
|
488
|
+
return decision;
|
|
489
|
+
const order = new Map(roster.map((entry, i) => [entry.name, i]));
|
|
490
|
+
return {
|
|
491
|
+
...decision,
|
|
492
|
+
sections: [...decision.sections].sort((a, b) => (order.get(a.name) ?? 0) - (order.get(b.name) ?? 0)),
|
|
493
|
+
};
|
|
360
494
|
}
|
|
361
495
|
/** Name the three largest sections, quoted, as examples for a re-call notice. */
|
|
362
496
|
export function exampleSectionNames(sections) {
|
|
@@ -366,15 +500,20 @@ export function exampleSectionNames(sections) {
|
|
|
366
500
|
.join(', ');
|
|
367
501
|
}
|
|
368
502
|
/**
|
|
369
|
-
* Render an outline — the
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
503
|
+
* Render an outline — the roster the agent picks from — to markdown. Shared by the tool's
|
|
504
|
+
* `format()` (as a content block) and the resource (as its body), so both client surfaces
|
|
505
|
+
* list identical entries. A roster is all sections or all windows ({@link addressableSections}
|
|
506
|
+
* never mixes them), and the heading names which, since this surface carries only names and
|
|
507
|
+
* byte sizes: windows are a reading sequence listed in document order, sections a menu listed
|
|
508
|
+
* largest first. Deliberately says nothing about *why* the outline was returned: the tool
|
|
509
|
+
* emits one both on a byte overflow and on an unmatched `sections` selector, and the
|
|
510
|
+
* accompanying notice is what separates the two.
|
|
374
511
|
*/
|
|
375
512
|
export function renderOutlineSections(sections) {
|
|
376
513
|
return [
|
|
377
|
-
|
|
514
|
+
WINDOW_NAME.test(sections[0]?.name ?? '')
|
|
515
|
+
? `**${sections.length} windows** (retrieve by name, in this order):`
|
|
516
|
+
: `**${sections.length} sections** (retrieve by name):`,
|
|
378
517
|
...sections.map((section) => `- \`${section.name}\` — ${section.bytes} bytes`),
|
|
379
518
|
].join('\n');
|
|
380
519
|
}
|
|
@@ -436,7 +575,7 @@ const ContentUrlsSchema = z
|
|
|
436
575
|
.describe('Constructed rendition URLs. Empty for authentic-PDF-only (Bvb/GrA/KmGer) and metadata-only (BgblAlt) applications — see authentic_pdf_url and the notice. For a companion document (a draft’s Erläuterungen, Textgegenüberstellung, WFA, cover letter, or annex) these are the companion’s own XML/HTML/PDF, not the parent document’s — constructed rather than read back from RIS, so for the roughly one companion in eight that RIS files as a PDF only, xml and html return 404 and pdf is the one that resolves.');
|
|
437
576
|
export const risGetDocument = tool('ris_get_document', {
|
|
438
577
|
title: 'Get RIS Document',
|
|
439
|
-
description: 'Fetch one RIS document’s full text or its rendition URLs, with explicit binding status and the amtssigniert authentic PDF surfaced wherever it exists. Address the document exactly one of two ways: document_number plus application (both copied verbatim from a ris_search_* or ris_lookup_citation result), or a document_url from a result’s content_urls — or, for a draft’s companion documents (Erläuterungen, Textgegenüberstellung, WFA, cover letter, annexes), a ris_search_drafts record’s materials[].url, which is the only route to them. format: markdown (default — the HTML rendition converted to markdown), html (raw HTML rendition), xml (the RIS Nutzdaten XML), or urls_only (no fetch — every rendition URL, including the Authentisch PDF). Format availability varies by application and the tool degrades explicitly, never silently: consolidated law, gazettes, case law, drafts, and most sectoral collections carry full text; district and municipal promulgations and court rules (Bvb, GrA, KmGer) publish only the signed authentic PDF; party-transparency decisions and council minutes (Upts, Mrp) are PDF-only; the 1848–1940 imperial gazettes (BgblAlt) are metadata-only — for these a text-format request returns a format_unavailable notice with the usable URL, not an error. Every result carries binding_status; only authentic (amtssigniert) publications are legally binding. This tool returns content, not fresh metadata — the metadata rides the search/lookup step that produced the document number. When the markdown text overflows the 40,000-byte budget
|
|
578
|
+
description: 'Fetch one RIS document’s full text or its rendition URLs, with explicit binding status and the amtssigniert authentic PDF surfaced wherever it exists. Address the document exactly one of two ways: document_number plus application (both copied verbatim from a ris_search_* or ris_lookup_citation result), or a document_url from a result’s content_urls — or, for a draft’s companion documents (Erläuterungen, Textgegenüberstellung, WFA, cover letter, annexes), a ris_search_drafts record’s materials[].url, which is the only route to them. format: markdown (default — the HTML rendition converted to markdown), html (raw HTML rendition), xml (the RIS Nutzdaten XML), or urls_only (no fetch — every rendition URL, including the Authentisch PDF). Format availability varies by application and the tool degrades explicitly, never silently: consolidated law, gazettes, case law, drafts, and most sectoral collections carry full text; district and municipal promulgations and court rules (Bvb, GrA, KmGer) publish only the signed authentic PDF; party-transparency decisions and council minutes (Upts, Mrp) are PDF-only; the 1848–1940 imperial gazettes (BgblAlt) are metadata-only — for these a text-format request returns a format_unavailable notice with the usable URL, not an error. Every result carries binding_status; only authentic (amtssigniert) publications are legally binding. This tool returns content, not fresh metadata — the metadata rides the search/lookup step that produced the document number. When the markdown text overflows the 40,000-byte budget the tool returns an outline (kind: outline) instead of truncating: the document’s §/Artikel/Anlage sections where it carries at least two such headings, otherwise contiguous byte windows named Part 1 of N … Part N of N covering the whole text and listed in document order. Re-call with sections:[…] naming outline entries to retrieve just those; a name matching no entry returns the outline again with a notice rather than the whole document. Windows are cut at line breaks, not at sentence or § boundaries, so one can open mid-sentence — read them in order and pull the neighbour when a passage straddles a cut. Raw html and xml renditions are never sliced and return whole at any size. Markdown drops the screen-reader expansions RIS ships alongside each abbreviated citation, keeping the visible citation form; raw html/xml renditions are returned exactly as published.',
|
|
440
579
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
|
|
441
580
|
input: z.object({
|
|
442
581
|
document_number: z
|
|
@@ -458,7 +597,7 @@ export const risGetDocument = tool('ris_get_document', {
|
|
|
458
597
|
sections: z
|
|
459
598
|
.array(z.string())
|
|
460
599
|
.optional()
|
|
461
|
-
.describe('
|
|
600
|
+
.describe('Entry names to retrieve, each copied verbatim from a prior outline response (kind: outline) — §/Artikel/Anlage section names, or window names of the form "Part 2 of 6". Omit for the full document, which returns an outline instead when the markdown overflows the 40,000-byte budget. A name that matches no entry is never silently ignored: a total miss returns the outline (kind: outline) with a notice, a partial miss returns the matched entries with a notice naming others to pick from. Applies to markdown only — html, xml, and urls_only are never sliced and return in full.'),
|
|
462
601
|
}),
|
|
463
602
|
output: z.object({
|
|
464
603
|
text: z
|
|
@@ -475,14 +614,14 @@ export const risGetDocument = tool('ris_get_document', {
|
|
|
475
614
|
truncated: z
|
|
476
615
|
.boolean()
|
|
477
616
|
.optional()
|
|
478
|
-
.describe('Present and true when the full text isn’t inline because
|
|
617
|
+
.describe('Present and true when the full text isn’t inline because an outline was returned instead (kind: outline) — either the document overflowed the byte budget, or a sections:[…] selector matched nothing. The notice names which. Retrieve entries via the sections input, or fetch content_urls for the whole artifact.'),
|
|
479
618
|
kind: z
|
|
480
619
|
.enum(['full', 'outline'])
|
|
481
|
-
.describe('full — the complete response (document text, selected
|
|
620
|
+
.describe('full — the complete response (document text, selected entries, or rendition URLs). outline — sections lists the retrievable entries instead of the text, either because the document overflowed the byte budget or because a sections:[…] selector matched nothing; re-call with sections:[…] naming entries from it.'),
|
|
482
621
|
sections: z
|
|
483
|
-
.array(OUTLINE_VARIANT.shape.sections.element.describe('A retrievable §/Artikel/Anlage section
|
|
622
|
+
.array(OUTLINE_VARIANT.shape.sections.element.describe('A retrievable entry — a §/Artikel/Anlage section or a Part n of N byte window, with its UTF-8 byte size.'))
|
|
484
623
|
.optional()
|
|
485
|
-
.describe('Present when kind = outline: the document’s §/Artikel/Anlage sections
|
|
624
|
+
.describe('Present when kind = outline: the document’s addressable entries, each with its UTF-8 byte size — §/Artikel/Anlage sections listed largest first, or, when the markdown carries no such headings, Part n of N byte windows listed in document order and summing to byte_size. Copy names into the sections input verbatim to retrieve them; naming several in one call returns their text concatenated in document order, with nothing inserted between them.'),
|
|
486
625
|
binding_status: z
|
|
487
626
|
.enum(BINDING_STATUSES)
|
|
488
627
|
.describe('Legal binding status: authentic (amtssigniert, legally binding), consolidated_informational (consolidated view — not binding), historical_record (superseded/pre-e-Recht promulgation), decision (court/tribunal ruling), preparatory (draft/bill/minutes), administrative_directive (binds the administration, not citizens), or translation (unofficial English).'),
|
|
@@ -623,13 +762,18 @@ export const risGetDocument = tool('ris_get_document', {
|
|
|
623
762
|
// roster (driven by the no-match, not by the byte budget) so the caller can tell "your
|
|
624
763
|
// names were wrong" from "that section really is that large".
|
|
625
764
|
if (requestedSections.length > 0) {
|
|
626
|
-
const selection = selectDocumentSections(rendition.text, requestedSections);
|
|
765
|
+
const selection = selectDocumentSections(rendition.text, requestedSections, format);
|
|
766
|
+
// How the roster was built — the two kinds want different re-call guidance, and for a
|
|
767
|
+
// windowed roster the outline exists *because* of the byte budget.
|
|
768
|
+
const roster = selection.windowed
|
|
769
|
+
? `${selection.available.length} contiguous byte windows, since it carries no §/Artikel/Anlage headings and overflows the ${OUTLINE_BUDGET_BYTES}-byte budget`
|
|
770
|
+
: `${selection.available.length} §/Artikel/Anlage sections`;
|
|
627
771
|
if (selection.text !== '') {
|
|
628
772
|
if (selection.unmatched.length > 0) {
|
|
629
773
|
// Names candidates from the roster rather than promising an outline on a re-call
|
|
630
774
|
// without sections:[…] — that re-call only outlines a document over the byte
|
|
631
775
|
// budget, and returns the whole text for every document under it.
|
|
632
|
-
ctx.enrich.notice(`Returned only the matched
|
|
776
|
+
ctx.enrich.notice(`Returned only the matched entries — ${quoteNames(selection.unmatched)} named no entry of this document and ${selection.unmatched.length === 1 ? 'was' : 'were'} skipped. This document has ${roster}; copy a name verbatim and re-call ris_get_document with the same addressing — e.g. ${exampleSectionNames(selection.available)}.`);
|
|
633
777
|
}
|
|
634
778
|
return {
|
|
635
779
|
...base,
|
|
@@ -639,7 +783,9 @@ export const risGetDocument = tool('ris_get_document', {
|
|
|
639
783
|
};
|
|
640
784
|
}
|
|
641
785
|
if (selection.available.length > 0) {
|
|
642
|
-
ctx.enrich.notice(
|
|
786
|
+
ctx.enrich.notice(selection.windowed
|
|
787
|
+
? `sections:[…] matched nothing — ${quoteNames(selection.unmatched)} named no entry of this document. It is addressed as ${roster}. Copy a name verbatim from sections and re-call ris_get_document with the same addressing — e.g. ${exampleSectionNames(selection.available)}.`
|
|
788
|
+
: `sections:[…] matched nothing — ${quoteNames(selection.unmatched)} named no section of this document, so the outline below is a selector mismatch, not a size overflow. Copy a name verbatim from sections and re-call ris_get_document with the same addressing — e.g. ${exampleSectionNames(selection.available)}.`);
|
|
643
789
|
return {
|
|
644
790
|
...base,
|
|
645
791
|
kind: 'outline',
|
|
@@ -648,12 +794,18 @@ export const risGetDocument = tool('ris_get_document', {
|
|
|
648
794
|
...(byteSize !== undefined && { byte_size: byteSize }),
|
|
649
795
|
};
|
|
650
796
|
}
|
|
651
|
-
// Nothing to select from and nothing to list —
|
|
652
|
-
// no §/Artikel/Anlage headings.
|
|
653
|
-
|
|
797
|
+
// Nothing to select from and nothing to list — a raw html/xml rendition, or markdown
|
|
798
|
+
// under the budget with no §/Artikel/Anlage headings. Both halves are named: a caller
|
|
799
|
+
// told only about headings would retry the same selector on a larger document of the
|
|
800
|
+
// same shape. Say so, then return the document whole below.
|
|
801
|
+
ctx.enrich.notice(`sections:[…] was ignored — this rendition has no addressable entries, so ${quoteNames(selection.unmatched)} could not be resolved. Raw html and xml are never sliced; markdown carries entries when it has §/Artikel/Anlage headings, or once it overflows the ${OUTLINE_BUDGET_BYTES}-byte budget. The whole document follows.`);
|
|
654
802
|
}
|
|
655
|
-
// Disclosure — whole text under budget (or
|
|
656
|
-
const
|
|
803
|
+
// Disclosure — whole text under budget (or with nothing addressable), else an outline.
|
|
804
|
+
const addressable = addressableSections(rendition.text, format);
|
|
805
|
+
const size = byteSize !== undefined ? ` (${byteSize} bytes)` : '';
|
|
806
|
+
const decision = outlineDocument(rendition.text, addressable, (sections) => addressable[0]?.kind === 'window'
|
|
807
|
+
? `Document too large to return in full${size}. It carries no §/Artikel/Anlage headings, so the outline lists ${sections.length} contiguous windows covering the whole text — read them in the order they are named, and expect a window to open mid-sentence, since the cuts are line breaks rather than sentence or § boundaries. Re-call ris_get_document with the same addressing plus sections:[…] naming entries from the outline — e.g. ${exampleSectionNames(addressable)}.`
|
|
808
|
+
: `Document too large to return in full${size}. Re-call ris_get_document with the same addressing plus sections:[…] naming entries from the outline — e.g. ${exampleSectionNames(sections)}.`);
|
|
657
809
|
if (decision.kind === 'full') {
|
|
658
810
|
return {
|
|
659
811
|
...base,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ris-get-document.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/ris-get-document.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EACL,eAAe,EAEf,iBAAiB,GAElB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAgC,MAAM,oBAAoB,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EACL,aAAa,EACb,mBAAmB,GAEpB,MAAM,+BAA+B,CAAC;AAEvC,8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AAM,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACvE,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACvE,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3D,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/ris-austria-mcp-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"mcpName": "io.github.cyanheads/ris-austria-mcp-server",
|
|
5
5
|
"description": "Search Austrian consolidated federal & state law, court decisions, and the authentic Bundesgesetzblatt from the official RIS via MCP. Keyless. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
package/server.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/ris-austria-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.1",
|
|
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/ris-austria-mcp-server",
|
|
21
21
|
"runtimeHint": "node",
|
|
22
|
-
"version": "0.4.
|
|
22
|
+
"version": "0.4.1",
|
|
23
23
|
"packageArguments": [
|
|
24
24
|
{
|
|
25
25
|
"type": "positional",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
55
55
|
"identifier": "@cyanheads/ris-austria-mcp-server",
|
|
56
56
|
"runtimeHint": "node",
|
|
57
|
-
"version": "0.4.
|
|
57
|
+
"version": "0.4.1",
|
|
58
58
|
"packageArguments": [
|
|
59
59
|
{
|
|
60
60
|
"type": "positional",
|