@allratestoday/mcp-server 0.1.0 → 0.2.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 CHANGED
@@ -82,12 +82,11 @@ The free plan includes 300 requests/month. Paid plans start at €4.99/mo.
82
82
  | Tool | API key | Description |
83
83
  |---|---|---|
84
84
  | `get_exchange_rate` | no | Current mid-market rate between two currencies. |
85
- | `get_historical_rates` | no | Historical data points over `1d`, `7d`, `30d`, or `1y`. |
85
+ | `get_historical_rates` | yes | Historical data points over `1d`, `7d`, `30d`, or `1y`. |
86
86
  | `get_rates_authenticated` | yes | Multi-target rates and higher limits. |
87
87
  | `list_currencies` | no | All supported currencies with codes, names, symbols. |
88
- | `get_financial_news` | no | Latest financial news from major sources. |
89
88
 
90
- Public endpoints work without a key set `ALLRATES_API_KEY` only if you want higher limits or to use the authenticated endpoint.
89
+ Public tools (`get_exchange_rate`, `list_currencies`) work without a key. Set `ALLRATES_API_KEY` for the historical and multi-target endpoints.
91
90
 
92
91
  ## Environment variables
93
92
 
package/dist/client.d.ts CHANGED
@@ -48,16 +48,4 @@ export declare class AllRatesTodayClient {
48
48
  }[];
49
49
  count: number;
50
50
  }>;
51
- getNews(): Promise<{
52
- status: string;
53
- totalResults: number;
54
- articles: {
55
- title: string;
56
- description?: string;
57
- url: string;
58
- image?: string;
59
- publishedAt?: string;
60
- source?: string;
61
- }[];
62
- }>;
63
51
  }
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const DEFAULT_BASE_URL = 'https://allratestoday.com/api';
2
- const USER_AGENT = `allratestoday-mcp/0.1.0`;
2
+ const USER_AGENT = `allratestoday-mcp/0.2.0`;
3
3
  export class AllRatesTodayError extends Error {
4
4
  status;
5
5
  body;
@@ -59,7 +59,7 @@ export class AllRatesTodayClient {
59
59
  return this.request('/rate', { source, target });
60
60
  }
61
61
  getHistoricalRates(source, target, period = '7d') {
62
- return this.request('/historical-rates', { source, target, period });
62
+ return this.request('/historical-rates', { source, target, period }, true);
63
63
  }
64
64
  getAuthenticatedRates(params) {
65
65
  return this.request('/v1/rates', params, true);
@@ -67,7 +67,4 @@ export class AllRatesTodayClient {
67
67
  listSymbols() {
68
68
  return this.request('/v1/symbols', {});
69
69
  }
70
- getNews() {
71
- return this.request('/news', {});
72
- }
73
70
  }
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ const tools = [
25
25
  },
26
26
  {
27
27
  name: 'get_historical_rates',
28
- description: 'Get historical exchange-rate data points for a currency pair over a period. Periods: 1d (hourly), 7d (daily), 30d (daily), 1y (weekly). No API key required.',
28
+ description: 'Get historical exchange-rate data points for a currency pair over a period. Periods: 1d (hourly), 7d (daily), 30d (daily), 1y (weekly). Requires an AllRatesToday API key (ALLRATES_API_KEY).',
29
29
  inputSchema: {
30
30
  type: 'object',
31
31
  additionalProperties: false,
@@ -73,11 +73,6 @@ const tools = [
73
73
  description: 'List all supported currencies with code, name, and symbol. No API key required. Cached 24h upstream.',
74
74
  inputSchema: { type: 'object', additionalProperties: false, properties: {} },
75
75
  },
76
- {
77
- name: 'get_financial_news',
78
- description: 'Get the latest financial and currency-market news from Bloomberg, Investing.com, and Google News. No API key required.',
79
- inputSchema: { type: 'object', additionalProperties: false, properties: {} },
80
- },
81
76
  ];
82
77
  function text(s) {
83
78
  const out = typeof s === 'string' ? s : JSON.stringify(s, null, 2);
@@ -88,7 +83,7 @@ async function main() {
88
83
  apiKey: process.env.ALLRATES_API_KEY,
89
84
  baseUrl: process.env.ALLRATES_BASE_URL,
90
85
  });
91
- const server = new Server({ name: 'allratestoday-mcp', version: '0.1.0' }, { capabilities: { tools: {} } });
86
+ const server = new Server({ name: 'allratestoday-mcp', version: '0.2.0' }, { capabilities: { tools: {} } });
92
87
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));
93
88
  server.setRequestHandler(CallToolRequestSchema, async (req) => {
94
89
  const { name, arguments: args = {} } = req.params;
@@ -108,9 +103,6 @@ async function main() {
108
103
  case 'list_currencies': {
109
104
  return text(await client.listSymbols());
110
105
  }
111
- case 'get_financial_news': {
112
- return text(await client.getNews());
113
- }
114
106
  default:
115
107
  return { content: [{ type: 'text', text: `Unknown tool: ${name}` }], isError: true };
116
108
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@allratestoday/mcp-server",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
+ "mcpName": "io.github.cahthuranag/mcp-server",
4
5
  "description": "MCP server for AllRatesToday — let AI coding tools (Claude Code, Cursor, Claude Desktop) fetch real-time and historical currency exchange rates.",
5
6
  "keywords": [
6
7
  "mcp",