@one-source/mcp 5.0.5 → 5.1.1
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 +6 -3
- package/README.npm.md +6 -3
- package/README.repo.md +6 -3
- package/dist/cli.js +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.js +1 -1
- package/dist/register-bug-report-tool.d.ts.map +1 -1
- package/dist/register-bug-report-tool.js +20 -5
- package/dist/register-bug-report-tool.js.map +1 -1
- package/package.json +3 -3
- package/skills/onesource-mcp-setup/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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) — 27 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **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.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:3000/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (27)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -63,12 +63,15 @@ Health check: `GET http://localhost:3000/health`
|
|
|
63
63
|
| `1s_total_supply_live` | Token total supply |
|
|
64
64
|
| `1s_tx_details_live` | Transaction + receipt via RPC |
|
|
65
65
|
|
|
66
|
-
### Blockchain API — Chain Utilities (
|
|
66
|
+
### Blockchain API — Chain Utilities (13 tools)
|
|
67
67
|
|
|
68
68
|
RPC only.
|
|
69
69
|
|
|
70
70
|
| Tool | Description |
|
|
71
71
|
|------|-------------|
|
|
72
|
+
| `1s_block_by_number` | Block details by number via RPC |
|
|
73
|
+
| `1s_block_number` | Latest block number |
|
|
74
|
+
| `1s_chain_id` | EIP-155 chain ID |
|
|
72
75
|
| `1s_contract_code` | Contract bytecode |
|
|
73
76
|
| `1s_ens_resolve` | ENS name/address resolution |
|
|
74
77
|
| `1s_estimate_gas` | Gas estimation |
|
package/README.npm.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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) — 27 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **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.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:3000/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (27)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -63,12 +63,15 @@ Health check: `GET http://localhost:3000/health`
|
|
|
63
63
|
| `1s_total_supply_live` | Token total supply |
|
|
64
64
|
| `1s_tx_details_live` | Transaction + receipt via RPC |
|
|
65
65
|
|
|
66
|
-
### Blockchain API — Chain Utilities (
|
|
66
|
+
### Blockchain API — Chain Utilities (13 tools)
|
|
67
67
|
|
|
68
68
|
RPC only.
|
|
69
69
|
|
|
70
70
|
| Tool | Description |
|
|
71
71
|
|------|-------------|
|
|
72
|
+
| `1s_block_by_number` | Block details by number via RPC |
|
|
73
|
+
| `1s_block_number` | Latest block number |
|
|
74
|
+
| `1s_chain_id` | EIP-155 chain ID |
|
|
72
75
|
| `1s_contract_code` | Contract bytecode |
|
|
73
76
|
| `1s_ens_resolve` | ENS name/address resolution |
|
|
74
77
|
| `1s_estimate_gas` | Gas estimation |
|
package/README.repo.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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) — 27 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **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.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:3000/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (27)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -63,12 +63,15 @@ Health check: `GET http://localhost:3000/health`
|
|
|
63
63
|
| `1s_total_supply_live` | Token total supply |
|
|
64
64
|
| `1s_tx_details_live` | Transaction + receipt via RPC |
|
|
65
65
|
|
|
66
|
-
### Blockchain API — Chain Utilities (
|
|
66
|
+
### Blockchain API — Chain Utilities (13 tools)
|
|
67
67
|
|
|
68
68
|
RPC only.
|
|
69
69
|
|
|
70
70
|
| Tool | Description |
|
|
71
71
|
|------|-------------|
|
|
72
|
+
| `1s_block_by_number` | Block details by number via RPC |
|
|
73
|
+
| `1s_block_number` | Latest block number |
|
|
74
|
+
| `1s_chain_id` | EIP-155 chain ID |
|
|
72
75
|
| `1s_contract_code` | Contract bytecode |
|
|
73
76
|
| `1s_ens_resolve` | ENS name/address resolution |
|
|
74
77
|
| `1s_estimate_gas` | Gas estimation |
|
package/dist/cli.js
CHANGED
|
@@ -31,7 +31,7 @@ function buildInstructions(currentVersion, latestVersion, authMethod) {
|
|
|
31
31
|
? 'Blockchain API tools require x402 payment (USDC on Base). If a tool returns a 402 error, the user needs to configure X402_PRIVATE_KEY. Call 1s_setup_check for diagnostics and setup instructions.'
|
|
32
32
|
: 'Blockchain API tools require authentication. Set ONESOURCE_API_KEY (API key) or X402_PRIVATE_KEY (x402 micropayments) to access them. Call 1s_setup_check for setup instructions.';
|
|
33
33
|
const baseline = [
|
|
34
|
-
'OneSource MCP —
|
|
34
|
+
'OneSource MCP — 27 tools for blockchain data.',
|
|
35
35
|
'',
|
|
36
36
|
authLine,
|
|
37
37
|
'',
|
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 27 tools
|
|
5
|
+
* (25 API + 1 setup check + 1 bug report) by delegating to the 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 27 tools
|
|
5
|
+
* (25 API + 1 setup check + 1 bug report) by delegating to the 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 25 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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register all
|
|
2
|
+
* Register all 25 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-bug-report-tool.d.ts","sourceRoot":"","sources":["../src/register-bug-report-tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAoB/D,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,4BAA4B,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"register-bug-report-tool.d.ts","sourceRoot":"","sources":["../src/register-bug-report-tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAoB/D,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,4BAA4B,GAAG,MAAM,CA2HhF"}
|
|
@@ -49,16 +49,31 @@ export function registerBugReportTool(opts) {
|
|
|
49
49
|
source: 'unified',
|
|
50
50
|
};
|
|
51
51
|
try {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const descriptionTrimmed = input.description?.trim() ?? '';
|
|
53
|
+
const toolNameTrimmed = input.tool_name?.trim();
|
|
54
|
+
const networkTrimmed = input.network?.trim();
|
|
55
|
+
if (descriptionTrimmed.length < 10) {
|
|
54
56
|
return {
|
|
55
|
-
|
|
57
|
+
isError: true,
|
|
58
|
+
content: [{ type: 'text', text: 'Bug report requires a description of at least 10 characters.' }],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (toolNameTrimmed && !/^1s_[a-z][a-z0-9_]*[a-z0-9]$/.test(toolNameTrimmed)) {
|
|
62
|
+
return {
|
|
63
|
+
isError: true,
|
|
64
|
+
content: [{ type: 'text', text: 'Invalid tool_name. Must be a valid OneSource tool name (e.g. 1s_network_info, 1s_erc20_balance_live).' }],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
if (networkTrimmed !== undefined && (networkTrimmed.length === 0 || networkTrimmed.length > 100)) {
|
|
68
|
+
return {
|
|
69
|
+
isError: true,
|
|
70
|
+
content: [{ type: 'text', text: 'Network field is too long. Use a blockchain network name like ethereum, sepolia, or avax.' }],
|
|
56
71
|
};
|
|
57
72
|
}
|
|
58
73
|
// Build the payload — structured JSON, backend handles formatting
|
|
59
74
|
const payload = {
|
|
60
|
-
description:
|
|
61
|
-
tool_name:
|
|
75
|
+
description: descriptionTrimmed.slice(0, 3000),
|
|
76
|
+
tool_name: toolNameTrimmed?.slice(0, 100),
|
|
62
77
|
error_message: input.error_message?.slice(0, 1000),
|
|
63
78
|
severity: input.severity ?? 'medium',
|
|
64
79
|
network: input.network,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-bug-report-tool.js","sourceRoot":"","sources":["../src/register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AAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,2FAA2F;qBACrJ,CAAC;aACH,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one-source/mcp",
|
|
3
3
|
"mcpName": "io.onesource/mcp",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Unified MCP server for OneSource —
|
|
6
|
+
"description": "Unified MCP server for OneSource — 27 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": "^5.
|
|
32
|
+
"@one-source/api-mcp": "^5.1.0",
|
|
33
33
|
"@one-source/docs-mcp": "^4.0.3",
|
|
34
34
|
"zod": "^3.24.0"
|
|
35
35
|
},
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
|
|
10
10
|
# OneSource MCP Setup Guide
|
|
11
11
|
|
|
12
|
-
OneSource MCP provides
|
|
12
|
+
OneSource MCP provides 27 tools for blockchain data and live chain queries. Blockchain API tools require authentication — either an API key (`ONESOURCE_API_KEY`) or x402 micropayments in USDC on the Base network (`X402_PRIVATE_KEY`). If both are set, API key takes priority.
|
|
13
13
|
|
|
14
14
|
## Before You Start
|
|
15
15
|
|