@one-source/mcp 4.0.3 → 5.0.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 +83 -30
- package/README.npm.md +83 -30
- package/README.repo.md +349 -297
- package/dist/analytics.d.ts +4 -3
- 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 +78 -41
- package/dist/cli.js.map +1 -1
- package/dist/create-server.d.ts +7 -9
- package/dist/create-server.d.ts.map +1 -1
- package/dist/create-server.js +15 -7
- package/dist/create-server.js.map +1 -1
- package/dist/register-api-tools.d.ts +2 -0
- package/dist/register-api-tools.d.ts.map +1 -1
- package/dist/register-api-tools.js +3 -2
- package/dist/register-api-tools.js.map +1 -1
- package/dist/register-bug-report-tool.d.ts +21 -0
- package/dist/register-bug-report-tool.d.ts.map +1 -0
- package/dist/register-bug-report-tool.js +113 -0
- package/dist/register-bug-report-tool.js.map +1 -0
- package/dist/register-docs-tools.d.ts +6 -11
- package/dist/register-docs-tools.d.ts.map +1 -1
- package/dist/register-docs-tools.js +167 -93
- package/dist/register-docs-tools.js.map +1 -1
- package/package.json +3 -3
- package/skills/onesource-mcp-setup/SKILL.md +106 -23
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register
|
|
2
|
+
* Register docs tools from @one-source/docs-mcp onto a shared McpServer.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Analytics events use service: 'onesource-docs', category: 'docs'.
|
|
4
|
+
* NOTE: Docs tools are temporarily disabled (product not yet released).
|
|
5
|
+
* Code is commented out for easy re-enable. Only 1s_setup_check remains active.
|
|
7
6
|
*/
|
|
8
7
|
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
9
|
-
import { loadData, type LoadedData } from '@one-source/docs-mcp';
|
|
10
8
|
import type { Analytics } from './analytics.js';
|
|
11
9
|
export interface RegisterDocsToolsOptions {
|
|
12
10
|
server: McpServer;
|
|
13
11
|
analytics: Analytics;
|
|
14
12
|
transport?: 'stdio' | 'http';
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
x402Enabled?: boolean;
|
|
19
|
-
/** Wallet address derived from X402_PRIVATE_KEY (set during startup). */
|
|
13
|
+
/** Active authentication method, determined at startup. */
|
|
14
|
+
authMethod?: 'api_key' | 'x402' | 'none';
|
|
15
|
+
/** Wallet address derived from X402_PRIVATE_KEY (only relevant when authMethod is 'x402'). */
|
|
20
16
|
x402Address?: string;
|
|
21
17
|
}
|
|
22
18
|
/**
|
|
23
19
|
* Register all docs tools and return the tool count.
|
|
24
20
|
*/
|
|
25
21
|
export declare function registerDocsTools(opts: RegisterDocsToolsOptions): number;
|
|
26
|
-
export { loadData, type LoadedData };
|
|
27
22
|
//# sourceMappingURL=register-docs-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-docs-tools.d.ts","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"register-docs-tools.d.ts","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAiBzE,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;IAG7B,2DAA2D;IAC3D,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,MAAM,CAgOxE"}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register
|
|
2
|
+
* Register docs tools from @one-source/docs-mcp onto a shared McpServer.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Analytics events use service: 'onesource-docs', category: 'docs'.
|
|
4
|
+
* NOTE: Docs tools are temporarily disabled (product not yet released).
|
|
5
|
+
* Code is commented out for easy re-enable. Only 1s_setup_check remains active.
|
|
7
6
|
*/
|
|
8
7
|
import { createHash } from 'node:crypto';
|
|
9
|
-
import { loadData } from '@one-source/docs-mcp';
|
|
10
|
-
import { searchDocsSchema, handleSearchDocs } from '@one-source/docs-mcp/tools/search-docs';
|
|
11
|
-
import { getQueryReferenceSchema, handleGetQueryReference } from '@one-source/docs-mcp/tools/get-query-reference';
|
|
12
|
-
import { getTypeDefinitionSchema, handleGetTypeDefinition } from '@one-source/docs-mcp/tools/get-type-definition';
|
|
13
|
-
import { listExamplesSchema, handleListExamples } from '@one-source/docs-mcp/tools/list-examples';
|
|
14
|
-
import { listSupportedChainsSchema, handleListSupportedChains } from '@one-source/docs-mcp/tools/list-supported-chains';
|
|
15
|
-
import { getFilterReferenceSchema, handleGetFilterReference } from '@one-source/docs-mcp/tools/get-filter-reference';
|
|
16
|
-
import { getPaginationGuideSchema, handleGetPaginationGuide } from '@one-source/docs-mcp/tools/get-pagination-guide';
|
|
17
|
-
import { getSchemaOverviewSchema, handleGetSchemaOverview } from '@one-source/docs-mcp/tools/get-schema-overview';
|
|
18
|
-
import { getAuthenticationGuideSchema, handleGetAuthenticationGuide } from '@one-source/docs-mcp/tools/get-authentication-guide';
|
|
19
|
-
import { getMcpSetupGuideSchema, handleGetMcpSetupGuide } from '@one-source/docs-mcp/tools/get-mcp-setup-guide';
|
|
20
8
|
import { VERSION } from './version.js';
|
|
21
9
|
function hashSession(sessionId) {
|
|
22
10
|
if (!sessionId)
|
|
@@ -88,24 +76,74 @@ handler) {
|
|
|
88
76
|
*/
|
|
89
77
|
export function registerDocsTools(opts) {
|
|
90
78
|
const { server, analytics, transport } = opts;
|
|
91
|
-
const { sections, index, schema } = opts.data ?? loadData();
|
|
92
|
-
instrumentedTool(server, analytics, transport,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
instrumentedTool(server, analytics, transport,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
// const { sections, index, schema } = opts.data ?? loadData();
|
|
80
|
+
// instrumentedTool(server, analytics, transport,
|
|
81
|
+
// 'search_docs',
|
|
82
|
+
// 'Search OneSource documentation by keyword. Returns the top 5 matching sections.',
|
|
83
|
+
// searchDocsSchema.shape,
|
|
84
|
+
// (input) => handleSearchDocs(input, index),
|
|
85
|
+
// );
|
|
86
|
+
// instrumentedTool(server, analytics, transport,
|
|
87
|
+
// 'get_query_reference',
|
|
88
|
+
// 'Get full reference for a OneSource root GraphQL query — arguments, filters, return type. There are 12 root queries: address, addresses, block, blocks, contract, contracts, nft, nfts, token, tokens, transaction, transactions.',
|
|
89
|
+
// getQueryReferenceSchema.shape,
|
|
90
|
+
// (input) => handleGetQueryReference(input, schema),
|
|
91
|
+
// );
|
|
92
|
+
// instrumentedTool(server, analytics, transport,
|
|
93
|
+
// 'get_type_definition',
|
|
94
|
+
// 'Get the schema definition for a GraphQL type, enum, scalar, input, or interface. Returns fields, values, and descriptions.',
|
|
95
|
+
// getTypeDefinitionSchema.shape,
|
|
96
|
+
// (input) => handleGetTypeDefinition(input, schema),
|
|
97
|
+
// );
|
|
98
|
+
// instrumentedTool(server, analytics, transport,
|
|
99
|
+
// 'list_examples',
|
|
100
|
+
// 'List or search working GraphQL examples. Without a topic, returns a summary of all available examples. With a topic, returns full example content matching that keyword.',
|
|
101
|
+
// listExamplesSchema.shape,
|
|
102
|
+
// (input) => handleListExamples(input, sections),
|
|
103
|
+
// );
|
|
104
|
+
// instrumentedTool(server, analytics, transport,
|
|
105
|
+
// 'list_supported_chains',
|
|
106
|
+
// 'List all blockchain networks supported by OneSource with endpoint URLs.',
|
|
107
|
+
// listSupportedChainsSchema.shape,
|
|
108
|
+
// () => handleListSupportedChains(),
|
|
109
|
+
// );
|
|
110
|
+
// instrumentedTool(server, analytics, transport,
|
|
111
|
+
// 'get_filter_reference',
|
|
112
|
+
// 'Get all filter fields and operators for a list query (e.g. transactions, tokens).',
|
|
113
|
+
// getFilterReferenceSchema.shape,
|
|
114
|
+
// (input) => handleGetFilterReference(input, schema),
|
|
115
|
+
// );
|
|
116
|
+
// instrumentedTool(server, analytics, transport,
|
|
117
|
+
// 'get_pagination_guide',
|
|
118
|
+
// 'Get the cursor-based pagination pattern with examples for a list query.',
|
|
119
|
+
// getPaginationGuideSchema.shape,
|
|
120
|
+
// (input) => handleGetPaginationGuide(input, schema),
|
|
121
|
+
// );
|
|
122
|
+
// instrumentedTool(server, analytics, transport,
|
|
123
|
+
// 'get_schema_overview',
|
|
124
|
+
// 'Get a high-level summary of the entire GraphQL schema — all queries, types, enums, and scalars.',
|
|
125
|
+
// getSchemaOverviewSchema.shape,
|
|
126
|
+
// () => handleGetSchemaOverview(schema),
|
|
127
|
+
// );
|
|
128
|
+
// instrumentedTool(server, analytics, transport,
|
|
129
|
+
// 'get_authentication_guide',
|
|
130
|
+
// 'Get the authentication guide — API key format, endpoints, headers, and common mistakes.',
|
|
131
|
+
// getAuthenticationGuideSchema.shape,
|
|
132
|
+
// () => handleGetAuthenticationGuide(),
|
|
133
|
+
// );
|
|
134
|
+
// instrumentedTool(server, analytics, transport,
|
|
135
|
+
// 'get_mcp_setup_guide',
|
|
136
|
+
// 'Get the MCP installation and setup guide — quickstart, per-client instructions, authentication (API key or x402), configuration, and individual MCP packages. Use the topic parameter to focus on a specific area.',
|
|
137
|
+
// getMcpSetupGuideSchema.shape,
|
|
138
|
+
// (input) => handleGetMcpSetupGuide(input, sections),
|
|
139
|
+
// );
|
|
140
|
+
const authMethod = opts.authMethod;
|
|
103
141
|
const x402Address = opts.x402Address;
|
|
104
|
-
instrumentedTool(server, analytics, transport, '1s_setup_check', 'Check OneSource MCP server health — version (current vs latest),
|
|
105
|
-
const
|
|
142
|
+
instrumentedTool(server, analytics, transport, '1s_setup_check', 'Check OneSource MCP server health — version (current vs latest), authentication status (API key or x402), API connectivity, and setup instructions if anything is missing. Free, no authentication required. Call this first when troubleshooting.', {}, async () => {
|
|
143
|
+
const parts = [];
|
|
106
144
|
// 1. Server version
|
|
107
|
-
|
|
108
|
-
|
|
145
|
+
parts.push('## Server Version\n');
|
|
146
|
+
parts.push(`Current: ${VERSION}`);
|
|
109
147
|
let latestVersion = 'unknown';
|
|
110
148
|
try {
|
|
111
149
|
const res = await fetch('https://registry.npmjs.org/@one-source/mcp/latest', {
|
|
@@ -117,88 +155,124 @@ export function registerDocsTools(opts) {
|
|
|
117
155
|
}
|
|
118
156
|
}
|
|
119
157
|
catch { /* network error — skip */ }
|
|
120
|
-
|
|
158
|
+
parts.push(`Latest: ${latestVersion}`);
|
|
121
159
|
if (latestVersion !== 'unknown' && latestVersion !== VERSION) {
|
|
122
|
-
|
|
160
|
+
parts.push('\n**Update available!** Run: `npx -y @one-source/mcp@latest`');
|
|
123
161
|
}
|
|
124
162
|
else if (latestVersion === VERSION) {
|
|
125
|
-
|
|
163
|
+
parts.push('\nYou are on the latest version.');
|
|
126
164
|
}
|
|
127
|
-
// 2.
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
165
|
+
// 2. Authentication status
|
|
166
|
+
parts.push('\n## Authentication\n');
|
|
167
|
+
const runtimeApiKey = process.env.ONESOURCE_API_KEY;
|
|
168
|
+
const runtimeX402Key = process.env.X402_PRIVATE_KEY;
|
|
169
|
+
const bothSet = !!(runtimeApiKey && runtimeX402Key);
|
|
170
|
+
// Use authMethod from startup; fall back to runtime env check for robustness
|
|
171
|
+
const activeMethod = authMethod ?? (runtimeApiKey ? 'api_key' : runtimeX402Key ? 'x402' : 'none');
|
|
172
|
+
if (activeMethod === 'api_key') {
|
|
173
|
+
parts.push('Status: **Configured (API key)**');
|
|
174
|
+
if (bothSet) {
|
|
175
|
+
parts.push('\n⚠️ Both `ONESOURCE_API_KEY` and `X402_PRIVATE_KEY` are set. API key takes priority; x402 is not used.');
|
|
176
|
+
}
|
|
177
|
+
parts.push('\nAPI key authentication is active. Blockchain API tools are ready to use.');
|
|
134
178
|
}
|
|
135
|
-
else if (
|
|
136
|
-
|
|
179
|
+
else if (activeMethod === 'x402') {
|
|
180
|
+
parts.push('Status: **Configured (x402)**');
|
|
181
|
+
if (x402Address) {
|
|
182
|
+
parts.push(`Wallet: \`${x402Address}\``);
|
|
183
|
+
}
|
|
184
|
+
parts.push('\nThis wallet must hold USDC on the **Base** network to pay for API calls.');
|
|
137
185
|
}
|
|
138
186
|
else {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
187
|
+
parts.push('Status: **Not configured**');
|
|
188
|
+
parts.push('\nBlockchain API tools require authentication. Choose one of the options below.\n');
|
|
189
|
+
parts.push('### Option 1: API Key (recommended)\n');
|
|
190
|
+
parts.push('Set `ONESOURCE_API_KEY` with your OneSource API key.\n');
|
|
191
|
+
parts.push('**Claude Code:**');
|
|
192
|
+
parts.push('```');
|
|
193
|
+
parts.push('claude mcp remove onesource');
|
|
194
|
+
parts.push('claude mcp add onesource -e ONESOURCE_API_KEY=<key> -- npx -y @one-source/mcp@latest');
|
|
195
|
+
parts.push('```\n');
|
|
196
|
+
parts.push('**Claude Desktop / Cursor:**');
|
|
197
|
+
parts.push('```json');
|
|
198
|
+
parts.push('{');
|
|
199
|
+
parts.push(' "mcpServers": {');
|
|
200
|
+
parts.push(' "onesource": {');
|
|
201
|
+
parts.push(' "command": "npx",');
|
|
202
|
+
parts.push(' "args": ["-y", "@one-source/mcp@latest"],');
|
|
203
|
+
parts.push(' "env": { "ONESOURCE_API_KEY": "<key>" }');
|
|
204
|
+
parts.push(' }');
|
|
205
|
+
parts.push(' }');
|
|
206
|
+
parts.push('}');
|
|
207
|
+
parts.push('```\n');
|
|
208
|
+
parts.push('**Any MCP client (stdio):**');
|
|
209
|
+
parts.push('```');
|
|
210
|
+
parts.push('ONESOURCE_API_KEY=<key> npx -y @one-source/mcp@latest');
|
|
211
|
+
parts.push('```\n');
|
|
212
|
+
parts.push('### Option 2: x402 Micropayments\n');
|
|
213
|
+
parts.push('Set `X402_PRIVATE_KEY` with an EVM private key (64-char hex, `0x` prefix optional) funded with USDC on Base.\n');
|
|
214
|
+
parts.push('1. **Get an EVM private key** — export from MetaMask, Coinbase Wallet, or generate one.');
|
|
215
|
+
parts.push(' ```');
|
|
216
|
+
parts.push(' # macOS/Linux or Git Bash on Windows');
|
|
217
|
+
parts.push(' echo "0x$(openssl rand -hex 32)"');
|
|
218
|
+
parts.push(' ```\n');
|
|
219
|
+
parts.push('2. **Fund the wallet** with USDC on the **Base** network (not Ethereum mainnet).\n');
|
|
220
|
+
parts.push('3. **Set the key:**\n');
|
|
221
|
+
parts.push(' **Claude Code:**');
|
|
222
|
+
parts.push(' ```');
|
|
223
|
+
parts.push(' claude mcp remove onesource');
|
|
224
|
+
parts.push(' claude mcp add onesource -e X402_PRIVATE_KEY=0x... -- npx -y @one-source/mcp@latest');
|
|
225
|
+
parts.push(' ```\n');
|
|
226
|
+
parts.push(' **Claude Desktop / Cursor:**');
|
|
227
|
+
parts.push(' ```json');
|
|
228
|
+
parts.push(' {');
|
|
229
|
+
parts.push(' "mcpServers": {');
|
|
230
|
+
parts.push(' "onesource": {');
|
|
231
|
+
parts.push(' "command": "npx",');
|
|
232
|
+
parts.push(' "args": ["-y", "@one-source/mcp@latest"],');
|
|
233
|
+
parts.push(' "env": { "X402_PRIVATE_KEY": "0x..." }');
|
|
234
|
+
parts.push(' }');
|
|
235
|
+
parts.push(' }');
|
|
236
|
+
parts.push(' }');
|
|
237
|
+
parts.push(' ```\n');
|
|
238
|
+
parts.push(' **Any MCP client (stdio):**');
|
|
239
|
+
parts.push(' ```');
|
|
240
|
+
parts.push(' X402_PRIVATE_KEY=0x... npx -y @one-source/mcp@latest');
|
|
241
|
+
parts.push(' ```\n');
|
|
242
|
+
parts.push('4. **Reload the MCP server** — run `/reload-plugins` in Claude Code, or restart Claude Desktop / Cursor.\n');
|
|
243
|
+
parts.push('**Security:** Never commit keys to source control. Use environment variables or a secrets manager.\n');
|
|
172
244
|
}
|
|
173
245
|
// 3. API connectivity
|
|
174
|
-
|
|
246
|
+
parts.push('\n## API Connectivity\n');
|
|
175
247
|
const baseUrl = process.env.ONESOURCE_BASE_URL ?? 'https://skills.onesource.io';
|
|
176
248
|
try {
|
|
177
|
-
|
|
178
|
-
|
|
249
|
+
await fetch(baseUrl, { method: 'HEAD', signal: AbortSignal.timeout(5000) });
|
|
250
|
+
parts.push(`Backend: **Reachable** (${baseUrl})`);
|
|
179
251
|
}
|
|
180
252
|
catch (err) {
|
|
181
253
|
const msg = err instanceof Error ? err.message : String(err);
|
|
182
|
-
|
|
254
|
+
parts.push(`Backend: **Unreachable** — ${msg}`);
|
|
183
255
|
}
|
|
184
256
|
// 4. Transport
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
// 5.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
257
|
+
parts.push('\n## Transport\n');
|
|
258
|
+
parts.push(`Mode: ${transport ?? 'unknown'}`);
|
|
259
|
+
// 5. Bug reporting
|
|
260
|
+
parts.push('\n## Bug Reporting\n');
|
|
261
|
+
parts.push('Status: **Enabled** — call `1s_report_bug` to report issues to the OneSource team.');
|
|
262
|
+
// 6. Next steps
|
|
263
|
+
parts.push('\n## Next Steps\n');
|
|
264
|
+
if (activeMethod === 'none') {
|
|
265
|
+
parts.push('- Configure authentication to use blockchain API tools (see instructions above)');
|
|
191
266
|
}
|
|
192
267
|
if (latestVersion !== 'unknown' && latestVersion !== VERSION) {
|
|
193
|
-
|
|
268
|
+
parts.push('- Update to the latest version: `npx -y @one-source/mcp@latest`');
|
|
194
269
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
sections.push('- Try a paid API tool: `1s_network_info` (returns chain ID, block number, gas price)');
|
|
270
|
+
if (activeMethod !== 'none') {
|
|
271
|
+
parts.push('- Try an API tool: `1s_network_info` (returns chain ID, block number, gas price)');
|
|
198
272
|
}
|
|
199
|
-
return
|
|
273
|
+
return parts.join('\n');
|
|
200
274
|
});
|
|
201
|
-
return
|
|
275
|
+
return 1;
|
|
202
276
|
}
|
|
203
|
-
export { loadData };
|
|
277
|
+
// export { loadData, type LoadedData };
|
|
204
278
|
//# sourceMappingURL=register-docs-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-docs-tools.js","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"register-docs-tools.js","sourceRoot":"","sources":["../src/register-docs-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAezC,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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AC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC7D,KAAK,CAAC,IAAI,CAAC,8BAA8B,GAAG,EAAE,CAAC,CAAC;QAClD,CAAC;QAED,eAAe;QACf,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,SAAS,SAAS,IAAI,SAAS,EAAE,CAAC,CAAC;QAE9C,mBAAmB;QACnB,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,oFAAoF,CAAC,CAAC;QAEjG,gBAAgB;QAChB,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAChC,IAAI,YAAY,KAAK,MAAM,EAAE,CAAC;YAC5B,KAAK,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAC;QAChG,CAAC;QACD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,OAAO,EAAE,CAAC;YAC7D,KAAK,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAChF,CAAC;QACD,IAAI,YAAY,KAAK,MAAM,EAAE,CAAC;YAC5B,KAAK,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;QACjG,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CACF,CAAC;IAEF,OAAO,CAAC,CAAC;AACX,CAAC;AAED,wCAAwC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one-source/mcp",
|
|
3
3
|
"mcpName": "io.onesource/mcp",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Unified MCP server for OneSource —
|
|
6
|
+
"description": "Unified MCP server for OneSource — 24 tools for blockchain data",
|
|
7
7
|
"bin": {
|
|
8
8
|
"onesource-mcp": "./dist/cli.js"
|
|
9
9
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
32
|
-
"@one-source/api-mcp": "^
|
|
32
|
+
"@one-source/api-mcp": "^5.0.0",
|
|
33
33
|
"@one-source/docs-mcp": "^4.0.3",
|
|
34
34
|
"zod": "^3.24.0"
|
|
35
35
|
},
|