nirium-mcp 0.6.0 → 0.6.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/LICENSE +86 -67
- package/dist/index.js +6 -3
- package/package.json +4 -3
package/LICENSE
CHANGED
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
not limited to compiled object code, generated documentation,
|
|
33
33
|
and conversions to other media types.
|
|
34
34
|
|
|
35
|
-
"Work" shall mean the work of authorship
|
|
36
|
-
the License, as indicated by a
|
|
37
|
-
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
38
39
|
|
|
39
40
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
41
|
form, that is based on (or derived from) the Work and for which the
|
|
@@ -44,21 +45,23 @@
|
|
|
44
45
|
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
46
|
the Work and Derivative Works thereof.
|
|
46
47
|
|
|
47
|
-
"Contribution" shall mean
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
or
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
62
65
|
|
|
63
66
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
67
|
this License, each Contributor hereby grants to You a perpetual,
|
|
@@ -76,19 +79,20 @@
|
|
|
76
79
|
by such Contributor that are necessarily infringed by their
|
|
77
80
|
Contribution(s) alone or by combination of their Contribution(s)
|
|
78
81
|
with the Work to which such Contribution(s) was submitted. If You
|
|
79
|
-
institute patent litigation against any entity (including a
|
|
80
|
-
or counterclaim in a lawsuit) alleging that the Work
|
|
81
|
-
incorporated within the Work constitutes direct
|
|
82
|
-
infringement, then any patent licenses
|
|
83
|
-
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
84
88
|
|
|
85
89
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
86
90
|
Work or Derivative Works thereof in any medium, with or without
|
|
87
91
|
modifications, and in Source or Object form, provided that You
|
|
88
92
|
meet the following conditions:
|
|
89
93
|
|
|
90
|
-
(a) You must give any other recipients of the Work or
|
|
91
|
-
a copy of this License; and
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
92
96
|
|
|
93
97
|
(b) You must cause any modified files to carry prominent notices
|
|
94
98
|
stating that You changed the files; and
|
|
@@ -100,59 +104,74 @@
|
|
|
100
104
|
the Derivative Works; and
|
|
101
105
|
|
|
102
106
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
103
|
-
distribution,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
116
129
|
|
|
117
130
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
118
131
|
any Contribution intentionally submitted for inclusion in the Work
|
|
119
132
|
by You to the Licensor shall be under the terms and conditions of
|
|
120
133
|
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
121
137
|
|
|
122
138
|
6. Trademarks. This License does not grant permission to use the trade
|
|
123
139
|
names, trademarks, service marks, or product names of the Licensor,
|
|
124
140
|
except as required for reasonable and customary use in describing the
|
|
125
141
|
origin of the Work and reproducing the content of the NOTICE file.
|
|
126
142
|
|
|
127
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
128
|
-
to in writing, Licensor provides the Work (and each
|
|
129
|
-
its Contributions) on an "AS IS" BASIS,
|
|
130
|
-
OF ANY KIND, either express or
|
|
131
|
-
any warranties or conditions
|
|
132
|
-
or FITNESS FOR A
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
License.
|
|
136
|
-
|
|
137
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
138
|
-
in tort (including negligence), contract, or otherwise,
|
|
139
|
-
by applicable law (such as deliberate and grossly
|
|
140
|
-
agreed to in writing, shall any Contributor be
|
|
141
|
-
including any direct, indirect, special,
|
|
142
|
-
damages of any character arising as a
|
|
143
|
-
the use or inability to use the
|
|
144
|
-
damages for loss of goodwill,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
156
175
|
|
|
157
176
|
END OF TERMS AND CONDITIONS
|
|
158
177
|
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Copyright 2026 Nirium Protocol Contributors
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
// ═══════════════════════════════════════════════════════════════
|
|
7
|
-
// Nirium MCP Server
|
|
7
|
+
// Nirium MCP Server — x402 + MPP + node tool suite
|
|
8
8
|
// ═══════════════════════════════════════════════════════════════
|
|
9
9
|
//
|
|
10
10
|
// Exposes Nirium Protocol capabilities to any MCP-compatible AI:
|
|
@@ -130,7 +130,10 @@ else {
|
|
|
130
130
|
console.error(`[Nirium MCP] MPP tools disabled — ${PAYMENTS_DISABLED_REASON}`);
|
|
131
131
|
}
|
|
132
132
|
// ─── Server ───────────────────────────────────────────────────
|
|
133
|
-
|
|
133
|
+
// La versión se lee de package.json: antes estaba escrita a mano en tres lugares
|
|
134
|
+
// y se quedaba atrás en cada release. dist/ queda un nivel debajo de package.json.
|
|
135
|
+
const PKG_VERSION = require('../package.json').version;
|
|
136
|
+
const server = new mcp_js_1.McpServer({ name: 'nirium-mcp-server', version: PKG_VERSION }, { capabilities: { tools: {} } });
|
|
134
137
|
const text = (body) => ({ content: [{ type: 'text', text: typeof body === 'string' ? body : JSON.stringify(body, null, 2) }] });
|
|
135
138
|
const fail = (message) => ({ content: [{ type: 'text', text: message }], isError: true });
|
|
136
139
|
// Un pago sin wallet o sin RPC de mainnet no puede firmarse: decirlo aquí evita
|
|
@@ -400,7 +403,7 @@ server.tool('submit_treasury_tx', 'Broadcast a treasury XDR you already signed (
|
|
|
400
403
|
async function main() {
|
|
401
404
|
const transport = new stdio_js_1.StdioServerTransport();
|
|
402
405
|
await server.connect(transport);
|
|
403
|
-
console.error(
|
|
406
|
+
console.error(`[Nirium MCP] v${PKG_VERSION} running on stdio`);
|
|
404
407
|
console.error(`[Nirium MCP] Agent API: ${API_URL}`);
|
|
405
408
|
console.error(`[Nirium MCP] NIRIUM_API_KEY set: ${!!NIRIUM_API_KEY}`);
|
|
406
409
|
console.error(`[Nirium MCP] x402 enabled: ${!!STELLAR_KEY}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirium-mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Model Context Protocol server for Nirium — exposes market data, autonomous loop control, and x402/MPP paid signals to any MCP-compatible AI (Claude, GPT, Cursor, VS Code Copilot).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"homepage": "https://nirium.xyz",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/nirium-protocol/nirium
|
|
12
|
+
"url": "git+https://github.com/nirium-protocol/nirium.git",
|
|
13
|
+
"directory": "packages/mcp"
|
|
13
14
|
},
|
|
14
15
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/nirium-protocol/nirium
|
|
16
|
+
"url": "https://github.com/nirium-protocol/nirium/issues",
|
|
16
17
|
"email": "niriumprotocol@gmail.com"
|
|
17
18
|
},
|
|
18
19
|
"author": {
|