finimpulse-mcp-server 1.3.0 → 1.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.
- package/README.md +87 -58
- package/build/tools/historical/currencies/handler.js +4 -0
- package/build/tools/historical/currencies/handler.js.map +1 -0
- package/build/tools/historical/currencies/index.js +6 -0
- package/build/tools/historical/currencies/index.js.map +1 -0
- package/build/tools/historical/currencies/schema.js +26 -0
- package/build/tools/historical/currencies/schema.js.map +1 -0
- package/build/tools/historical/currencies/types.js +2 -0
- package/build/tools/historical/currencies/types.js.map +1 -0
- package/build/tools/historical/schema.js +3 -16
- package/build/tools/historical/schema.js.map +1 -1
- package/build/tools/index.js +4 -0
- package/build/tools/index.js.map +1 -1
- package/build/tools/sec-filings/events/handler.js +1 -1
- package/build/tools/sec-filings/events/handler.js.map +1 -1
- package/build/tools/sec-filings/insider-transactions/handler.js +4 -0
- package/build/tools/sec-filings/insider-transactions/handler.js.map +1 -0
- package/build/tools/sec-filings/insider-transactions/index.js +6 -0
- package/build/tools/sec-filings/insider-transactions/index.js.map +1 -0
- package/build/tools/sec-filings/insider-transactions/schema.js +14 -0
- package/build/tools/sec-filings/insider-transactions/schema.js.map +1 -0
- package/build/tools/sec-filings/insider-transactions/types.js +2 -0
- package/build/tools/sec-filings/insider-transactions/types.js.map +1 -0
- package/package.json +1 -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
|
|
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
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
|
|
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
|
|
112
|
+
In the ChatGPT web app go to **Plugins → Add → Add custom MCP server** and enter the following:
|
|
114
113
|
|
|
115
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
####
|
|
231
|
+
#### Antigravity CLI
|
|
223
232
|
|
|
224
233
|
```bash
|
|
225
|
-
|
|
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
|
|
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,60 @@ 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
|
-
|
|
249
|
-
|
|
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 38 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
|
-
###
|
|
275
|
+
### Price Data
|
|
261
276
|
|
|
262
277
|
| Tool | Description |
|
|
263
278
|
|------|-------------|
|
|
264
|
-
| `
|
|
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
|
-
###
|
|
291
|
+
### News, Events & Calendars
|
|
272
292
|
|
|
273
293
|
| Tool | Description |
|
|
274
294
|
|------|-------------|
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
| `
|
|
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_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
|
+
| `get_events_tickers` | Past and upcoming corporate events: earnings (EPS estimate/actual/surprise) and IPOs. |
|
|
299
|
+
| `get_market_calendars` | Macroeconomic release calendar: indicator releases by country with actual, prior, and originally reported values. |
|
|
278
300
|
|
|
279
|
-
###
|
|
301
|
+
### Analyst & Earnings Data
|
|
280
302
|
|
|
281
303
|
| Tool | Description |
|
|
282
304
|
|------|-------------|
|
|
283
|
-
| `
|
|
284
|
-
| `
|
|
285
|
-
| `
|
|
286
|
-
| `
|
|
287
|
-
| `get_financials_valuation_measures` | Valuation Measures: P/E, EV/EBITDA, P/B, and related metrics. |
|
|
305
|
+
| `get_analysis_analysts` | Analyst coverage records per analyst: scores, ratings, sentiment, price targets, and announcement dates. |
|
|
306
|
+
| `get_analysis_earnings` | Earnings and estimate data: EPS actuals, earnings vs. revenue, EPS trends, revisions, and growth metrics. |
|
|
307
|
+
| `get_analysis_recommendations` | Analyst recommendation breakdown over time: Strong Buy, Buy, Hold, Sell, and Strong Sell counts per period. |
|
|
308
|
+
| `get_analysis_upgrades_downgrades` | Analyst rating action feed: upgrades, downgrades, reiterations, and price target changes with from/to grades. |
|
|
288
309
|
|
|
289
|
-
###
|
|
310
|
+
### Ownership & Insider Data
|
|
290
311
|
|
|
291
312
|
| Tool | Description |
|
|
292
313
|
|------|-------------|
|
|
@@ -296,25 +317,26 @@ API_TOKEN=your-api-token npx finimpulse-mcp-server
|
|
|
296
317
|
| `get_holders_insiders` | Insider transaction records: actions, roles, and reported positions. |
|
|
297
318
|
| `get_holders_insiders_transactions` | Detailed insider transactions with share counts, values, and filer identity. |
|
|
298
319
|
|
|
299
|
-
###
|
|
320
|
+
### Financial Statements & Valuation
|
|
300
321
|
|
|
301
322
|
| Tool | Description |
|
|
302
323
|
|------|-------------|
|
|
303
|
-
| `
|
|
304
|
-
| `
|
|
305
|
-
| `
|
|
306
|
-
| `
|
|
324
|
+
| `get_financials_general` | Unified financial statements and valuation measures across reporting intervals. |
|
|
325
|
+
| `get_financials_income_statement` | Detailed Income Statement: revenue, expenses, net income (annual/quarterly/trailing). |
|
|
326
|
+
| `get_financials_balance_sheet` | Balance Sheet: financial position and capital structure snapshot. |
|
|
327
|
+
| `get_financials_cash_flow` | Cash Flow Statement: operating, investing, and financing cash flows. |
|
|
328
|
+
| `get_financials_valuation_measures` | Valuation Measures: P/E, EV/EBITDA, P/B, and related metrics. |
|
|
329
|
+
| `get_metrics` | Dividend data, returns, profitability, growth, leverage, and business quality metrics. Primarily applicable to stocks. |
|
|
307
330
|
|
|
308
|
-
###
|
|
331
|
+
### Statistics, Performance & Risk
|
|
309
332
|
|
|
310
333
|
| Tool | Description |
|
|
311
334
|
|------|-------------|
|
|
312
|
-
| `
|
|
313
|
-
| `
|
|
314
|
-
| `
|
|
315
|
-
| `get_analysis_upgrades_downgrades` | Analyst rating action feed: upgrades, downgrades, reiterations, and price target changes with from/to grades. |
|
|
335
|
+
| `get_statistics_general` | Key statistics and performance indicators: valuation, dividends, risk, trailing returns. |
|
|
336
|
+
| `get_statistics_risks` | Risk-adjusted performance metrics (Alpha, Beta, Sharpe, Treynor, R-squared) across 3y/5y/10y horizons. |
|
|
337
|
+
| `get_statistics_annual_returns` | Historical annual total returns by calendar year with quarterly breakdowns. |
|
|
316
338
|
|
|
317
|
-
### Options
|
|
339
|
+
### Options Data
|
|
318
340
|
|
|
319
341
|
| Tool | Description |
|
|
320
342
|
|------|-------------|
|
|
@@ -322,12 +344,19 @@ API_TOKEN=your-api-token npx finimpulse-mcp-server
|
|
|
322
344
|
| `get_options_chain` | Full option chain for a given expiration: calls and puts with pricing, bid/ask, volume, open interest, and implied volatility. |
|
|
323
345
|
| `get_options_contracts` | Single option contract snapshot: pricing, bid/ask, volume, open interest, implied volatility, moneyness, and Greeks. |
|
|
324
346
|
|
|
325
|
-
###
|
|
347
|
+
### ETF & Fund Holdings
|
|
348
|
+
|
|
349
|
+
| Tool | Description |
|
|
350
|
+
|------|-------------|
|
|
351
|
+
| `get_holdings_general` | Portfolio composition and holdings-level aggregates: asset allocation, sector exposure. |
|
|
352
|
+
| `get_holdings_top_holdings` | Top holdings list with ticker, name, and weight as % of total net assets. |
|
|
353
|
+
| `get_holdings_history_dates` | Available historical holdings reporting dates for an ETF. Use before `get_holdings_history`. |
|
|
354
|
+
| `get_holdings_history` | Full ETF holdings composition (shares, weight, market value) on a historical reporting date. |
|
|
355
|
+
|
|
356
|
+
### Macroeconomic Data
|
|
326
357
|
|
|
327
358
|
| Tool | Description |
|
|
328
359
|
|------|-------------|
|
|
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
360
|
| `get_macro_economics` | Annual country-level macroeconomic indicators (GDP, inflation, rates, trade, government finances). Source: OECD. |
|
|
332
361
|
|
|
333
362
|
## Configuration
|
|
@@ -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,EAAC,oBAAoB,EAAE,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAEpF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChE,0GAA0G,CAC1G;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9D,2GAA2G,CAC3G;IACD,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,iHAAiH,CACjH;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpE,mHAAmH,CACnH;IACD,OAAO,EAAE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,oBAAoB,CAAC,gCAAgC,CAAC,GAAG,+DAA+D,CACxH;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,2DAA2D,CAAC;QAChG,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB,wKAAwK,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 @@
|
|
|
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.
|
|
17
|
-
desc: z.boolean().describe(
|
|
18
|
-
})).optional().describe(
|
|
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,C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from './search/index.js';
|
|
2
2
|
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
|
package/build/tools/index.js.map
CHANGED
|
@@ -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,OAA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;IAC7C,yCAAyC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -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,
|
|
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 @@
|
|
|
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,EAAE,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAErG,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC5C,4GAA4G,CAC5G;IACD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8FAA8F,CAAC;IACnI,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAC3C,0IAA0I,CAC1I;IACD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CACzB,CAAC,CAAC,IAAI,CAAC,CAAC,4BAA4B,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAC3H,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB,0LAA0L,CAC1L;IACD,OAAO,EAAE,m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