krs-poland-mcp-server 1.3.5 → 1.5.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/README.md +26 -2
- package/build/index.mjs +1727 -4109
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -36,13 +36,37 @@ To integrate this server with an LLM client (like LM Studio or others that suppo
|
|
|
36
36
|
|
|
37
37
|
This configuration tells the client how to start the KRS tool server.
|
|
38
38
|
|
|
39
|
+
### Cache
|
|
40
|
+
|
|
41
|
+
Responses of the KRS API are kept in memory for 10 minutes (up to 50 most recently used requests), so the status check, the profile and the history of the same entity do not download its extract again. Set `KRS_CACHE_TTL_SECONDS` in the server's environment to change the lifetime, or to `0` to turn the cache off:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
"env": { "KRS_CACHE_TTL_SECONDS": "0" }
|
|
45
|
+
```
|
|
46
|
+
|
|
39
47
|
## Server Functions
|
|
40
48
|
|
|
41
49
|
|
|
42
50
|
The server provides the following tools (checklist):
|
|
43
51
|
|
|
44
|
-
- [x] **Get Current KRS Record** (`get-krs-current-extract`):
|
|
45
|
-
- [x] **Get Full KRS Record** (`get-krs-full-extract`):
|
|
52
|
+
- [x] **Get Current KRS Record** (`get-krs-current-extract`): Returns the raw current extract (odpis aktualny) of an entity as JSON. The register (`P`/`S`) is optional; both are checked when it is omitted.
|
|
53
|
+
- [x] **Get Full KRS Record** (`get-krs-full-extract`): Returns the raw full extract (odpis pełny) — current data plus the complete history of entries — as JSON; also available for entities struck off the register. The register (`P`/`S`) is optional.
|
|
54
|
+
- [x] **Check KRS Status** (`check-krs-status`): Checks whether an entity is active and returns a compact report of risk signals found in its register entry — liquidation, bankruptcy, restructuring, suspension, dissolution, arrears with enforcement, asset security, dismissed bankruptcy petitions, court-appointed curator, missing board, overdue annual financial statements, and deletion from the register. The register (`P`/`S`) is optional; both are checked when it is omitted.
|
|
55
|
+
- [x] **Get KRS Entity Profile** (`get-krs-entity-profile`): A compact profile of the entity from its current extract — NIP/REGON with NIP status, seat and address, contact and e-delivery address, share capital, representation (the board's composition by function and the rule for acting on the entity's behalf, commercial proxies, attorneys, liquidators when applicable), supervisory board, owners (companies are named, people are not), PKD codes, the purpose and public-benefit status of associations, branches, and a one-line status assessment. Personal data is never returned. The register (`P`/`S`) is optional.
|
|
56
|
+
- [x] **Get KRS Entry History** (`get-krs-entry-history`): Returns a compact history of the entity's register entries, computed from the full extract (which for large companies runs to hundreds of thousands of characters). By default it lists entries newest first — date, description, case reference and the fields each entry changed — optionally filtered with `odDaty` (`dd.mm.yyyy` or `yyyy-mm-dd`) and `limit` (default 20, max 100). With `numerWpisu` it shows what that single entry introduced, struck out and changed: name, address, capital, board members, PKD codes and so on. Works for entities struck off the register as well; the register (`P`/`S`) is optional.
|
|
57
|
+
- [x] **Check KRS Watchlist** (`check-krs-watchlist`): Takes up to 50 watched KRS numbers and a day (`data`) or a date range (`odDaty`/`doDaty`, up to 31 days; `doDaty` defaults to today) and tells which of the entities had an entry in the register in that period, based on the daily KRS bulletin. For each such entity it returns the bulletin days and — unless `szczegoly` is `false` — its name, last register entry (number, date, case reference, court; for an entity struck off also the entry description) and the status assessment of `check-krs-status`. Entities without entries and bulletin days that could not be fetched are listed separately.
|
|
58
|
+
|
|
59
|
+
Example arguments:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{ "krs": ["0000019193", "0000109411"], "odDaty": "2026-11-01", "doDaty": "2026-11-12" }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Prompts
|
|
66
|
+
|
|
67
|
+
- **Weryfikacja kontrahenta w KRS** (`weryfikacja-kontrahenta`): arguments `krs` (required), `rejestr` and `kontekst` (e.g. "umowa dostawy na 200 tys. zł"). Walks the model through the entity profile, the status check and the last 12 months of register entries, and asks for a report with a green/yellow/red assessment and a plain answer to who can sign a contract on the entity's behalf.
|
|
68
|
+
|
|
69
|
+
All tools are read-only and none of the analytic tools return personal data of natural persons (the KRS API masks names and PESEL numbers but not, for example, birth dates).
|
|
46
70
|
|
|
47
71
|
## Development
|
|
48
72
|
|