@one-source/mcp 1.2.0 → 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/LICENSE +188 -7
- package/README.md +5 -22
- package/README.npm.md +5 -22
- package/README.repo.md +6 -22
- package/dist/analytics.d.ts +12 -4
- package/dist/analytics.d.ts.map +1 -1
- package/dist/analytics.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +12 -1
- package/dist/cli.js.map +1 -1
- package/dist/create-server.d.ts +2 -2
- package/dist/create-server.js +2 -2
- package/dist/register-api-tools.d.ts +1 -1
- package/dist/register-api-tools.d.ts.map +1 -1
- package/dist/register-api-tools.js +5 -1
- package/dist/register-api-tools.js.map +1 -1
- package/dist/register-docs-tools.d.ts.map +1 -1
- package/dist/register-docs-tools.js +1 -0
- package/dist/register-docs-tools.js.map +1 -1
- package/package.json +9 -4
package/LICENSE
CHANGED
|
@@ -1,9 +1,190 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
and confidential. No part of the Software may be reproduced, distributed, or
|
|
5
|
-
transmitted in any form or by any means without the prior written permission of
|
|
6
|
-
BlockParty.
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
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).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
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 the 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 the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
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.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
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 any 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.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
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.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
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.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 BlockParty
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 31 tools for blockchain data, live chain queries, and API documentation in a single server.
|
|
4
4
|
|
|
5
|
-
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (
|
|
5
|
+
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (22 tools) and [`@one-source/docs-mcp`](https://www.npmjs.com/package/@one-source/docs-mcp) (9 tools) so your AI assistant gets full access to OneSource with one MCP connection.
|
|
6
6
|
|
|
7
7
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
8
8
|
|
|
@@ -44,26 +44,9 @@ npx @one-source/mcp --http --port=8080
|
|
|
44
44
|
|
|
45
45
|
Then connect your MCP client to `http://localhost:3000/`.
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (31)
|
|
48
48
|
|
|
49
|
-
### Blockchain API —
|
|
50
|
-
|
|
51
|
-
| Tool | Description |
|
|
52
|
-
|------|-------------|
|
|
53
|
-
| `1s_address_txs` | Address transaction history |
|
|
54
|
-
| `1s_block` | Block details by number |
|
|
55
|
-
| `1s_contract_info` | Contract metadata |
|
|
56
|
-
| `1s_erc1155_balance` | ERC1155 token balance |
|
|
57
|
-
| `1s_erc20_balance` | ERC20 token balance |
|
|
58
|
-
| `1s_erc20_transfers` | ERC20 transfer history |
|
|
59
|
-
| `1s_events` | Event log search |
|
|
60
|
-
| `1s_nft_media` | NFT processed media URLs |
|
|
61
|
-
| `1s_nft_metadata` | NFT metadata and traits |
|
|
62
|
-
| `1s_nft_owner` | NFT current owner |
|
|
63
|
-
| `1s_tx_details` | Transaction with decoded events |
|
|
64
|
-
| `1s_wallet_nfts` | Wallet NFT portfolio |
|
|
65
|
-
|
|
66
|
-
### Blockchain API
|
|
49
|
+
### Blockchain API — Live Chain (12 tools)
|
|
67
50
|
|
|
68
51
|
| Tool | Description |
|
|
69
52
|
|------|-------------|
|
|
@@ -129,4 +112,4 @@ Documentation tools are always free — no API key or authentication needed.
|
|
|
129
112
|
|
|
130
113
|
## License
|
|
131
114
|
|
|
132
|
-
|
|
115
|
+
Apache 2.0
|
package/README.npm.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 31 tools for blockchain data, live chain queries, and API documentation in a single server.
|
|
4
4
|
|
|
5
|
-
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (
|
|
5
|
+
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (22 tools) and [`@one-source/docs-mcp`](https://www.npmjs.com/package/@one-source/docs-mcp) (9 tools) so your AI assistant gets full access to OneSource with one MCP connection.
|
|
6
6
|
|
|
7
7
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
8
8
|
|
|
@@ -44,26 +44,9 @@ npx @one-source/mcp --http --port=8080
|
|
|
44
44
|
|
|
45
45
|
Then connect your MCP client to `http://localhost:3000/`.
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (31)
|
|
48
48
|
|
|
49
|
-
### Blockchain API —
|
|
50
|
-
|
|
51
|
-
| Tool | Description |
|
|
52
|
-
|------|-------------|
|
|
53
|
-
| `1s_address_txs` | Address transaction history |
|
|
54
|
-
| `1s_block` | Block details by number |
|
|
55
|
-
| `1s_contract_info` | Contract metadata |
|
|
56
|
-
| `1s_erc1155_balance` | ERC1155 token balance |
|
|
57
|
-
| `1s_erc20_balance` | ERC20 token balance |
|
|
58
|
-
| `1s_erc20_transfers` | ERC20 transfer history |
|
|
59
|
-
| `1s_events` | Event log search |
|
|
60
|
-
| `1s_nft_media` | NFT processed media URLs |
|
|
61
|
-
| `1s_nft_metadata` | NFT metadata and traits |
|
|
62
|
-
| `1s_nft_owner` | NFT current owner |
|
|
63
|
-
| `1s_tx_details` | Transaction with decoded events |
|
|
64
|
-
| `1s_wallet_nfts` | Wallet NFT portfolio |
|
|
65
|
-
|
|
66
|
-
### Blockchain API
|
|
49
|
+
### Blockchain API — Live Chain (12 tools)
|
|
67
50
|
|
|
68
51
|
| Tool | Description |
|
|
69
52
|
|------|-------------|
|
|
@@ -129,4 +112,4 @@ Documentation tools are always free — no API key or authentication needed.
|
|
|
129
112
|
|
|
130
113
|
## License
|
|
131
114
|
|
|
132
|
-
|
|
115
|
+
Apache 2.0
|
package/README.repo.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 31 tools for blockchain data, live chain queries, and API documentation in a single server.
|
|
4
4
|
|
|
5
|
-
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (
|
|
5
|
+
Combines [`@one-source/api-mcp`](https://www.npmjs.com/package/@one-source/api-mcp) (22 tools) and [`@one-source/docs-mcp`](https://www.npmjs.com/package/@one-source/docs-mcp) (9 tools) so your AI assistant gets full access to OneSource with one MCP connection.
|
|
6
6
|
|
|
7
7
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
8
8
|
|
|
@@ -46,26 +46,9 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
46
46
|
|
|
47
47
|
Health check: `GET http://localhost:3000/health`
|
|
48
48
|
|
|
49
|
-
## Tools (
|
|
49
|
+
## Tools (31)
|
|
50
50
|
|
|
51
|
-
### Blockchain API —
|
|
52
|
-
|
|
53
|
-
| Tool | Description |
|
|
54
|
-
|------|-------------|
|
|
55
|
-
| `1s_address_txs` | Address transaction history |
|
|
56
|
-
| `1s_block` | Block details by number |
|
|
57
|
-
| `1s_contract_info` | Contract metadata |
|
|
58
|
-
| `1s_erc1155_balance` | ERC1155 token balance |
|
|
59
|
-
| `1s_erc20_balance` | ERC20 token balance |
|
|
60
|
-
| `1s_erc20_transfers` | ERC20 transfer history |
|
|
61
|
-
| `1s_events` | Event log search |
|
|
62
|
-
| `1s_nft_media` | NFT processed media URLs |
|
|
63
|
-
| `1s_nft_metadata` | NFT metadata and traits |
|
|
64
|
-
| `1s_nft_owner` | NFT current owner |
|
|
65
|
-
| `1s_tx_details` | Transaction with decoded events |
|
|
66
|
-
| `1s_wallet_nfts` | Wallet NFT portfolio |
|
|
67
|
-
|
|
68
|
-
### Blockchain API
|
|
51
|
+
### Blockchain API — Live Chain (12 tools)
|
|
69
52
|
|
|
70
53
|
| Tool | Description |
|
|
71
54
|
|------|-------------|
|
|
@@ -139,6 +122,7 @@ Documentation tools are always free — no API key or authentication needed.
|
|
|
139
122
|
| `ONESOURCE_ANALYTICS` | — | Set to `false` to disable analytics |
|
|
140
123
|
| `ONESOURCE_ANALYTICS_URL` | — | Dashboard endpoint for analytics |
|
|
141
124
|
| `X402_ANALYTICS_KEY` | — | API key for dashboard analytics |
|
|
125
|
+
| `X402_PRIVATE_KEY` | — | EVM private key (hex, 0x-prefixed) for automatic x402 USDC payments on Base |
|
|
142
126
|
|
|
143
127
|
## Troubleshooting
|
|
144
128
|
|
|
@@ -156,4 +140,4 @@ Type names are case-insensitive but must match the GraphQL name (e.g. `Transacti
|
|
|
156
140
|
|
|
157
141
|
## License
|
|
158
142
|
|
|
159
|
-
|
|
143
|
+
Apache 2.0 — see [LICENSE](LICENSE) for details.
|
package/dist/analytics.d.ts
CHANGED
|
@@ -6,16 +6,24 @@
|
|
|
6
6
|
* The underlying implementations (Noop/Stderr/Dashboard) serialize events to
|
|
7
7
|
* JSON, so the wider category type is safe at runtime.
|
|
8
8
|
*/
|
|
9
|
-
import { type Analytics as _Analytics, type ToolCallEvent as _ToolCallEvent, type HttpCallEvent, type ServiceEvent } from '@one-source/api-mcp/analytics';
|
|
9
|
+
import { type Analytics as _Analytics, type ToolCallEvent as _ToolCallEvent, type HttpCallEvent as _HttpCallEvent, type ServiceEvent as _ServiceEvent } from '@one-source/api-mcp/analytics';
|
|
10
10
|
/** ToolCallEvent with category widened to include docs tools. */
|
|
11
11
|
export type ToolCallEvent = Omit<_ToolCallEvent, 'category'> & {
|
|
12
12
|
category: _ToolCallEvent['category'] | 'docs';
|
|
13
|
+
source?: string;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
export type HttpCallEvent = _HttpCallEvent & {
|
|
16
|
+
source?: string;
|
|
17
|
+
};
|
|
18
|
+
export type ServiceEvent = _ServiceEvent & {
|
|
19
|
+
source?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Analytics interface with widened event types that include `source`. */
|
|
22
|
+
export interface Analytics extends Omit<_Analytics, 'trackTool' | 'trackHttp' | 'trackService'> {
|
|
16
23
|
trackTool(event: ToolCallEvent): void;
|
|
24
|
+
trackHttp(event: HttpCallEvent): void;
|
|
25
|
+
trackService(event: ServiceEvent): void;
|
|
17
26
|
}
|
|
18
27
|
/** Create an analytics instance (Noop, Stderr, or Dashboard based on env vars). */
|
|
19
28
|
export declare function createAnalytics(): Analytics;
|
|
20
|
-
export type { HttpCallEvent, ServiceEvent };
|
|
21
29
|
//# sourceMappingURL=analytics.d.ts.map
|
package/dist/analytics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,YAAY,IAAI,aAAa,EACnC,MAAM,+BAA+B,CAAC;AAEvC,iEAAiE;AACjE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IAC7D,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;IAC7F,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CACzC;AAED,mFAAmF;AACnF,wBAAgB,eAAe,IAAI,SAAS,CAE3C"}
|
package/dist/analytics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,eAAe,IAAI,gBAAgB,GAKpC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,eAAe,IAAI,gBAAgB,GAKpC,MAAM,+BAA+B,CAAC;AAkBvC,mFAAmF;AACnF,MAAM,UAAU,eAAe;IAC7B,OAAO,gBAAgB,EAAe,CAAC;AACzC,CAAC"}
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;AAsMH,OAAO,EAAE,CAAC"}
|
package/dist/cli.js
CHANGED
|
@@ -35,6 +35,13 @@ if (args.includes('--http')) {
|
|
|
35
35
|
// Shared singletons — reused across stateless per-request servers
|
|
36
36
|
const sharedAnalytics = createAnalytics();
|
|
37
37
|
const sharedClient = createClientFromEnv();
|
|
38
|
+
// Compute tool count once at startup (server object is discarded)
|
|
39
|
+
const { toolCount } = createMcpServer({
|
|
40
|
+
docsData,
|
|
41
|
+
analytics: sharedAnalytics,
|
|
42
|
+
client: sharedClient,
|
|
43
|
+
transport: 'http',
|
|
44
|
+
});
|
|
38
45
|
const httpServer = createServer(async (req, res) => {
|
|
39
46
|
// CORS headers
|
|
40
47
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
@@ -52,7 +59,7 @@ if (args.includes('--http')) {
|
|
|
52
59
|
status: 'ok',
|
|
53
60
|
server: 'onesource-mcp',
|
|
54
61
|
version: VERSION,
|
|
55
|
-
tools:
|
|
62
|
+
tools: toolCount,
|
|
56
63
|
}));
|
|
57
64
|
return;
|
|
58
65
|
}
|
|
@@ -108,6 +115,7 @@ if (args.includes('--http')) {
|
|
|
108
115
|
timestamp: new Date().toISOString(),
|
|
109
116
|
version: VERSION,
|
|
110
117
|
details: `http:${port}`,
|
|
118
|
+
source: 'unified',
|
|
111
119
|
});
|
|
112
120
|
// Graceful shutdown — flush analytics before exit
|
|
113
121
|
process.once('SIGINT', async () => {
|
|
@@ -116,6 +124,7 @@ if (args.includes('--http')) {
|
|
|
116
124
|
service: 'onesource',
|
|
117
125
|
timestamp: new Date().toISOString(),
|
|
118
126
|
version: VERSION,
|
|
127
|
+
source: 'unified',
|
|
119
128
|
});
|
|
120
129
|
sharedAnalytics.stop();
|
|
121
130
|
await Promise.race([
|
|
@@ -142,6 +151,7 @@ else {
|
|
|
142
151
|
timestamp: new Date().toISOString(),
|
|
143
152
|
version: VERSION,
|
|
144
153
|
details: 'stdio',
|
|
154
|
+
source: 'unified',
|
|
145
155
|
});
|
|
146
156
|
// Graceful shutdown — flush analytics before exit
|
|
147
157
|
process.once('SIGINT', async () => {
|
|
@@ -150,6 +160,7 @@ else {
|
|
|
150
160
|
service: 'onesource',
|
|
151
161
|
timestamp: new Date().toISOString(),
|
|
152
162
|
version: VERSION,
|
|
163
|
+
source: 'unified',
|
|
153
164
|
});
|
|
154
165
|
analytics.stop();
|
|
155
166
|
await Promise.race([
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;AAEH,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC5B,kCAAkC;IAElC,6BAA6B;IAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CACjD,CAAC;IACF,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE,CAAC;QACtB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC;YACvC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;QACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,KAAK,EAAE,CAAC;YAC9D,OAAO,CAAC,KAAK,CACX,wBAAwB,OAAO,IAAI,EAAE,iCA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,EAAE;QACnC,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;IAEH,kDAAkD;IAClD,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QAChC,SAAS,CAAC,YAAY,CAAC;YACrB,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,SAAS;SAClB,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,OAAO,CAAC,IAAI,CAAC;YACjB,CAAC,KAAK,IAAI,EAAE;gBACV,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;gBACxB,cAAc,CAAC,KAAK,EAAE,CAAC;gBACvB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACvB,CAAC,CAAC,EAAE;YACJ,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC3D,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/create-server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Unified MCP Server Factory
|
|
3
3
|
*
|
|
4
|
-
* Creates a single McpServer named 'onesource' with all
|
|
5
|
-
* (
|
|
4
|
+
* Creates a single McpServer named 'onesource' with all 31 tools
|
|
5
|
+
* (22 API + 9 docs) by delegating to the two register modules.
|
|
6
6
|
*/
|
|
7
7
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
8
|
import type { OneSourceClient } from '@one-source/api-mcp/client';
|
package/dist/create-server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Unified MCP Server Factory
|
|
3
3
|
*
|
|
4
|
-
* Creates a single McpServer named 'onesource' with all
|
|
5
|
-
* (
|
|
4
|
+
* Creates a single McpServer named 'onesource' with all 31 tools
|
|
5
|
+
* (22 API + 9 docs) by delegating to the two register modules.
|
|
6
6
|
*/
|
|
7
7
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
8
|
import { registerApiTools } from './register-api-tools.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register all
|
|
2
|
+
* Register all 22 API tools from @one-source/api-mcp onto a shared McpServer.
|
|
3
3
|
*
|
|
4
4
|
* Replicates the exact instrumentation pattern from api-mcp's create-server.ts:
|
|
5
5
|
* per-call client context, x402 detection, performance timing, session hashing,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-api-tools.d.ts","sourceRoot":"","sources":["../src/register-api-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQhD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,uBAAuB,GAC5B;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"register-api-tools.d.ts","sourceRoot":"","sources":["../src/register-api-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQhD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,uBAAuB,GAC5B;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAqH5C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register all
|
|
2
|
+
* Register all 22 API tools from @one-source/api-mcp onto a shared McpServer.
|
|
3
3
|
*
|
|
4
4
|
* Replicates the exact instrumentation pattern from api-mcp's create-server.ts:
|
|
5
5
|
* per-call client context, x402 detection, performance timing, session hashing,
|
|
@@ -30,6 +30,7 @@ export function registerApiTools(opts) {
|
|
|
30
30
|
backend_latency_ms: event.backend_latency_ms,
|
|
31
31
|
x402_required: event.x402_required,
|
|
32
32
|
timestamp: new Date().toISOString(),
|
|
33
|
+
source: 'unified',
|
|
33
34
|
});
|
|
34
35
|
};
|
|
35
36
|
for (const tool of allTools) {
|
|
@@ -59,6 +60,7 @@ export function registerApiTools(opts) {
|
|
|
59
60
|
x402_required: event.x402_required,
|
|
60
61
|
timestamp: new Date().toISOString(),
|
|
61
62
|
session_id: sessionHash,
|
|
63
|
+
source: 'unified',
|
|
62
64
|
});
|
|
63
65
|
};
|
|
64
66
|
try {
|
|
@@ -81,6 +83,7 @@ export function registerApiTools(opts) {
|
|
|
81
83
|
client_version: clientInfo?.version,
|
|
82
84
|
session_id: sessionHash,
|
|
83
85
|
transport,
|
|
86
|
+
source: 'unified',
|
|
84
87
|
});
|
|
85
88
|
return {
|
|
86
89
|
content: [{ type: 'text', text }],
|
|
@@ -107,6 +110,7 @@ export function registerApiTools(opts) {
|
|
|
107
110
|
client_version: clientInfo?.version,
|
|
108
111
|
session_id: sessionHash,
|
|
109
112
|
transport,
|
|
113
|
+
source: 'unified',
|
|
110
114
|
});
|
|
111
115
|
return {
|
|
112
116
|
isError: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-api-tools.js","sourceRoot":"","sources":["../src/register-api-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAwB,MAAM,4BAA4B,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,SAAS,WAAW,CAAC,SAA6B;IAChD,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IACjC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3E,CAAC;AAUD;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,mBAAmB,EAAE,CAAC;IAEpD,wFAAwF;IACxF,MAAM,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,EAAE;QAC7B,SAAS,CAAC,SAAS,CAAC;YAClB,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,eAAe;YACxB,IAAI,EAAE,KAAK,CAAC,IAAI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C;AAKzE,OAAO,EAAE,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAWjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"register-docs-tools.d.ts","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,OAAO,EAAE,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAWjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAgF/D,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,+EAA+E;IAC/E,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,MAAM,CAoExE;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-docs-tools.js","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAClH,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,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E,SAAS,EAAE,SAAS,EAC3C,sBAAsB,EACtB,yEAAyE,EACzE,wBAAwB,CAAC,KAAK,EAC9B,CAAC,KAAK,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,EAAE,MAAM,CAAC,CACnD,CAAC;IAEF,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAC3C,qBAAqB,EACrB,iGAAiG,EACjG,uBAAuB,CAAC,KAAK,EAC7B,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,CACtC,CAAC;IAEF,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAC3C,0BAA0B,EAC1B,yFAAyF,EACzF,4BAA4B,CAAC,KAAK,EAClC,GAAG,EAAE,CAAC,4BAA4B,EAAE,CACrC,CAAC;IAEF,OAAO,CAAC,CAAC;AACX,CAAC;AAED,OAAO,EAAE,QAAQ,EAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one-source/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Unified MCP server for OneSource —
|
|
5
|
+
"description": "Unified MCP server for OneSource — 31 tools for blockchain data and API documentation",
|
|
6
6
|
"bin": {
|
|
7
7
|
"onesource-mcp": "./dist/cli.js"
|
|
8
8
|
},
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"x402"
|
|
50
50
|
],
|
|
51
51
|
"author": "BlockParty",
|
|
52
|
-
"license": "
|
|
53
|
-
"homepage": "https://docs.onesource.io"
|
|
52
|
+
"license": "Apache-2.0",
|
|
53
|
+
"homepage": "https://docs.onesource.io",
|
|
54
|
+
"mcpName": "io.onesource/mcp",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "https://github.com/blockparty-global/1s-mcp.git"
|
|
58
|
+
}
|
|
54
59
|
}
|