@cyanheads/secedgar-mcp-server 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +34 -6
  2. package/dist/index.js +5 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/mcp-server/prompts/definitions/company-analysis.prompt.js +2 -2
  5. package/dist/mcp-server/prompts/definitions/company-analysis.prompt.js.map +1 -1
  6. package/dist/mcp-server/resources/definitions/filing-types.resource.d.ts.map +1 -1
  7. package/dist/mcp-server/resources/definitions/filing-types.resource.js +18 -2
  8. package/dist/mcp-server/resources/definitions/filing-types.resource.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/compare-companies.tool.d.ts.map +1 -1
  10. package/dist/mcp-server/tools/definitions/compare-companies.tool.js +25 -11
  11. package/dist/mcp-server/tools/definitions/compare-companies.tool.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/find-holders.tool.d.ts +61 -0
  13. package/dist/mcp-server/tools/definitions/find-holders.tool.d.ts.map +1 -0
  14. package/dist/mcp-server/tools/definitions/find-holders.tool.js +396 -0
  15. package/dist/mcp-server/tools/definitions/find-holders.tool.js.map +1 -0
  16. package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-financials.tool.js +34 -17
  18. package/dist/mcp-server/tools/definitions/get-financials.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts +3 -2
  20. package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js +11 -6
  22. package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts +63 -0
  24. package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts.map +1 -0
  25. package/dist/mcp-server/tools/definitions/get-material-events.tool.js +380 -0
  26. package/dist/mcp-server/tools/definitions/get-material-events.tool.js.map +1 -0
  27. package/dist/mcp-server/tools/definitions/get-snapshot.tool.d.ts.map +1 -1
  28. package/dist/mcp-server/tools/definitions/get-snapshot.tool.js +30 -8
  29. package/dist/mcp-server/tools/definitions/get-snapshot.tool.js.map +1 -1
  30. package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/search-filings.tool.js +3 -15
  32. package/dist/mcp-server/tools/definitions/search-filings.tool.js.map +1 -1
  33. package/dist/services/edgar/concept-map.d.ts +3 -1
  34. package/dist/services/edgar/concept-map.d.ts.map +1 -1
  35. package/dist/services/edgar/concept-map.js +45 -5
  36. package/dist/services/edgar/concept-map.js.map +1 -1
  37. package/dist/services/edgar/concept-series.d.ts +94 -22
  38. package/dist/services/edgar/concept-series.d.ts.map +1 -1
  39. package/dist/services/edgar/concept-series.js +171 -33
  40. package/dist/services/edgar/concept-series.js.map +1 -1
  41. package/dist/services/edgar/edgar-api-service.d.ts +7 -0
  42. package/dist/services/edgar/edgar-api-service.d.ts.map +1 -1
  43. package/dist/services/edgar/edgar-api-service.js +13 -0
  44. package/dist/services/edgar/edgar-api-service.js.map +1 -1
  45. package/dist/services/edgar/eight-k-items.d.ts +62 -0
  46. package/dist/services/edgar/eight-k-items.d.ts.map +1 -0
  47. package/dist/services/edgar/eight-k-items.js +131 -0
  48. package/dist/services/edgar/eight-k-items.js.map +1 -0
  49. package/dist/services/edgar/types.d.ts +39 -0
  50. package/dist/services/edgar/types.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/server.json +3 -3
