finimpulse-mcp-server 1.3.0 → 1.3.2

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 (30) hide show
  1. package/README.md +86 -58
  2. package/build/http/client.js +18 -0
  3. package/build/http/client.js.map +1 -1
  4. package/build/tools/historical/currencies/handler.js +4 -0
  5. package/build/tools/historical/currencies/handler.js.map +1 -0
  6. package/build/tools/historical/currencies/index.js +6 -0
  7. package/build/tools/historical/currencies/index.js.map +1 -0
  8. package/build/tools/historical/currencies/schema.js +26 -0
  9. package/build/tools/historical/currencies/schema.js.map +1 -0
  10. package/build/tools/historical/currencies/types.js +2 -0
  11. package/build/tools/historical/currencies/types.js.map +1 -0
  12. package/build/tools/historical/schema.js +3 -16
  13. package/build/tools/historical/schema.js.map +1 -1
  14. package/build/tools/index.js +4 -0
  15. package/build/tools/index.js.map +1 -1
  16. package/build/tools/sec-filings/events/handler.js +1 -1
  17. package/build/tools/sec-filings/events/handler.js.map +1 -1
  18. package/build/tools/sec-filings/insider-transactions/handler.js +4 -0
  19. package/build/tools/sec-filings/insider-transactions/handler.js.map +1 -0
  20. package/build/tools/sec-filings/insider-transactions/index.js +6 -0
  21. package/build/tools/sec-filings/insider-transactions/index.js.map +1 -0
  22. package/build/tools/sec-filings/insider-transactions/schema.js +14 -0
  23. package/build/tools/sec-filings/insider-transactions/schema.js.map +1 -0
  24. package/build/tools/sec-filings/insider-transactions/types.js +2 -0
  25. package/build/tools/sec-filings/insider-transactions/types.js.map +1 -0
  26. package/build/transports/http.js +1 -0
  27. package/build/transports/http.js.map +1 -1
  28. package/build/transports/stdio.js +3 -0
  29. package/build/transports/stdio.js.map +1 -1
  30. package/package.json +2 -1
package/README.md CHANGED
@@ -79,15 +79,14 @@ Open `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-level) and add
79
79
 
80
80
  #### VS Code (Copilot)
81
81
 
82
- Open your VS Code `settings.json` and add:
82
+ Open the `mcp.json` configuration file: run **MCP: Open User Configuration** from the **Command Palette** to make the server available in all workspaces, or create `.vscode/mcp.json` in the workspace folder to use it only in the current project. Add the following configuration to the file:
83
83
 
84
84
  ```json
