@cyanheads/secedgar-mcp-server 0.21.0 → 0.21.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/AGENTS.md +17 -17
- package/CLAUDE.md +17 -17
- package/README.md +8 -6
- package/changelog/0.21.x/0.21.1.md +29 -0
- package/dist/mcp-server/tools/annual-report-reads.d.ts +9 -6
- package/dist/mcp-server/tools/annual-report-reads.d.ts.map +1 -1
- package/dist/mcp-server/tools/annual-report-reads.js +10 -6
- package/dist/mcp-server/tools/annual-report-reads.js.map +1 -1
- package/dist/mcp-server/tools/blockquote.d.ts +13 -0
- package/dist/mcp-server/tools/blockquote.d.ts.map +1 -0
- package/dist/mcp-server/tools/blockquote.js +18 -0
- package/dist/mcp-server/tools/blockquote.js.map +1 -0
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts +10 -3
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js +169 -68
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.js +31 -21
- package/dist/mcp-server/tools/definitions/get-filing.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.js +167 -95
- package/dist/mcp-server/tools/definitions/get-financials.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts +20 -0
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js +73 -8
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +439 -425
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.js +152 -42
- package/dist/mcp-server/tools/definitions/search-filings.tool.js.map +1 -1
- package/dist/mcp-server/tools/filing-dates.d.ts +2 -0
- package/dist/mcp-server/tools/filing-dates.d.ts.map +1 -1
- package/dist/mcp-server/tools/filing-dates.js +6 -0
- package/dist/mcp-server/tools/filing-dates.js.map +1 -1
- package/dist/services/edgar/call-scope.d.ts +9 -0
- package/dist/services/edgar/call-scope.d.ts.map +1 -1
- package/dist/services/edgar/call-scope.js +3 -0
- package/dist/services/edgar/call-scope.js.map +1 -1
- package/dist/services/edgar/concept-series.d.ts +47 -9
- package/dist/services/edgar/concept-series.d.ts.map +1 -1
- package/dist/services/edgar/concept-series.js +83 -11
- package/dist/services/edgar/concept-series.js.map +1 -1
- package/dist/services/edgar/edgar-api-service.d.ts +31 -15
- package/dist/services/edgar/edgar-api-service.d.ts.map +1 -1
- package/dist/services/edgar/edgar-api-service.js +170 -28
- package/dist/services/edgar/edgar-api-service.js.map +1 -1
- package/dist/services/edgar/filing-headers.d.ts +22 -10
- package/dist/services/edgar/filing-headers.d.ts.map +1 -1
- package/dist/services/edgar/filing-headers.js +98 -15
- package/dist/services/edgar/filing-headers.js.map +1 -1
- package/dist/services/edgar/fiscal-periods.d.ts +14 -1
- package/dist/services/edgar/fiscal-periods.d.ts.map +1 -1
- package/dist/services/edgar/fiscal-periods.js +47 -18
- package/dist/services/edgar/fiscal-periods.js.map +1 -1
- package/dist/services/edgar/ownership-parser.d.ts +19 -0
- package/dist/services/edgar/ownership-parser.d.ts.map +1 -1
- package/dist/services/edgar/ownership-parser.js +79 -0
- package/dist/services/edgar/ownership-parser.js.map +1 -1
- package/dist/services/edgar/types.d.ts +2 -0
- package/dist/services/edgar/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/server.json +3 -3
- package/skills/secedgar-guide/SKILL.md +6 -5
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ The skill ships in `skills/secedgar-guide/SKILL.md`. Plugin hosts load it from t
|
|
|
96
96
|
- `ticker:` takes the spellings `secedgar_company_search` resolves, and `effectiveQuery` names the CIK it scoped to and how a market-data spelling was read (`CIK 0001334933, UEC.N read as UEC (URANIUM ENERGY CORP)`)
|
|
97
97
|
- 8-K and 8-K/A rows carry `items`, decoded as `secedgar_get_material_events` decodes them (`[]` when EDGAR records none; absent on other forms and on full-index rows, whose index lists none), and the dataframe adds `item_codes`, `item_labels`, and `item_regime` (null on rows without items), so a cross-company item screen filters its `item_codes`
|
|
98
98
|
- One row per filing, tagged with `source` (`efts`, `submissions`, `full-index`); full-text rows list `matched_documents` (filenames for `secedgar_get_filing`); the response carries `total`, `form_distribution`, `total_is_exact`, and `total_documents` for full-text searches
|
|
99
|
-
- `next_offset` is the next page's offset (in documents under `sort: "relevance"
|
|
99
|
+
- `next_offset` is the next page's offset (in `offset`'s unit: documents under `sort: "relevance"` on an unscoped 2001-onward search that is not split by forms, the call's assembled filings elsewhere) and is absent on the last page; a relevance page is last when `offset + limit` reaches an exact `total_documents`. `truncated` and the paging notice appear only when filings lie past the page; when no `next_offset` reaches them (a date-sorted or entity window short of the match set, an archive or scan cap, offset 9,900), the notice says how to narrow
|
|
100
100
|
|
|
101
101
|
---
|
|
102
102
|
|
|
@@ -109,14 +109,14 @@ The skill ships in `skills/secedgar-guide/SKILL.md`. Plugin hosts load it from t
|
|
|
109
109
|
- A structured XML form the filer's submissions feed records through SEC's stylesheet (a recent Form 4, SCHEDULE 13D, or NPORT-P) reads as SEC renders it, with its labels and line breaks, so `section` reaches its Items; `documents` still lists the raw XML, which `document` returns as filed. A holdings report whose raw file passes 600 KB reads as filed
|
|
110
110
|
- A 2000–2001 document the archive doesn't serve under its listed name (`0001.htm`) is read under its accession-prefixed name, and `document` takes either spelling; if neither is served, the full submission `<accession>.txt` is read instead and the notice says so
|
|
111
111
|
- Without `cik`, the filer is found through EDGAR full-text search and the accession number's prefix, then, when none of those directories serves the filing, through the filers on the filing's index page — so a pre-2001 filing made through a filing agent resolves on its own, and a full-text search outage falls back instead of failing the call
|
|
112
|
-
- `later_filings` lists, oldest first, the filings after this one that amend or withdraw it, read from the submissions feed's recent window with no added request: the `/A` of a 10-K, 10-KT, 10-Q, 10-QT, 20-F, or 40-F for the same period, or the `/A` or `RW` of an S-1, S-3, S-4, S-11, F-1, F-3, F-4, F-6, F-10, SF-1, or SF-3 under the same `333-` file number; the notice names them, and for a filing outside the window says how far back the window reached, whether or not it names one. It says nothing was looked for when the `333-` number
|
|
112
|
+
- `later_filings` lists, oldest first, the filings after this one that amend or withdraw it, read from the submissions feed's recent window with no added request: the `/A` of a 10-K, 10-KT, 10-Q, 10-QT, 20-F, or 40-F for the same period, or the `/A` or `RW` of an S-1, S-3, S-4, S-11, F-1, F-3, F-4, F-6, F-10, SF-1, or SF-3 under the same `333-` file number; the notice names them, and for a filing outside the window says how far back the window reached, whether or not it names one. A registration statement outside the window is checked on the `333-` number of the resolved filer's party block in its SEC header (a co-registrant's own suffixed number, matched exactly). It says nothing was looked for when the period cannot be read, when the filer has no `333-` number (none in the header, a number outside the `333-` series, or a feed that records no file numbers), or when the filing is newer than the cached feed, and it names a same-day amendment of such a filing as of unknown order
|
|
113
113
|
- A filing EDGAR shows exists (full-text search lists it, or its index page answers) whose archive listing answers 404 under every CIK tried fails `filing_not_served`, retryable, rather than `filing_not_found`, with or without `cik`; `filing_not_found` means no EDGAR source lists the accession
|
|
114
114
|
|
|
115
115
|
---
|
|
116
116
|
|
|
117
117
|
### `secedgar_get_financials` <sub>tool</sub>
|
|
118
118
|
|
|
119
|
-
- `company` (ticker or CIK) plus `concept` as a friendly name or raw XBRL tag; `taxonomy` `us-gaap` (default), `ifrs-full`, or `dei`; `period_type` `annual`, `quarterly`, or `
|
|
119
|
+
- `company` (ticker or CIK) plus `concept` as a friendly name or raw XBRL tag; `taxonomy` `us-gaap` (default), `ifrs-full`, or `dei`; `period_type` `annual`, `quarterly`, `all`, or `ytd` (year-to-date values from 10-Q, 10-QT, and 6-K durations longer than a quarter and shorter than a year, keyed by `start` / `end` and never mixed with calendar-period rows); `unit` picks one SEC unit key (`ZAR`, `USD`, `USD/EUR`) when a concept is reported in several; `limit` 1–100 trims the inline series
|
|
120
120
|
- Returns a deduplicated series, newest first, one value per calendar period with `form`, `filed`, `accession_number`, and `tag`, all in one `unit` (other units are named in `caveats`); `tags_tried` lists the tags checked, and an empty result fails as `no_concept_data`, `no_frame_data`, `no_period_data`, or `no_unit_data`
|
|
121
121
|
- When the filer reports a related us-gaap tag past where the concept's own tags stop (`ProfitLoss` for `net_income`, which includes noncontrolling interests), `caveats` name it with its newest period in place of the generic staleness caveat, and the `no_concept_data` and `no_frame_data` hints name it; values never change, and passing the tag as `concept` reads it. Related tags are never read under `ifrs-full` or `dei`
|
|
122
122
|
- Under `taxonomy: "ifrs-full"` the call also reads the filer's submissions feed once and, when SEC's XBRL data holds none of the statement facts of the filer's newest annual report (20-F or 40-F), adds a caveat saying so and pointing to `secedgar_get_filing`; a failed read only drops the caveat
|
|
@@ -148,6 +148,7 @@ The skill ships in `skills/secedgar-guide/SKILL.md`. Plugin hosts load it from t
|
|
|
148
148
|
- Without a date window it scans up to 100 of the newest Form 4 / 4-A filings; `filed_after` / `filed_before` (inclusive, either alone) read any period since mid-2003, up to 100 filings
|
|
149
149
|
- The scan reads whole filing dates: without a canvas it stops at the end of the date on which `limit` is met, a date that would carry it past the scan cap is left to the next call, and one date holding more Form 4s than the cap is read up to it. `history_scanned_through` is the oldest filing date reached, on every call that reached a Form 4. When Form 4s remain past it, the notice ends with the way on: `filed_before=<the day before>`; `filed_before=<that date>` with a note to dedupe on `accession_number`, for a date over a scan cap below 100 or a dated walk the 10-page archive cap ended; or, when an undated scan read the whole recent window and archive pages exist, the same `filed_before` worded "may exist". Without a canvas, when `limit` cuts `transactions`, the notice resumes at the filing date of the first row cut and says the rows shown from that date repeat and the next call's rows for it replace them
|
|
150
150
|
- Each transaction carries the reporting person, relationship, `transaction_code` and `transaction_type`, `is_derivative`, unsigned `shares_traded` with `direction` (`acquire` / `dispose`), price per share, and shares owned after; `dataset.truncated` means Form 4 filings exist, or may exist, past those read, and `filings_other_issuer` counts Form 4s the company filed as a reporting owner of another issuer, which add no rows (the notice points to `role: "reporting_owner"`, which reads them; the count is 0 under it). Most of them are recognized by the submissions feed's file number without being read, so `filings_scanned`, which includes them, can exceed the 100 filings one call reads. Under `reporting_owner` each transaction also carries `issuer_cik`, `issuer_name`, and `issuer_ticker`, and `role` is echoed; dataframe rows carry the three issuer columns under both roles. The top-level issuer name comes from the submissions document when SEC's ticker file has none. Price text preserves the numeric digits in fixed-point notation, with at least two decimal places.
|
|
151
|
+
- Rows carry `rule10b5_1`, the filing's `aff10b5One` box: one value for every row of the filing, including rows no plan covers, and absent when the filing has no box (filings before April 2023) or another value. Rows carry `footnotes: [{id, field}]` in filing order, where `field` names the output field the citing element annotates (`securityTitle` → `security_title`, `transactionDate` → `transaction_date`, `transactionCoding` → `transaction_code`, `transactionShares` → `shares_traded`, `transactionAcquiredDisposedCode` → `direction`, `transactionPricePerShare` → `price_per_share`, `sharesOwnedFollowingTransaction` → `shares_owned_after`, `directOrIndirectOwnership` → `ownership_type`, `natureOfOwnership` → `ownership_nature`; any other element takes its snake_case name). Top-level `footnote_texts: [{accession_number, id, text}]` lists each footnote an inline row cites once per filing, uncut; footnotes cited only by rows `limit` cuts appear only in the dataframe. `content[]` shows `| Rule 10b5-1: true|false` on each row's Code line, a `Footnotes:` line per row, and a closing `Footnotes in <accession>:` section with each text as a blockquote
|
|
151
152
|
- A joint filing is one row per transaction: `reporting_person` is the first owner listed (under `reporting_owner`, the one with the filer's CIK), `reporting_person_cik` its CIK, and `joint_filers` the other owners with CIK and relationship, since the XML ties no transaction to one owner (the dataframe's `joint_filers` column lists them as `Name (CIK x, relationship)` joined by `; `, NULL on a single-owner filing)
|
|
152
153
|
- Rows carry `form` (`4` or `4/A`); a 4/A row adds `amends_filing_date`, and a row of the original Form 4 that a 4/A in the scan restates carries `amended_by`, the 4/A's accession, so a net-activity sum adds `WHERE amended_by IS NULL` to count the trade once, as corrected. The notice names each pair, and flags the cases it cannot settle, naming the `filed_after` or `filed_before` that reaches an original outside the window: a 4/A that states no original date or matches several Form 4s, two 4/As amending one Form 4, a 4/A row matching no row of its original, and a restated key shared by several rows, none of which carries `amended_by`
|
|
153
154
|
|
|
@@ -174,12 +175,13 @@ The skill ships in `skills/secedgar-guide/SKILL.md`. Plugin hosts load it from t
|
|
|
174
175
|
|
|
175
176
|
### `secedgar_get_beneficial_owners` <sub>tool</sub>
|
|
176
177
|
|
|
177
|
-
- `issuer` is the company being held, or with `role: "filer"` the holder whose own schedules to read (a holder with no ticker resolves only by CIK); `role` is `issuer` (default) or `filer`; `form_kind` `all` (default), `13D`, or `13G`; `include_amendments` (default true); `limit` 1–20 matching parsed filings (default 10; up to 1,000 is served at 20). The newest-first scan examines at most 50 documents, excluding schedules naming another issuer; exclusions and failed documents do not consume `limit`
|
|
178
|
+
- `issuer` is the company being held, or with `role: "filer"` the holder whose own schedules to read (a holder with no ticker resolves only by CIK); `role` is `issuer` (default) or `filer`; `form_kind` `all` (default), `13D`, or `13G`; `include_amendments` (default true); `filed_after` / `filed_before` (inclusive filing dates, either alone) and `offset` (default 0, the matching schedules to skip, newest first by filing date, acceptance time, then accession number); `limit` 1–20 matching parsed filings (default 10; up to 1,000 is served at 20). The newest-first scan examines at most 50 documents, excluding schedules naming another issuer; exclusions and failed documents do not consume `limit`
|
|
179
|
+
- A window reads the recent submissions, then archive pages newest first, up to 10 pages, from the later of `filed_after` and 2024-12-18; a window ending before that date reads no page and says structured coverage starts then. Without a window, `offset` pages the recent submissions only. A truncated result ends with `To continue, repeat the call with filed_before=<date> and offset=<n>, its other arguments unchanged`; when the page cap stopped the scan, the notice names the filing date it reached and no `limit` lever is offered. A window with no match is a success with a notice, and `offset` past every match says so
|
|
178
180
|
- Each filing lists `reporting_persons` with voting power, dispositive power, and `percent_of_class` per person, which joint filers report for the same shares, so they don't sum; a 13D carries `purpose_of_transaction`, a 13G has none
|
|
179
181
|
- `purpose_of_transaction` and each person's `notes` come back as filed, line breaks included, up to 5,000 and 2,000 characters; a longer value keeps its first characters and sets `purpose_truncated` or `notes_truncated`, and the notice points to the whole text in the dataframe's `purpose_of_transaction` and `notes` columns or through `secedgar_get_filing`
|
|
180
|
-
- The submissions feed lists each schedule under both its subject and its filer, and each role reads its own side by `fileNumber` before any document is read, counting the other side for its notice; under `role: "filer"` each filing carries its subject as `issuer_cik` / `issuer_name`, the dataframe's `issuer_*` columns name each schedule's subject, and a co-reporting person named only on another filer's cover page is found with `secedgar_search_filings` on its quoted 10-digit CIK. A side with no schedules while the other holds some is a zero-filing success, and `no_filings_found` means both are empty
|
|
182
|
+
- The submissions feed lists each schedule under both its subject and its filer, and each role reads its own side by `fileNumber` before any document is read, counting the other side for its notice; under `role: "filer"` each filing carries its subject as `issuer_cik` / `issuer_name`, the dataframe's `issuer_*` columns name each schedule's subject, and a co-reporting person named only on another filer's cover page is found with `secedgar_search_filings` on its quoted 10-digit CIK. A side with no schedules while the other holds some is a zero-filing success, and `no_filings_found` means both are empty on an undated call
|
|
181
183
|
- Coverage starts 2024-12-18 with the structured XML schedules; `legacy_filings_before_coverage` counts the role's side of older `SC 13D` / `SC 13G` text filings
|
|
182
|
-
- `total_structured_filings`, counted on the role's side, partitions into `filings_examined` + `filings_not_examined`; examined documents partition into `filings_parsed` + `filings_excluded_other_issuer` + `filings_failed.length`. Failed accessions carry `document_not_found` (404) or `unparseable` (including missing issuer identity), and set `partial`. `truncated` means indexed schedules remain unexamined after the result limit or scan ceiling, independently of failures
|
|
184
|
+
- `total_structured_filings`, counted on the role's side, partitions into `filings_examined` + `filings_not_examined`; examined documents partition into `filings_parsed` + `filings_excluded_other_issuer` + `filings_failed.length`. Failed accessions carry `document_not_found` (404) or `unparseable` (including missing issuer identity), and set `partial`. `truncated` means indexed schedules remain unexamined after the result limit or scan ceiling, or the 10-page archive cap stopped a windowed scan, independently of failures. With a window the totals count the role's matches from `offset` on in the pages read
|
|
183
185
|
|
|
184
186
|
---
|
|
185
187
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "get_financials returns year-to-date facts with period_type ytd, insider rows carry the Rule 10b5-1 flag and footnotes, get_beneficial_owners takes a filed_after / filed_before window, and a search_filings forms list naming a base form and another form's amendment returns rows."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.21.1 — 2026-12-05
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`secedgar_get_financials` takes `period_type: "ytd"`** ([#284](https://github.com/cyanheads/secedgar-mcp-server/issues/284)). It returns year-to-date values, the 10-Q, 10-QT, and 6-K durations longer than a quarter, keyed by `start` / `end`, so Q2 and Q3 cash-flow quarters derive by subtraction. A quarterly series with only Q1 in recent years names `ytd` in a caveat.
|
|
12
|
+
- **`secedgar_get_insider_transactions` rows carry `rule10b5_1` and `footnotes`** ([#285](https://github.com/cyanheads/secedgar-mcp-server/issues/285)). `rule10b5_1` is the filing's `aff10b5One` box; `footnotes` lists `{id, field}` references, and `footnote_texts` gives each cited footnote's text once per filing.
|
|
13
|
+
- **`secedgar_get_beneficial_owners` takes `filed_after`, `filed_before`, and `offset`** ([#279](https://github.com/cyanheads/secedgar-mcp-server/issues/279)). A window reaches schedules past the newest ones; a truncated result names the `filed_before` and `offset` that continue it.
|
|
14
|
+
- **`secedgar_get_filing` checks later filings of a registration statement read from outside the feed window** ([#282](https://github.com/cyanheads/secedgar-mcp-server/issues/282)), by the filer's file number from the filing header.
|
|
15
|
+
|
|
16
|
+
## Changed
|
|
17
|
+
|
|
18
|
+
- **Best-effort side reads yield their pacer slot to primary reads** ([#283](https://github.com/cyanheads/secedgar-mcp-server/issues/283)). The IFRS annual-report check and `secedgar_get_financials`' related-tag read wait until no primary read is queued and leave unsent after a bounded wait, so under load the answer can omit their caveat.
|
|
19
|
+
- **`skills/secedgar-guide` 1.2 → 1.3.**
|
|
20
|
+
|
|
21
|
+
## Fixed
|
|
22
|
+
|
|
23
|
+
- **`secedgar_search_filings` returns rows for a `forms` list naming a base form and another form's amendment** ([#286](https://github.com/cyanheads/secedgar-mcp-server/issues/286)), such as `["10-K", "8-K/A"]`. A listed `X/A` whose base is listed is dropped, so `["10-K", "10-K/A"]` keeps the base form, and a list still mixing base and `/A` forms runs as two full-text searches, merged.
|
|
24
|
+
- **Filing-header parsing stays linear in the header's length.**
|
|
25
|
+
|
|
26
|
+
## Dependencies
|
|
27
|
+
|
|
28
|
+
- `domutils` ^4.0.2 → ^4.1.2
|
|
29
|
+
- `@biomejs/biome` ^2.6.9 → ^2.6.10
|
|
@@ -20,12 +20,15 @@ export declare const ANNUAL_REPORT_GRACE_MS = 3000;
|
|
|
20
20
|
* feed per filer, only under `ifrs-full` — where SEC's XBRL data lacks IFRS annual
|
|
21
21
|
* reports filed from late March 2026 — and never in strict mirror mode, which sends
|
|
22
22
|
* nothing to SEC for these tools. Build it right after starting the call's own
|
|
23
|
-
* reads
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
23
|
+
* reads; with the local mirror on they start once those settle instead, since a
|
|
24
|
+
* point read for a filer the store holds reads the same feed into the service's
|
|
25
|
+
* cache first. Each request is a side read (#283): it waits behind the call's own
|
|
26
|
+
* reads and every other primary read queued in the pacer, so under contention it can
|
|
27
|
+
* wait out the deadline unsent and the call answers without the caveat, logging the
|
|
28
|
+
* same warning as a failed read. Each gets one attempt under a scope of its own — the
|
|
29
|
+
* caller's signal beside a deadline armed when the call's own reads settle — so a
|
|
30
|
+
* failure, a 404, or a stall only leaves a filer without a report, while the
|
|
31
|
+
* caller's cancel still fails the call.
|
|
29
32
|
*/
|
|
30
33
|
export declare class AnnualReportReads {
|
|
31
34
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annual-report-reads.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/annual-report-reads.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,KAAK,YAAY,EAA0B,MAAM,oCAAoC,CAAC;AAG/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,OAAQ,CAAC;AAO5C
|
|
1
|
+
{"version":3,"file":"annual-report-reads.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/annual-report-reads.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,KAAK,YAAY,EAA0B,MAAM,oCAAoC,CAAC;AAG/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,OAAQ,CAAC;AAO5C;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAiB;;IAY5B,YAAY,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,EAAE,OAAO,EAU3E;IAED;;;;;;OAMG;IACG,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAmBhF;IAED;;;;;;OAMG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAMzE;CA8CF"}
|
|
@@ -26,12 +26,15 @@ function pacerGapMs() {
|
|
|
26
26
|
* feed per filer, only under `ifrs-full` — where SEC's XBRL data lacks IFRS annual
|
|
27
27
|
* reports filed from late March 2026 — and never in strict mirror mode, which sends
|
|
28
28
|
* nothing to SEC for these tools. Build it right after starting the call's own
|
|
29
|
-
* reads
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
29
|
+
* reads; with the local mirror on they start once those settle instead, since a
|
|
30
|
+
* point read for a filer the store holds reads the same feed into the service's
|
|
31
|
+
* cache first. Each request is a side read (#283): it waits behind the call's own
|
|
32
|
+
* reads and every other primary read queued in the pacer, so under contention it can
|
|
33
|
+
* wait out the deadline unsent and the call answers without the caveat, logging the
|
|
34
|
+
* same warning as a failed read. Each gets one attempt under a scope of its own — the
|
|
35
|
+
* caller's signal beside a deadline armed when the call's own reads settle — so a
|
|
36
|
+
* failure, a 404, or a stall only leaves a filer without a report, while the
|
|
37
|
+
* caller's cancel still fails the call.
|
|
35
38
|
*/
|
|
36
39
|
export class AnnualReportReads {
|
|
37
40
|
#ctx;
|
|
@@ -51,6 +54,7 @@ export class AnnualReportReads {
|
|
|
51
54
|
this.#ciks = read ? ciks : [];
|
|
52
55
|
this.#scope = new CallScope(AbortSignal.any([ctx.signal, this.#deadline.signal]), {
|
|
53
56
|
singleAttempt: true,
|
|
57
|
+
sideRead: true,
|
|
54
58
|
});
|
|
55
59
|
if (!mirror)
|
|
56
60
|
this.#start();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annual-report-reads.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/annual-report-reads.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAqB,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC/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AAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;iBAC9D,CAAC,CAAC;YACL,CAAC;YACD,OAAO;QACT,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Filer-written text as Markdown blockquote lines.
|
|
3
|
+
* @module mcp-server/tools/blockquote
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Filer-written text as the lines of a Markdown blockquote that a CommonMark parse reads back
|
|
7
|
+
* as `text` (CR and CRLF as LF): escaped, then every line of the escaped value prefixed `> `
|
|
8
|
+
* under `indent`. The escape writes each line break as a hard break, so the quote stays one
|
|
9
|
+
* paragraph. The caller follows the quote with a blank line before anything else it writes,
|
|
10
|
+
* or the next line would continue the quote.
|
|
11
|
+
*/
|
|
12
|
+
export declare function blockquote(text: string, indent?: string): string[];
|
|
13
|
+
//# sourceMappingURL=blockquote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/blockquote.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,MAAM,EAAE,CAI9D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Filer-written text as Markdown blockquote lines.
|
|
3
|
+
* @module mcp-server/tools/blockquote
|
|
4
|
+
*/
|
|
5
|
+
import { escapeMarkdownInline } from '@cyanheads/mcp-ts-core/utils';
|
|
6
|
+
/**
|
|
7
|
+
* Filer-written text as the lines of a Markdown blockquote that a CommonMark parse reads back
|
|
8
|
+
* as `text` (CR and CRLF as LF): escaped, then every line of the escaped value prefixed `> `
|
|
9
|
+
* under `indent`. The escape writes each line break as a hard break, so the quote stays one
|
|
10
|
+
* paragraph. The caller follows the quote with a blank line before anything else it writes,
|
|
11
|
+
* or the next line would continue the quote.
|
|
12
|
+
*/
|
|
13
|
+
export function blockquote(text, indent = '') {
|
|
14
|
+
return escapeMarkdownInline(text)
|
|
15
|
+
.split('\n')
|
|
16
|
+
.map((line) => `${indent}> ${line}`);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=blockquote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/blockquote.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,MAAM,GAAG,EAAE;IAClD,OAAO,oBAAoB,CAAC,IAAI,CAAC;SAC9B,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,MAAM,KAAK,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* secedgar_get_institutional_holdings (13F portfolios): this tool covers the 5%-and-over
|
|
7
7
|
* stakes, activist and passive. Discovery runs off the company's own submissions feed, which
|
|
8
8
|
* lists each schedule it is party to on one side — about it, or filed by it — so each role
|
|
9
|
-
* reads its own side and counts the other before any document is read (#276).
|
|
9
|
+
* reads its own side and counts the other before any document is read (#276). A date window
|
|
10
|
+
* also reads the archive pages behind `recent`, and `offset` continues a truncated scan (#279).
|
|
10
11
|
* @module mcp-server/tools/definitions/get-beneficial-owners
|
|
11
12
|
*/
|
|
12
13
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
@@ -25,6 +26,9 @@ export declare const getBeneficialOwnersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
25
26
|
}>>;
|
|
26
27
|
include_amendments: z.ZodDefault<z.ZodBoolean>;
|
|
27
28
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
filed_after: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
|
|
30
|
+
filed_before: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
|
|
31
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
28
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
33
|
issuer: z.ZodString;
|
|
30
34
|
issuer_cik: z.ZodString;
|
|
@@ -102,7 +106,7 @@ export declare const getBeneficialOwnersTool: import("@cyanheads/mcp-ts-core").T
|
|
|
102
106
|
}, {
|
|
103
107
|
readonly reason: "no_filings_found";
|
|
104
108
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
105
|
-
readonly when: "
|
|
109
|
+
readonly when: "On an undated call, no structured SCHEDULE 13D/13G matching the form filters sits on either side of the recent filings — none about the company and none it filed";
|
|
106
110
|
readonly recovery: "Use secedgar_search_filings with forms [\"SC 13D\",\"SC 13G\"] to reach the pre-2024-12-18 text filings, then read them with secedgar_get_filing.";
|
|
107
111
|
}, {
|
|
108
112
|
readonly reason: 'rate_limited';
|
|
@@ -146,6 +150,9 @@ export declare function createGetBeneficialOwnersTool(options: LimitClampOptions
|
|
|
146
150
|
}>>;
|
|
147
151
|
include_amendments: z.ZodDefault<z.ZodBoolean>;
|
|
148
152
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
153
|
+
filed_after: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
|
|
154
|
+
filed_before: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
|
|
155
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
149
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
157
|
issuer: z.ZodString;
|
|
151
158
|
issuer_cik: z.ZodString;
|
|
@@ -223,7 +230,7 @@ export declare function createGetBeneficialOwnersTool(options: LimitClampOptions
|
|
|
223
230
|
}, {
|
|
224
231
|
readonly reason: "no_filings_found";
|
|
225
232
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
226
|
-
readonly when: "
|
|
233
|
+
readonly when: "On an undated call, no structured SCHEDULE 13D/13G matching the form filters sits on either side of the recent filings — none about the company and none it filed";
|
|
227
234
|
readonly recovery: "Use secedgar_search_filings with forms [\"SC 13D\",\"SC 13G\"] to reach the pre-2024-12-18 text filings, then read them with secedgar_get_filing.";
|
|
228
235
|
}, {
|
|
229
236
|
readonly reason: 'rate_limited';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-beneficial-owners.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-beneficial-owners.tool.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"get-beneficial-owners.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-beneficial-owners.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAUjE,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,mCAAmC,CAAC;AA2I3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6yBlC,CAAC;AAEH,sGAAsG;AACtG,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvE"}
|