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.
Files changed (3) hide show
  1. package/LICENSE +86 -67
  2. package/dist/index.js +6 -3
  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 made available under
36
- the License, as indicated by a copyright notice that is included in
37
- or attached to the work (an example is provided in the Appendix below).
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, as submitted to the Licensor for inclusion
48
- in the Work by the copyright owner or by an individual or Legal Entity
49
- authorized to submit on behalf of the copyright owner. For the purposes
50
- of this definition, "submitted" means any form of electronic, verbal,
51
- or written communication sent to the Licensor or its representatives,
52
- including but not limited to communication on electronic mailing lists,
53
- source code control systems, and issue tracking systems that are managed
54
- by, or on behalf of, the Licensor for the purpose of discussing and
55
- improving the Work, but excluding communication that is conspicuously
56
- marked or otherwise designated in writing by the copyright owner as
57
- "Not a Contribution."
58
-
59
- "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
- whom a Contribution has been received by the Licensor and subsequently
61
- incorporated within the Work.
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 cross-claim
80
- or counterclaim in a lawsuit) alleging that the Work or any Contribution
81
- incorporated within the Work constitutes direct or contributory patent
82
- infringement, then any patent licenses granted to You under this License
83
- for that Work shall terminate as of the date such litigation is filed.
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 Derivative Works
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, You must include a readable copy of the attribution
104
- notices contained within such NOTICE file, in at least one of the
105
- following places: within a NOTICE text file distributed as part of
106
- the Derivative Works; within the Source form or documentation, if
107
- provided along with the Derivative Works; or, within a display
108
- generated by the Derivative Works, if and wherever such third-party
109
- notices normally appear. The contents of the NOTICE file are for
110
- informational purposes only and do not modify the License.
111
-
112
- (e) You may add Your own attribution notices within Derivative Works
113
- that You distribute, alongside or as an addendum to the NOTICE text
114
- from the Work, provided that such additional attribution notices
115
- cannot be construed as modifying the License.
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 agreed
128
- to in writing, Licensor provides the Work (and each Contributor provides
129
- its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
130
- OF ANY KIND, either express or implied, including, without limitation,
131
- any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,
132
- or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
133
- determining the appropriateness of using or redistributing the Work and
134
- assume any risks associated with Your exercise of permissions under this
135
- License.
136
-
137
- 8. Limitation of Liability. In no event and under no legal theory, whether
138
- in tort (including negligence), contract, or otherwise, unless required
139
- by applicable law (such as deliberate and grossly negligent acts) or
140
- agreed to in writing, shall any Contributor be liable to You for damages,
141
- including any direct, indirect, special, incidental, or consequential
142
- damages of any character arising as a result of this License or out of
143
- the use or inability to use the Work (including but not limited to
144
- damages for loss of goodwill, work stoppage, computer failure or
145
- malfunction, or all other commercial damages or losses), even if such
146
- Contributor has been advised of the possibility of such damages.
147
-
148
- 9. Accepting Warranty or Additional Liability. While redistributing the
149
- Work or Derivative Works thereof, You may choose to offer, and charge a
150
- fee for, acceptance of support, warranty, indemnity, or other liability
151
- obligations and rights consistent with this License. However, in
152
- accepting such obligations, You may offer only conditions consistent
153
- with this License. You must indemnify every Contributor for any
154
- liability incurred by, or claims asserted against, such Contributor by
155
- reason of your accepting any such warranty or additional liability.
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 v0.6.0 — x402 + MPP + node tool suite
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
- const server = new mcp_js_1.McpServer({ name: 'nirium-mcp-server', version: '0.6.0' }, { capabilities: { tools: {} } });
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('[Nirium MCP] v0.6.0 running on stdio');
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.0",
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-sdk.git"
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-sdk/issues",
16
+ "url": "https://github.com/nirium-protocol/nirium/issues",
16
17
  "email": "niriumprotocol@gmail.com"
17
18
  },
18
19
  "author": {