@lerianstudio/matcher-mcp 6.0.0-rc.2 → 6.0.0-rc.3
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/LICENSE +24 -93
- package/README.md +1 -1
- package/dist/spec/openapi.yaml +6 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,93 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
27
|
-
of the licensor in the software. Any use of the licensor's trademarks is subject
|
|
28
|
-
to applicable law.
|
|
29
|
-
|
|
30
|
-
## Patents
|
|
31
|
-
|
|
32
|
-
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
-
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
-
sale, import and have imported the software, in each case subject to the
|
|
35
|
-
limitations and conditions in this license. This license does not cover any
|
|
36
|
-
patent claims that you cause to be infringed by modifications or additions to
|
|
37
|
-
the software. If you or your company make any written claim that the software
|
|
38
|
-
infringes or contributes to infringement of any patent, your patent license for
|
|
39
|
-
the software granted under these terms ends immediately. If your company makes
|
|
40
|
-
such a claim, your patent license ends immediately for work on behalf of your
|
|
41
|
-
company.
|
|
42
|
-
|
|
43
|
-
## Notices
|
|
44
|
-
|
|
45
|
-
You must ensure that anyone who gets a copy of any part of the software from you
|
|
46
|
-
also gets a copy of these terms.
|
|
47
|
-
|
|
48
|
-
If you modify the software, you must include in any modified copies of the
|
|
49
|
-
software prominent notices stating that you have modified the software.
|
|
50
|
-
|
|
51
|
-
## No Other Rights
|
|
52
|
-
|
|
53
|
-
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
-
these terms.
|
|
55
|
-
|
|
56
|
-
## Termination
|
|
57
|
-
|
|
58
|
-
If you use the software in violation of these terms, such use is not licensed,
|
|
59
|
-
and your licenses will automatically terminate. If the licensor provides you
|
|
60
|
-
with a notice of your violation, and you cease all violation of this license no
|
|
61
|
-
later than 30 days after you receive that notice, your licenses will be
|
|
62
|
-
reinstated retroactively. However, if you violate these terms after such
|
|
63
|
-
reinstatement, any additional violation of these terms will cause your licenses
|
|
64
|
-
to terminate automatically and permanently.
|
|
65
|
-
|
|
66
|
-
## No Liability
|
|
67
|
-
|
|
68
|
-
*As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
-
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
-
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
-
legal claim.*
|
|
72
|
-
|
|
73
|
-
## Definitions
|
|
74
|
-
|
|
75
|
-
The **licensor** is the entity offering these terms, and the **software** is the
|
|
76
|
-
software the licensor makes available under these terms, including any portion
|
|
77
|
-
of it.
|
|
78
|
-
|
|
79
|
-
**you** refers to the individual or entity agreeing to these terms.
|
|
80
|
-
|
|
81
|
-
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
-
organization that you work for, plus all organizations that have control over,
|
|
83
|
-
are under the control of, or are under common control with that
|
|
84
|
-
organization. **control** means ownership of substantially all the assets of an
|
|
85
|
-
entity, or the power to direct its management and policies by vote, contract, or
|
|
86
|
-
otherwise. Control can be direct or indirect.
|
|
87
|
-
|
|
88
|
-
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
-
these terms.
|
|
90
|
-
|
|
91
|
-
**use** means anything you do with the software requiring one of your licenses.
|
|
92
|
-
|
|
93
|
-
**trademark** means trademarks, service marks, and similar rights.
|
|
1
|
+
Lerian Studio General License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lerian Studio Ltd. All rights reserved.
|
|
4
|
+
|
|
5
|
+
NOTICE: All information contained herein is, and remains the property of
|
|
6
|
+
Lerian Studio Ltd. and its suppliers, if any. The intellectual and technical
|
|
7
|
+
concepts contained herein are proprietary to Lerian Studio Ltd. and its
|
|
8
|
+
suppliers and are protected by trade secret or copyright law.
|
|
9
|
+
|
|
10
|
+
Dissemination of this information or reproduction of this material is strictly
|
|
11
|
+
forbidden unless prior written permission is obtained from Lerian Studio Ltd.
|
|
12
|
+
|
|
13
|
+
This software is provided by the copyright holders and contributors "as is"
|
|
14
|
+
and any express or implied warranties, including, but not limited to, the
|
|
15
|
+
implied warranties of merchantability and fitness for a particular purpose are
|
|
16
|
+
disclaimed. In no event shall the copyright holder or contributors be liable
|
|
17
|
+
for any direct, indirect, incidental, special, exemplary, or consequential
|
|
18
|
+
damages (including, but not limited to, procurement of substitute goods or
|
|
19
|
+
services; loss of use, data, or profits; or business interruption) however
|
|
20
|
+
caused and on any theory of liability, whether in contract, strict liability,
|
|
21
|
+
or tort (including negligence or otherwise) arising in any way out of the use
|
|
22
|
+
of this software, even if advised of the possibility of such damage.
|
|
23
|
+
|
|
24
|
+
For licensing inquiries, contact: legal@lerian.studio
|
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Three options for `<mcp-url>`:
|
|
|
80
80
|
the host relay with `MATCHER_API_URL=http://localhost:4018`; the Compose relay
|
|
81
81
|
targets the Docker-only name `app:4018`. See [`../docs/development.md`](../docs/development.md).
|
|
82
82
|
- **Run it standalone with `npx`.** `@lerianstudio/matcher-mcp` is a **public**
|
|
83
|
-
package
|
|
83
|
+
package — no registry auth needed. Start the relay (binds `:4019`)
|
|
84
84
|
pointed at your Matcher API:
|
|
85
85
|
|
|
86
86
|
```bash
|
package/dist/spec/openapi.yaml
CHANGED
|
@@ -2984,12 +2984,13 @@ components:
|
|
|
2984
2984
|
- BUSINESS_DECISION
|
|
2985
2985
|
type: string
|
|
2986
2986
|
resolutionType:
|
|
2987
|
-
description: "How the exception was resolved: FORCE_MATCH (override match), ADJUST_ENTRY (monetary correction), MANUAL_MATCH (the manual match that paired it), AUTO_CONSUME (closed automatically when a run settled its transaction against a carried open item) or UNMATCH_WITHDRAWN (withdrawn by an un-match: the match that raised it, or the
|
|
2987
|
+
description: "How the exception was resolved: FORCE_MATCH (override match), ADJUST_ENTRY (monetary correction), MANUAL_MATCH (the manual match that paired it), AUTO_CONSUME (closed automatically when a run settled its transaction against a carried open item), AUTO_MATCH (closed automatically when a run matched its transaction, for a break whose reason only said its counterpart was missing or unusable: UNMATCHED, FX_RATE_UNAVAILABLE, MISSING_BASE_AMOUNT, MISSING_BASE_CURRENCY or SPLIT_INCOMPLETE) or UNMATCH_WITHDRAWN (withdrawn by an un-match: the match that raised it, or the match that resolved it, was undone)"
|
|
2988
2988
|
enum:
|
|
2989
2989
|
- FORCE_MATCH
|
|
2990
2990
|
- ADJUST_ENTRY
|
|
2991
2991
|
- MANUAL_MATCH
|
|
2992
2992
|
- AUTO_CONSUME
|
|
2993
|
+
- AUTO_MATCH
|
|
2993
2994
|
- UNMATCH_WITHDRAWN
|
|
2994
2995
|
examples:
|
|
2995
2996
|
- FORCE_MATCH
|
|
@@ -8932,6 +8933,10 @@ info:
|
|
|
8932
8933
|
Two bounds close the contract. A response larger than about 1 MB is delivered to its caller in full, but it is not stored for replay: a duplicate under the same key is answered 409 `MTCH-0022` instead of replayed. And an over-sized body is refused with 413 and spends nothing. On every route but one the service-wide request body limit refuses it before the key is read. The streaming upload (`POST /v1/imports/contexts/{contextId}/sources/{sourceId}/upload`) is exempt from that limit: the key is read first and ingestion enforces its own upload limit inside the handler, so its 413 is a third answer that releases the key, and a smaller file may be re-sent under it.
|
|
8933
8934
|
|
|
8934
8935
|
Secret mints are another, sharper exception. `POST /v1/discovery/aggregator-connections/{id}/connect-token`, `POST /v1/discovery/webhooks/tokens`, `POST /v1/exceptions/callbacks/credentials` and `POST /v1/exceptions/callbacks/credentials/{credentialId}/rotate` each return a raw credential exactly ONCE, and storing that answer would keep the secret re-readable for the life of the key — so those four routes IGNORE the idempotency header entirely. Nothing is stored, nothing is replayed, and `X-Idempotency-Replayed` is never sent on them. A retry under the same key MINTS AGAIN and leaves a second live credential behind, so treat a mint as non-idempotent: read the first attempt's response rather than resending it. A surplus callback credential or aggregator webhook token shows in its list operation (metadata only, never the secret) and is revoked through its own operation.
|
|
8936
|
+
|
|
8937
|
+
## Refusals
|
|
8938
|
+
|
|
8939
|
+
An authorization refusal is answered with an `application/problem+json` document carrying a code, title and sentence. On every `/v1` route Matcher first checks a token that parses: on a multi-tenant deployment a token with no tenant claim is refused 403 `MTCH-0004`, and a malformed tenant claim or a missing `sub` is refused 401 `MTCH-0003`. The authorization layer then answers with its own codes: 401 `AUT-0006` (no bearer token) or `AUT-0007` (token expired, invalid or malformed); 401 `AUT-1009` or `AUT-1010` (the credential's partner is suspended or outside its validity period); 403 `AUT-1020` (the credential may not perform the `resource:action` the detail names); 403 `AUT-1016`, `AUT-1017`, `AUT-1018` or `AUT-1019` (the partner the request was made on behalf of belongs to another tenant, is suspended, is no longer valid, or may not perform it); 503 `AUT-0033` (the Access Manager did not decide the request) and 504 `AUT-1021` (it did not answer in time). Nothing ran on either 5xx: retry the same request, under the same idempotency key. A code the Access Manager answered itself, such as 403 `AUT-0021` (caller address not on the tenant allowlist), is relayed as code, title and detail at its status.
|
|
8935
8940
|
license:
|
|
8936
8941
|
name: Lerian Studio General License
|
|
8937
8942
|
title: Matcher Reconciliation API
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lerianstudio/matcher-mcp",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Model Context Protocol server for the Matcher reconciliation engine",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "LicenseRef-Lerian-Proprietary",
|
|
7
7
|
"author": "Lerian Studio",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"model-context-protocol",
|