85
85
  {
86
- "mcp": {
87
- "servers": {
88
- "finimpulse": {
89
- "url": "https://mcp.finimpulse.com/mcp"
90
- }
86
+ "servers": {
87
+ "finimpulse": {
88
+ "type": "http",
89
+ "url": "https://mcp.finimpulse.com/mcp"
91
90
  }
92
91
  }
93
92
  }
@@ -110,12 +109,13 @@ Claude Desktop does not yet speak Streamable HTTP natively. Bridge through `mcp-
110
109
 
111
110
  #### ChatGPT
112
111
 
113
- In the ChatGPT desktop app go to **Settings → Connectors → Add custom connector** and enter:
112
+ In the ChatGPT web app go to **Plugins → Add → Add custom MCP server** and enter the following:
114
113
 
115
- - URL: `https://mcp.finimpulse.com/mcp`
114
+ - Name: `FinImpulse`
115
+ - Connection: Server URL, `https://mcp.finimpulse.com/mcp`
116
116
  - Authentication: OAuth
117
117
 
118
- #### Windsurf / Cline / other Streamable-HTTP clients
118
+ #### Devin Desktop (Windsurf) / Cline / other Streamable-HTTP clients
119
119
 
120
120
  Any MCP client that supports the Streamable HTTP transport can use the URL directly:
121
121
 
@@ -158,10 +158,14 @@ Add the server configuration:
158
158
  #### Claude Code
159
159
 
160
160
  ```bash
161
- claude mcp add finimpulse -- npx -y finimpulse-mcp-server
161
+ claude mcp add finimpulse -e API_TOKEN=your-api-token -- npx -y finimpulse-mcp-server
162
162
  ```
163
163
 
164
- Then set the `API_TOKEN` environment variable or pass it inline.
164
+ To verify the connection, run:
165
+
166
+ ```bash
167
+ claude mcp list
168
+ ```
165
169
 
166
170
  #### Cursor
167
171
 
@@ -181,9 +185,15 @@ Open `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-level) and add
181
185
  }
182
186
  ```
183
187
 
184
- #### Windsurf
188
+ #### Devin Desktop (Windsurf)
189
+
190
+ Open `mcp_config.json`:
185
191
 
186
- Open `~/.codeium/windsurf/mcp_config.json` and add:
192
+ - macOS: `~/.config/devin/mcp_config.json`
193
+ - Windows: `%APPDATA%\devin\mcp_config.json`
194
+ - Linux: `~/.config/devin/mcp_config.json`
195
+
196
+ Add the server configuration:
187
197
 
188
198
  ```json
189
199
  {
@@ -201,33 +211,32 @@ Open `~/.codeium/windsurf/mcp_config.json` and add:
201
211
 
202
212
  #### VS Code (Copilot)
203
213
 
204
- Open your VS Code `settings.json` and add:
214
+ Open the `mcp.json` configuration file: run **MCP: Open User Configuration** from the **Command Palette** to make the server available in all workspaces, or create `.vscode/mcp.json` in the workspace folder to use it only in the current project. Add the following configuration to the file:
205
215
 
206
216
  ```json
207
217
  {
208
- "mcp": {
209
- "servers": {
210
- "finimpulse": {
211
- "command": "npx",
212
- "args": ["-y", "finimpulse-mcp-server"],
213
- "env": {
214
- "API_TOKEN": "your-api-token"
215
- }
218
+ "servers": {
219
+ "finimpulse": {
220
+ "type": "stdio",
221
+ "command": "npx",
222
+ "args": ["-y", "finimpulse-mcp-server"],
223
+ "env": {
224
+ "API_TOKEN": "your-api-token"
216
225
  }
217
226
  }
218
227
  }
219
228
  }
220
229
  ```
221
230
 
222
- #### Gemini CLI
231
+ #### Antigravity CLI
223
232
 
224
233
  ```bash
225
- gemini mcp add finimpulse -- npx -y finimpulse-mcp-server
234
+ agy mcp add -e API_TOKEN=your-api-token finimpulse -- npx -y finimpulse-mcp-server
226
235
  ```
227
236
 
228
237
  #### Cline
229
238
 
230
- Open Cline settings, go to **MCP Servers**, and add a new server with this config:
239
+ Open the Cline panel, click the **MCP Servers** icon, go to the **Configure** tab, and select **Configure MCP Servers** to open the configuration file. Add the following configuration:
231
240
 
232
241
  ```json
233
242
  {
@@ -245,48 +254,59 @@ Open Cline settings, go to **MCP Servers**, and add a new server with this confi
245
254
 
246
255
  #### Any MCP-Compatible Client (stdio)
247
256
 
248
- ```bash
249
- API_TOKEN=your-api-token npx finimpulse-mcp-server
250
- ```
257
+ For clients that support stdio only, configure the client to launch the server with the following parameters, replacing `your-api-token` with your FinImpulse API token:
258
+
259
+ - Command: `npx`
260
+ - Arguments: `-y finimpulse-mcp-server`
261
+ - Environment variable: `API_TOKEN=your-api-token`
251
262
 
252
263
  ## Available Tools
253
264
 
265
+ The server exposes 39 tools across 11 functional groups.
266
+
254
267
  ### Search & Discovery
255
268
 
256
269
  | Tool | Description |
257
270
  |------|-------------|
258
271
  | `get_search` | Cross-asset search for stocks, ETFs, and mutual funds. Powers ticker autocomplete and discovery flows. |
272
+ | `get_search_lite` | Lightweight cross-asset search with a focused field set: core identification, current pricing, and key performance metrics. |
273
+ | `get_market_index` | Search ~39,000 global market indices with latest close, daily change, 52-week range, and one-year return. |
259
274
 
260
- ### Market Data
275
+ ### Price Data & Exchange Rates
261
276
 
262
277
  | Tool | Description |
263
278
  |------|-------------|
264
- | `get_summary` | Comprehensive single-call snapshot: identity, market data, fundamentals, ownership, analyst coverage, and fund metrics. |
279
+ | `get_market_price` | Current market price snapshot: pre-market, regular, and post-market session prices for US-listed assets, plus the latest traded price. |
265
280
  | `get_histories` | Historical time-series: prices, dividends, splits, and capital gains with configurable date range and interval. |
281
+ | `get_histories_currencies` | Historical forex exchange rates (OHLC) for currency pairs with configurable date range and interval. |
282
+
283
+ ### Asset Summary & Profile
284
+
285
+ | Tool | Description |
286
+ |------|-------------|
287
+ | `get_summary` | Comprehensive single-call snapshot: identity, market data, fundamentals, ownership, analyst coverage, and fund metrics. |
288
+ | `get_summary_lite` | Focused snapshot of key identification, market, and fundamental data with a configurable field selection. |
266
289
  | `get_profile` | Asset profile and descriptive metadata: identity, classification, governance, and fund-specific attributes. |
267
- | `get_news` | Latest news and press releases with headlines, descriptions, related tickers, and provider info. |
268
- | `get_market_index` | Search ~39,000 global market indices with latest close, daily change, 52-week range, and one-year return. |
269
- | `get_sec_filings_events` | SEC filing events: filing dates, form types (10-K, 8-K, ...), document metadata, and source URLs. |
270
290
 
271
- ### Statistics & Performance
291
+ ### News, Events & Calendars
272
292
 
273
293
  | Tool | Description |
274
294
  |------|-------------|
275
- | `get_statistics_general` | Key statistics and performance indicators: valuation, dividends, risk, trailing returns. |
276
- | `get_statistics_risks` | Risk-adjusted performance metrics (Alpha, Beta, Sharpe, Treynor, R-squared) across 3y/5y/10y horizons. |
277
- | `get_statistics_annual_returns` | Historical annual total returns by calendar year with quarterly breakdowns. |
295
+ | `get_news` | Latest news and press releases with headlines, descriptions, related tickers, and provider info. |
296
+ | `get_sec_filings_events` | SEC filing events: filing dates, form types (10-K, 8-K, ...), document metadata, and source URLs. |
297
+ | `get_events_tickers` | Past and upcoming corporate events: earnings (EPS estimate/actual/surprise) and IPOs. |
298
+ | `get_market_calendars` | Macroeconomic release calendar: indicator releases by country with actual, prior, and originally reported values. |
278
299
 
279
- ### Financial Statements
300
+ ### Analyst & Earnings Data
280
301
 
281
302
  | Tool | Description |
282
303
  |------|-------------|
283
- | `get_financials_general` | Unified financial statements and valuation measures across reporting intervals. |
284
- | `get_financials_income_statement` | Detailed Income Statement: revenue, expenses, net income (annual/quarterly/trailing). |
285
- | `get_financials_balance_sheet` | Balance Sheet: financial position and capital structure snapshot. |
286
- | `get_financials_cash_flow` | Cash Flow Statement: operating, investing, and financing cash flows. |
287
- | `get_financials_valuation_measures` | Valuation Measures: P/E, EV/EBITDA, P/B, and related metrics. |
304
+ | `get_analysis_analysts` | Analyst coverage records per analyst: scores, ratings, sentiment, price targets, and announcement dates. |
305
+ | `get_analysis_earnings` | Earnings and estimate data: EPS actuals, earnings vs. revenue, EPS trends, revisions, and growth metrics. |
306
+ | `get_analysis_recommendations` | Analyst recommendation breakdown over time: Strong Buy, Buy, Hold, Sell, and Strong Sell counts per period. |
307
+ | `get_analysis_upgrades_downgrades` | Analyst rating action feed: upgrades, downgrades, reiterations, and price target changes with from/to grades. |
288
308
 
289
- ### Holders & Ownership
309
+ ### Ownership & Insider Data
290
310
 
291
311
  | Tool | Description |
292
312
  |------|-------------|
@@ -295,26 +315,27 @@ API_TOKEN=your-api-token npx finimpulse-mcp-server
295
315
  | `get_holders_mutual_funds` | Mutual funds and ETFs that hold a given stock. |
296
316
  | `get_holders_insiders` | Insider transaction records: actions, roles, and reported positions. |
297
317
  | `get_holders_insiders_transactions` | Detailed insider transactions with share counts, values, and filer identity. |
318
+ | `get_sec_filings_insider_transactions` | Record-level SEC Form 4 / 4/A data for one filing: insider transactions and holdings, transaction codes, ownership after the transaction, footnotes. |
298
319
 
299
- ### Fund Holdings
320
+ ### Financial Statements & Valuation
300
321
 
301
322
  | Tool | Description |
302
323
  |------|-------------|
303
- | `get_holdings_general` | Portfolio composition and holdings-level aggregates: asset allocation, sector exposure. |
304
- | `get_holdings_top_holdings` | Top holdings list with ticker, name, and weight as % of total net assets. |
305
- | `get_holdings_history_dates` | Available historical holdings reporting dates for an ETF. Use before `get_holdings_history`. |
306
- | `get_holdings_history` | Full ETF holdings composition (shares, weight, market value) on a historical reporting date. |
324
+ | `get_financials_income_statement` | Detailed Income Statement: revenue, expenses, net income (annual/quarterly/trailing). |
325
+ | `get_financials_balance_sheet` | Balance Sheet: financial position and capital structure snapshot. |
326
+ | `get_financials_cash_flow` | Cash Flow Statement: operating, investing, and financing cash flows. |
327
+ | `get_financials_valuation_measures` | Valuation Measures: P/E, EV/EBITDA, P/B, and related metrics. |
328
+ | `get_metrics` | Dividend data, returns, profitability, growth, leverage, and business quality metrics. Primarily applicable to stocks. |
307
329
 
308
- ### Analyst Coverage & Ratings
330
+ ### Statistics, Performance & Risk
309
331
 
310
332
  | Tool | Description |
311
333
  |------|-------------|
312
- | `get_analysis_analysts` | Analyst coverage records per analyst: scores, ratings, sentiment, price targets, and announcement dates. |
313
- | `get_analysis_earnings` | Earnings and estimate data: EPS actuals, earnings vs. revenue, EPS trends, revisions, and growth metrics. |
314
- | `get_analysis_recommendations` | Analyst recommendation breakdown over time: Strong Buy, Buy, Hold, Sell, and Strong Sell counts per period. |
315
- | `get_analysis_upgrades_downgrades` | Analyst rating action feed: upgrades, downgrades, reiterations, and price target changes with from/to grades. |
334
+ | `get_statistics_general` | Key statistics and performance indicators: valuation, dividends, risk, trailing returns. |
335
+ | `get_statistics_risks` | Risk-adjusted performance metrics (Alpha, Beta, Sharpe, Treynor, R-squared) across 3y/5y/10y horizons. |
336
+ | `get_statistics_annual_returns` | Historical annual total returns by calendar year with quarterly breakdowns. |
316
337
 
317
- ### Options
338
+ ### Options Data
318
339
 
319
340
  | Tool | Description |
320
341
  |------|-------------|
@@ -322,12 +343,19 @@ API_TOKEN=your-api-token npx finimpulse-mcp-server
322
343
  | `get_options_chain` | Full option chain for a given expiration: calls and puts with pricing, bid/ask, volume, open interest, and implied volatility. |
323
344
  | `get_options_contracts` | Single option contract snapshot: pricing, bid/ask, volume, open interest, implied volatility, moneyness, and Greeks. |
324
345
 
325
- ### Events & Macroeconomics
346
+ ### ETF & Fund Holdings
347
+
348
+ | Tool | Description |
349
+ |------|-------------|
350
+ | `get_holdings_general` | Portfolio composition and holdings-level aggregates: asset allocation, sector exposure. |
351
+ | `get_holdings_top_holdings` | Top holdings list with ticker, name, and weight as % of total net assets. |
352
+ | `get_holdings_history_dates` | Available historical holdings reporting dates for an ETF. Use before `get_holdings_history`. |
353
+ | `get_holdings_history` | Full ETF holdings composition (shares, weight, market value) on a historical reporting date. |
354
+
355
+ ### Macroeconomic Data
326
356
 
327
357
  | Tool | Description |
328
358
  |------|-------------|
329
- | `get_events_tickers` | Past and upcoming corporate events: earnings (EPS estimate/actual/surprise) and IPOs. |
330
- | `get_market_calendars` | Macroeconomic release calendar: indicator releases by country with actual, prior, and originally reported values. |
331
359
  | `get_macro_economics` | Annual country-level macroeconomic indicators (GDP, inflation, rates, trade, government finances). Source: OECD. |
332
360
 
333
361
  ## Configuration
@@ -3,6 +3,7 @@ export class ApiClient {
3
3
  token;
4
4
  API_BASE = 'https://api.finimpulse.com';
5
5
  USER_AGENT = `FinImpulse-MCP-TypeScript-SDK/${version}`;
6
+ TOKEN_SETTINGS_URL = 'https://app.finimpulse.com/developer/settings';
6
7
  constructor(token) {
7
8
  this.token = token;
8
9
  }
@@ -23,6 +24,9 @@ export class ApiClient {
23
24
  headers,
24
25
  body: bodyStr
25
26
  });
27
+ if (response.status === 401) {
28
+ return this.formatUnauthorizedResponse();
29
+ }
26
30
  if (!response.ok) {
27
31
  throw new Error(`HTTP error! status: ${response.status}`);
28
32
  }
@@ -79,6 +83,20 @@ export class ApiClient {
79
83
  ],
80
84
  };
81
85
  }
86
+ formatUnauthorizedResponse() {
87
+ const message = this.token
88
+ ? 'FinImpulse API rejected the API token (401 Unauthorized). The token is invalid or revoked.'
89
+ : 'FinImpulse API token is missing (401 Unauthorized).';
90
+ return {
91
+ isError: true,
92
+ content: [
93
+ {
94
+ type: "text",
95
+ text: `Error: ${message} For a local server, set a valid API_TOKEN environment variable in the MCP client config and restart the server. Get a token at ${this.TOKEN_SETTINGS_URL}. For the hosted server (https://mcp.finimpulse.com/mcp), reconnect it to sign in again.`,
96
+ },
97
+ ],
98
+ };
99
+ }
82
100
  formatError(error) {
83
101
  return error instanceof Error ? error.message : 'Unknown error';
84
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/http/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAG5C,MAAM,OAAO,SAAS;IAKQ;IAHrB,QAAQ,GAAG,4BAA4B,CAAC;IAExC,UAAU,GAAG,iCAAiC,OAAO,EAAE,CAAC;IAChE,YAA6B,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAE9C,KAAK,CAAC,OAAO,CAAI,GAAW,EAAE,SAAiB,MAAM,EAAE,IAAU,EAAE,YAAqB,KAAK;QAC5F,MAAM,OAAO,GAAgB;YAC5B,YAAY,EAAE,IAAI,CAAC,UAAU;YAC7B,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,SAAS,GAAG,IAAI,CAAC,KAAK;SACrC,CAAC;QACF,2DA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W,GAAG,CAAC,CAAC;QAC1F,CAAC;IACF,CAAC;IAEO,cAAc,CAAI,IAA+B;QACxD,+DAA+D;QAC/D,wCAAwC;QACxC,oCAAoC;QACpC,iDAAiD;QACjD,2DAA2D;QAC3D,uCAAuC;QACvC,yDAAyD;QACzD,MAAM;QACN,KAAK;QACL,IAAI;QACJ,OAAO;YACN,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;iBACnC;aACD;SACD,CAAC;IACH,CAAC;IAEO,mBAAmB,CAAC,KAAc;QACzC,OAAO;YACN,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,UAAU,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;iBACzC;aACD;SACD,CAAC;IACH,CAAC;IAEO,0BAA0B;QACjC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK;YACzB,CAAC,CAAC,4FAA4F;YAC9F,CAAC,CAAC,qDAAqD,CAAC;QACzD,OAAO;YACN,OAAO,EAAE,IAAI;YACb,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,UAAU,OAAO,mIAAmI,IAAI,CAAC,kBAAkB,0FAA0F;iBAC3Q;aACD;SACD,CAAC;IACH,CAAC;IAED,WAAW,CAAC,KAAc;QACzB,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;IACjE,CAAC;CACD"}
@@ -0,0 +1,4 @@
1
+ export async function historiesCurrenciesHandler(input, client) {
2
+ return client.request('/v1/histories/currencies', 'POST', input);
3
+ }
4
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/historical/currencies/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,KAA+B,EAAE,MAAiB;IAClG,OAAO,MAAM,CAAC,OAAO,CAA8B,0BAA0B,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC/F,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { historiesCurrenciesInputSchema } from './schema.js';
2
+ import { historiesCurrenciesHandler } from './handler.js';
3
+ export function registerHistoriesCurrenciesTool(server, client) {
4
+ server.registerTool('get_histories_currencies', { description: 'Returns historical forex exchange rates (open, high, low, close, adjusted close) for a currency pair, e.g. EUR/USD: how many units of currency_to equal one unit of currency_from. Supports date range, intervals from daily to yearly, filtering, sorting by date and pagination. Covers ~150 currencies, history from 1996, updated daily. For stocks, ETFs, mutual funds and indices use get_histories instead.', inputSchema: historiesCurrenciesInputSchema }, (input) => historiesCurrenciesHandler(input, client));
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/historical/currencies/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,8BAA8B,EAAC,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AAGxD,MAAM,UAAU,+BAA+B,CAAC,MAAiB,EAAE,MAAiB;IACnF,MAAM,CAAC,YAAY,CAAC,0BAA0B,EAAE,EAAE,WAAW,EAAE,oZAAoZ,EAAE,WAAW,EAAE,8BAA8B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3jB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { getFilterDescription, getFilterExpression } from '../../../utils/filters.js';
3
+ export const historiesCurrenciesInputSchema = z.object({
4
+ currency_from: z.string().regex(/^[A-Z]{3}$/).optional().describe('Base currency code (uppercase 3-letter code, e.g., GBP). Required unless search_after_token is provided.'),
5
+ currency_to: z.string().regex(/^[A-Z]{3}$/).optional().describe('Quote currency code (uppercase 3-letter code, e.g., EUR). Required unless search_after_token is provided.'),
6
+ interval: z.enum(['1d', '1wk', '1mo', '3mo', '6mo', '1y']).optional().describe(`Granularity for returned history records. If omitted, daily records (1d) are returned.
7
+ Available values:
8
+ * 1d - 1 day
9
+ * 1wk - 1 week
10
+ * 1mo - 1 month
11
+ * 3mo - 3 months
12
+ * 6mo - 6 months
13
+ * 1y - 1 year`),
14
+ start_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Start of the date range filter (YYYY-MM-DD). If omitted, records are returned from the earliest available date.'),
15
+ end_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('End of the date range filter (YYYY-MM-DD). If omitted, records are returned up to the most recent available date.'),
16
+ filters: getFilterExpression().optional().describe(getFilterDescription('"filters": ["close", ">", 1.1]') + '\nFilterable fields: date, open, high, low, close, adj_close.'),
17
+ sort_by: z.array(z.object({
18
+ selector: z.enum(['date']).describe('Field used for sorting. The only supported value is date.'),
19
+ desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
20
+ })).optional().describe('Optional sorting configuration. Records can be sorted by date only: [{"selector": "date", "desc": false}]. By default, records are sorted by date in descending order.'),
21
+ limit: z.number().int().min(1).max(1000).optional().describe('Maximum number of matched items returned. Default: 100, maximum: 1000.'),
22
+ offset: z.number().int().min(0).optional().describe('Pagination offset (0-based).'),
23
+ search_after_token: z.string().optional().describe('Pagination token. Pass the search_after_token value from the previous response to fetch the next page, together with limit. Other request parameters do not need to be repeated.'),
24
+ tag: z.string().max(255).optional().describe('User-defined request identifier (max 255 characters). Returned in the response; does not affect processing.'),
25
+ });
26
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/historical/currencies/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,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AwK,CACxK;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wEAAwE,CAAC;IACtI,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACnF,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,kLAAkL,CAClL;IACD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6GAA6G,CAAC;CAC3J,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/historical/currencies/types.ts"],"names":[],"mappings":""}
@@ -13,22 +13,9 @@ export const historiesInputSchema = z.object({
13
13
  start_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Date range filter (YYYY-MM-DD). Records returned fall within the requested period.'),
14
14
  end_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Date range filter (YYYY-MM-DD). Records returned fall within the requested period.'),
15
15
  sort_by: z.array(z.object({
16
- selector: z.string().describe("Metric used for sorting (e.g., amount_usd)"),
17
- desc: z.boolean().describe("Sorting direction (true for descending, false for ascending)."),
18
- })).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
19
-
20
- selector - Metric used for sorting (e.g., date).
21
- desc - Sorting direction (true for descending, false for ascending).
22
- Sortings can be combined using ,.
23
-
24
- Example:
25
-
26
- {
27
- "selector": "date",
28
- "desc": true
29
- }
30
-
31
- `),
16
+ selector: z.enum(['date']).describe('Field used for sorting. The only supported value is date.'),
17
+ desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
18
+ })).optional().describe('Optional sorting configuration. Records can be sorted by date only: [{"selector": "date", "desc": false}]. By default, records are sorted by date in descending order.'),
32
19
  limit: z.number().min(1).max(5000).default(10).optional().describe("Maximum number of matched items returned."),
33
20
  offset: z.number().min(0).optional().describe(`Pagination offset (0-based).`),
34
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/historical/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAC,WAAW,EAAC,QAAQ,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,GAAG,IAAI,GAAG,qBAAqB,GAAG,IAAI,GAAG,oBAAoB,GAAG,aAAa,GAAG,UAAU,GAAG,iBAAiB,GAAG,6GAA6G,CAAC;IACjW,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7E;;;;;;;mBAOiB,CACjB;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACtE,oFAAoF,CACpF;IACD,QAAQ,EAAE,C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  import { registerSearchLiteTool } from './search-lite/index.js';
3
3
  import { registerHistoriesTool } from './historical/index.js';
4
+ import { registerHistoriesCurrenciesTool } from './historical/currencies/index.js';
4
5
  import { registerSummaryTool } from './summary/index.js';
5
6
  import { registerSummaryLiteTool } from './summary-lite/index.js';
6
7
  import { registerProfileTool } from './profile/index.js';
@@ -36,10 +37,12 @@ import { registerMacroEconomicsTool } from './macro-economics/index.js';
36
37
  import { registerMarketCalendarsTool } from './market/calendars/index.js';
37
38
  import { registerMarketIndexTool } from './market/index/index.js';
38
39
  import { registerSecFilingsEventsTool } from './sec-filings/events/index.js';
40
+ import { registerSecFilingsInsiderTransactionsTool } from './sec-filings/insider-transactions/index.js';
39
41
  export function registerAllTools(server, client) {
40
42
  registerSearchTool(server, client);
41
43
  registerSearchLiteTool(server, client);
42
44
  registerHistoriesTool(server, client);
45
+ registerHistoriesCurrenciesTool(server, client);
43
46
  registerSummaryTool(server, client);
44
47
  registerSummaryLiteTool(server, client);
45
48
  registerProfileTool(server, client);
@@ -75,5 +78,6 @@ export function registerAllTools(server, client) {
75
78
  registerMarketCalendarsTool(server, client);
76
79
  registerMarketIndexTool(server, client);
77
80
  registerSecFilingsEventsTool(server, client);
81
+ registerSecFilingsInsiderTransactionsTool(server, client);
78
82
  }
79
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAC,sBAAsB,EAAC,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EA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+B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,gCAAgC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,2BAA2B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,4BAA4B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,8BAA8B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,0BAA0B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,2BAA2B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,4BAA4B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,yCAAyC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export async function secFilingsEventsHandler(input, client) {
2
- return client.request('/v1/events', 'POST', input);
2
+ return client.request('/v1/sec-filings/events', 'POST', input);
3
3
  }
4
4
  //# sourceMappingURL=handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/events/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,KAA4B,EAAE,MAAiB;IAC5F,OAAO,MAAM,CAAC,OAAO,CAA2B,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC9E,CAAC"}
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/events/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,KAA4B,EAAE,MAAiB;IAC5F,OAAO,MAAM,CAAC,OAAO,CAA2B,wBAAwB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1F,CAAC"}
@@ -0,0 +1,4 @@
1
+ export async function secFilingsInsiderTransactionsHandler(input, client) {
2
+ return client.request('/v1/sec-filings/insider-transactions', 'POST', input);
3
+ }
4
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/insider-transactions/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,oCAAoC,CAAC,KAAyC,EAAE,MAAiB;IACtH,OAAO,MAAM,CAAC,OAAO,CAAwC,sCAAsC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACrH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { secFilingsInsiderTransactionsInputSchema } from './schema.js';
2
+ import { secFilingsInsiderTransactionsHandler } from './handler.js';
3
+ export function registerSecFilingsInsiderTransactionsTool(server, client) {
4
+ server.registerTool('get_sec_filings_insider_transactions', { description: 'Returns record-level data from a single SEC Form 4 / Form 4/A filing for a stock: non-derivative and derivative transactions and holdings with SEC transaction codes, shares owned after the transaction, direct/indirect ownership, footnotes and the link to the original SEC document. Requires accession_number plus symbol or cik: first call get_sec_filings_events and filter by form (4, 4/A) to get them. One request covers one filing; for a simplified insider transaction history across filings use get_holders_insiders_transactions.', inputSchema: secFilingsInsiderTransactionsInputSchema }, (input) => secFilingsInsiderTransactionsHandler(input, client));
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/insider-transactions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,wCAAwC,EAAC,MAAM,aAAa,CAAC;AACrE,OAAO,EAAC,oCAAoC,EAAC,MAAM,cAAc,CAAC;AAGlE,MAAM,UAAU,yCAAyC,CAAC,MAAiB,EAAE,MAAiB;IAC7F,MAAM,CAAC,YAAY,CAAC,sCAAsC,EAAE,EAAE,WAAW,EAAE,shBAAshB,EAAE,WAAW,EAAE,wCAAwC,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC7tB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { getFilterDescription, getFilterExpression, getSortBySchema } from '../../../utils/filters.js';
3
+ export const secFilingsInsiderTransactionsInputSchema = z.object({
4
+ symbol: z.string().min(1).optional().describe('Asset identifier (ticker symbol). Required if cik is not provided. Takes priority when both are specified.'),
5
+ cik: z.string().optional().describe('Central Index Key (CIK) of the company, up to 10 digits. Required if symbol is not provided.'),
6
+ accession_number: z.string().min(1).describe('Unique SEC accession number of the Form 4 or Form 4/A filing. Get it (with symbol and cik) from get_sec_filings_events filtered by form.'),
7
+ transaction_types: z.array(z.enum(['non_derivative_transaction', 'derivative_transaction', 'non_derivative_holding', 'derivative_holding', 'unknown'])).optional().describe('Record types to return. Any combination of: non_derivative_transaction, derivative_transaction, non_derivative_holding, derivative_holding, unknown. If omitted, all types are returned.'),
8
+ filters: getFilterExpression().optional().describe(getFilterDescription('"filters": ["transaction_code", "=", "S"]') + '\nSupported on all fields except owner_relationship and transaction_type (use transaction_types instead).'),
9
+ sort_by: getSortBySchema('transaction_date', 'Results are sorted by transaction_type in ascending order by default.'),
10
+ limit: z.number().int().min(1).max(1000).optional().describe('Maximum number of matched items returned. Default: 100, maximum: 1000.'),
11
+ offset: z.number().int().min(0).optional().describe('Pagination offset (0-based).'),
12
+ tag: z.string().max(255).optional().describe('User-defined request identifier (max 255 characters). Returned in the response; does not affect processing.'),
13
+ });
14
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/insider-transactions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,oBAAoB,EAAE,mBAAmB,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AC,QAAQ,CAAC,6GAA6G,CAAC;CAC3J,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/sec-filings/insider-transactions/types.ts"],"names":[],"mappings":""}
@@ -39,6 +39,7 @@ async function resolveApiToken(req) {
39
39
  export async function bearerAuth(req, res, next) {
40
40
  const apiToken = await resolveApiToken(req);
41
41
  if (!apiToken) {
42
+ res.set('WWW-Authenticate', `Bearer resource_metadata="${req.protocol}://${req.get('host')}/.well-known/oauth-protected-resource"`);
42
43
  res.status(401).json({ error: "Unauthorized" });
43
44
  return;
44
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/transports/http.ts"],"names":[],"mappings":"AAAA,OAAO,OAA4C,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,6BAA6B,CAAC;AACrF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;AACrD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEhD,KAAK,UAAU,kBAAkB,CAAC,UAAkB;IACnD,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7C,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAE1B,IAAI,CAAC;QACJ,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,eAAe,gBAAgB,EAAE;YAC3D,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,UAAU,EAAE,EAAE;SAClD,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAA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,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,OAAO;IAC5B,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;IACtB,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC7B,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAExB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACvB,GAAG,CAAC,GAAG,CAAC,uCAAuC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC7D,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,QAAQ,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACxD,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IAC/C,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IAC9C,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IAEjD,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;IAC9C,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,0CAA0C,IAAI,EAAE,CAAC,CAAC,CAAC;AACzF,CAAC"}
@@ -2,6 +2,9 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
2
2
  import { createServer } from '../server.js';
3
3
  export async function runStdio() {
4
4
  const token = process.env.API_TOKEN ?? '';
5
+ if (!token) {
6
+ console.error("Warning: API_TOKEN is not set. Tools will return 401 Unauthorized. Get a token at https://app.finimpulse.com/developer/settings");
7
+ }
5
8
  const server = createServer(token);
6
9
  await server.connect(new StdioServerTransport());
7
10
  console.error("Finimpulse MCP Server running on stdio");
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/transports/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;AACzD,CAAC"}
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/transports/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,iIAAiI,CAAC,CAAC;IAClJ,CAAC;IACD,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;AACzD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "finimpulse-mcp-server",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
+ "mcpName": "io.github.finimpulse/mcp-server",
4
5
  "description": "MCP server for FinImpulse financial market data API",
5
6
  "main": "build/index.js",
6
7
  "type": "module",