@dritan/mcp 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -162,7 +162,9 @@ function buildOhlcvChartUrl(mint, timeframe, bars, width, height) {
162
162
  },
163
163
  };
164
164
  const encoded = encodeURIComponent(JSON.stringify(config));
165
- return `https://quickchart.io/chart?w=${width}&h=${height}&f=png&c=${encoded}`;
165
+ // QuickChart defaults to Chart.js v2. Our config uses v3+/v4 scale syntax (`options.scales.{id}`),
166
+ // so pinning `v=4` prevents runtime render errors like "Cannot read properties of undefined (reading 'options')".
167
+ return `https://quickchart.io/chart?w=${width}&h=${height}&f=png&v=4&c=${encoded}`;
166
168
  }
167
169
  function getPlatformInstallHint(binary) {
168
170
  switch (process.platform) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dritan/mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "MCP server for Dritan SDK market data and local Solana wallet swap execution",