@@ -0,0 +1,131 @@
1
+ /**
2
+ * @fileoverview Form 8-K item-code decode tables for both numbering regimes.
3
+ * SEC replaced the original single-integer item numbering with the current
4
+ * `x.xx` scheme in Release 33-8400, effective 2004-08-23, so EDGAR carries two
5
+ * disjoint vocabularies in the same `items` field. Decoding is driven by the
6
+ * code's SHAPE, not the filing date: a dotted code is always current-regime, a
7
+ * bare integer is always legacy. That makes a mis-decode impossible for filings
8
+ * straddling the changeover, where filers reported pre-changeover events under
9
+ * the old numbers for months after the effective date.
10
+ * @module services/edgar/eight-k-items
11
+ */
12
+ /**
13
+ * Effective date of SEC Release 33-8400, which introduced the current `x.xx`
14
+ * item numbering. Reported as context on legacy-coded filings; never used to
15
+ * pick a decode table (see the module header).
16
+ */
17
+ export const EIGHT_K_RENUMBERING_DATE = '2004-08-23';
18
+ /** Current-regime section headings, keyed by the code's leading digit. */
19
+ export const EIGHT_K_SECTIONS = {
20
+ '1': "Registrant's Business and Operations",
21
+ '2': 'Financial Information',
22
+ '3': 'Securities and Trading Markets',
23
+ '4': 'Matters Related to Accountants and Financial Statements',
24
+ '5': 'Corporate Governance and Management',
25
+ '6': 'Asset-Backed Securities',
26
+ '7': 'Regulation FD',
27
+ '8': 'Other Events',
28
+ '9': 'Financial Statements and Exhibits',
29
+ };
30
+ /**
31
+ * Current Form 8-K items (filings numbered under the post-2004-08-23 scheme),
32
+ * transcribed from the item headings of SEC's Form 8-K.
33
+ */
34
+ export const CURRENT_EIGHT_K_ITEMS = {
35
+ '1.01': 'Entry into a Material Definitive Agreement',
36
+ '1.02': 'Termination of a Material Definitive Agreement',
37
+ '1.03': 'Bankruptcy or Receivership',
38
+ '1.04': 'Mine Safety — Reporting of Shutdowns and Patterns of Violations',
39
+ '1.05': 'Material Cybersecurity Incidents',
40
+ '2.01': 'Completion of Acquisition or Disposition of Assets',
41
+ '2.02': 'Results of Operations and Financial Condition',
42
+ '2.03': 'Creation of a Direct Financial Obligation or an Obligation under an Off-Balance Sheet Arrangement of a Registrant',
43
+ '2.04': 'Triggering Events That Accelerate or Increase a Direct Financial Obligation or an Obligation under an Off-Balance Sheet Arrangement',
44
+ '2.05': 'Costs Associated with Exit or Disposal Activities',
45
+ '2.06': 'Material Impairments',
46
+ '3.01': 'Notice of Delisting or Failure to Satisfy a Continued Listing Rule or Standard; Transfer of Listing',
47
+ '3.02': 'Unregistered Sales of Equity Securities',
48
+ '3.03': 'Material Modification to Rights of Security Holders',
49
+ '4.01': "Changes in Registrant's Certifying Accountant",
50
+ '4.02': 'Non-Reliance on Previously Issued Financial Statements or a Related Audit Report or Completed Interim Review',
51
+ '5.01': 'Changes in Control of Registrant',
52
+ '5.02': 'Departure of Directors or Certain Officers; Election of Directors; Appointment of Certain Officers; Compensatory Arrangements of Certain Officers',
53
+ '5.03': 'Amendments to Articles of Incorporation or Bylaws; Change in Fiscal Year',
54
+ '5.04': "Temporary Suspension of Trading Under Registrant's Employee Benefit Plans",
55
+ '5.05': "Amendments to the Registrant's Code of Ethics, or Waiver of a Provision of the Code of Ethics",
56
+ '5.06': 'Change in Shell Company Status',
57
+ '5.07': 'Submission of Matters to a Vote of Security Holders',
58
+ '5.08': 'Shareholder Director Nominations',
59
+ '6.01': 'ABS Informational and Computational Material',
60
+ '6.02': 'Change of Servicer or Trustee',
61
+ '6.03': 'Change in Credit Enhancement or Other External Support',
62
+ '6.04': 'Failure to Make a Required Distribution',
63
+ '6.05': 'Securities Act Updating Disclosure',
64
+ '6.06': 'Static Pool',
65
+ '7.01': 'Regulation FD Disclosure',
66
+ '8.01': 'Other Events',
67
+ '9.01': 'Financial Statements and Exhibits',
68
+ };
69
+ /**
70
+ * Legacy Form 8-K items — the single-integer numbering used before
71
+ * 2004-08-23. Items 10-12 were added in 2002-2003 and retired along with the
72
+ * rest at the changeover; item 12 (results of operations) is the direct
73
+ * ancestor of today's 2.02, and item 9 of today's 7.01.
74
+ */
75
+ export const LEGACY_EIGHT_K_ITEMS = {
76
+ '1': 'Changes in Control of Registrant',
77
+ '2': 'Acquisition or Disposition of Assets',
78
+ '3': 'Bankruptcy or Receivership',
79
+ '4': "Changes in Registrant's Certifying Accountant",
80
+ '5': 'Other Events',
81
+ '6': "Resignations of Registrant's Directors",
82
+ '7': 'Financial Statements, Pro Forma Financial Information and Exhibits',
83
+ '8': 'Change in Fiscal Year',
84
+ '9': 'Regulation FD Disclosure',
85
+ '10': "Amendments to the Registrant's Code of Ethics, or Waiver of a Provision of the Code of Ethics",
86
+ '11': "Temporary Suspension of Trading Under Registrant's Employee Benefit Plans",
87
+ '12': 'Results of Operations and Financial Condition',
88
+ };
89
+ /**
90
+ * Every filterable item code across both regimes. Backs the `items` input enum,
91
+ * so a caller reads the whole vocabulary off the JSON Schema and an unknown code
92
+ * is rejected before any fetch. Declared current-first, but the schema serves the
93
+ * bare integers first regardless: Zod keys its enum by value, and a JS object
94
+ * orders integer-like keys ahead of the rest. The `items` describe text carries
95
+ * which shape belongs to which regime, since the order cannot.
96
+ */
97
+ export const EIGHT_K_ITEM_CODES = [
98
+ ...Object.keys(CURRENT_EIGHT_K_ITEMS),
99
+ ...Object.keys(LEGACY_EIGHT_K_ITEMS),
100
+ ];
101
+ /**
102
+ * Decode one item code by shape — dotted (`2.02`) is current-regime, a bare
103
+ * integer (`12`) is legacy. A code matching neither shape, or matching a shape
104
+ * but absent from that regime's table, comes back with the code alone so the
105
+ * caller sees exactly what EDGAR reported instead of a guessed label.
106
+ */
107
+ export function decodeEightKItem(code) {
108
+ if (/^\d\.\d{2}$/.test(code)) {
109
+ const label = CURRENT_EIGHT_K_ITEMS[code];
110
+ return label ? { code, label, regime: 'current' } : { code, regime: 'current' };
111
+ }
112
+ if (/^\d{1,2}$/.test(code)) {
113
+ const label = LEGACY_EIGHT_K_ITEMS[code];
114
+ return label ? { code, label, regime: 'legacy' } : { code, regime: 'legacy' };
115
+ }
116
+ return { code };
117
+ }
118
+ /**
119
+ * Split the submissions API's `items` field (a comma-separated code list, e.g.
120
+ * `"2.02,9.01"`) into codes. An absent or empty field yields no codes — most
121
+ * 8-K filings carry items, but EDGAR leaves the field blank on some older ones.
122
+ */
123
+ export function parseEightKItems(raw) {
124
+ if (!raw)
125
+ return [];
126
+ return raw
127
+ .split(',')
128
+ .map((code) => code.trim())
129
+ .filter((code) => code.length > 0);
130
+ }
131
+ //# sourceMappingURL=eight-k-items.js.map
@@ -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OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAChF,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAuB;IACtD,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,GAAG;SACP,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACvC,CAAC"}
@@ -247,9 +247,48 @@ export interface RelatedTag {
247
247
  /** XBRL tag a meaningful share of filers report this metric under instead. */
248
248
  tag: string;
249
249
  }
250
+ /**
251
+ * How a concept's tag array is walked when a filer reports more than one of its
252
+ * tags.
253
+ *
254
+ * `priority` — the declared order is semantic: index 0 is the preferred
255
+ * definition and wins every frame it reports, lower tags only filling frames it
256
+ * does not cover. Correct whenever the tags mean different things and one of
257
+ * them is the answer to the concept (revenue's gross/net variants, the
258
+ * trade-only vs trade-and-other receivable captions).
259
+ *
260
+ * `coverage` — the tags are interchangeable alternates that filers choose
261
+ * between rather than a ladder, so the one this filer actually maintains wins:
262
+ * whichever covers the most standard calendar periods, with the declared order
263
+ * breaking a tie. The losers then drop out rather than filling the winner's
264
+ * gaps: alternates are not interchangeable value by value, and the filers
265
+ * reporting both disagree on the years they overlap. Only correct when no fixed
266
+ * order can be right, because filers split in both directions (#101).
267
+ *
268
+ * `priority` stays the default and coverage is opt-in per concept, because
269
+ * coverage is wrong as a general rule and SEC's own data says so. Molson Coors
270
+ * (TAP) tags eleven calendar years under `SalesRevenueGoodsNet`, which SEC
271
+ * retired in 2018, and ten under the assessed-tax-inclusive element against five
272
+ * under `Revenues` — so ranking `revenue` by coverage hands that filer either an
273
+ * eight-year-dead tag or its gross-of-excise line, replacing the continuous net
274
+ * series (CY2016-CY2019 at 6,597 / 13,472 / 13,338 / 13,009 million) with values
275
+ * roughly a fifth lower. Smucker (SJM) and Spotify (SPOT) survive it only on a
276
+ * coincidental tie in period count. Coverage answers "which element does this
277
+ * filer maintain", which is the question only when the elements mean the same
278
+ * thing; where they mean different things, the array order is the answer and
279
+ * period count is noise.
280
+ */
281
+ export type TagSelection = 'coverage' | 'priority';
250
282
  /** Friendly concept name mapping. */
251
283
  export interface ConceptMapping {
252
284
  group: ConceptGroup;
285
+ /**
286
+ * How to pick among `ifrsTags` for a filer reporting several of them. Defaults
287
+ * to `priority`. Scoped to the IFRS array on purpose — the us-gaap `tags` of
288
+ * the same concept can be a genuine priority ladder even when its IFRS
289
+ * counterparts are alternates.
290
+ */
291
+ ifrsTagSelection?: TagSelection;
253
292
  /**
254
293
  * IFRS tag variants for this concept (used when taxonomy === 'ifrs-full').
255
294
  * When present, these replace `tags` for IFRS lookups so friendly names resolve
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/edgar/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,4HAA4H;IAC5H,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;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edgar-mcp-server",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.",
5
5
  "mcpName": "io.github.cyanheads/secedgar-mcp-server",
6
6
  "type": "module",
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/secedgar-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.13.1",
9
+ "version": "0.14.0",
10
10
  "remotes": [
11
11
  {
12
12
  "type": "streamable-http",
@@ -19,7 +19,7 @@
19
19
  "registryBaseUrl": "https://registry.npmjs.org",
20
20
  "identifier": "@cyanheads/secedgar-mcp-server",
21
21
  "runtimeHint": "bun",
22
- "version": "0.13.1",
22
+ "version": "0.14.0",
23
23
  "environmentVariables": [
24
24
  {
25
25
  "name": "EDGAR_USER_AGENT",
@@ -44,7 +44,7 @@
44
44
  "registryBaseUrl": "https://registry.npmjs.org",
45
45
  "identifier": "@cyanheads/secedgar-mcp-server",
46
46
  "runtimeHint": "bun",
47
- "version": "0.13.1",
47
+ "version": "0.14.0",
48
48
  "environmentVariables": [
49
49
  {
50
50
  "name": "EDGAR_USER_AGENT",