MCPcopy Create free account

hub / github.com/chrisryugj/korean-dart-mcp / functions

Functions131 in github.com/chrisryugj/korean-dart-mcp

↓ 18 callersFunctionabort
(msg: string)
src/utils/safe-zip.ts:58
↓ 15 callersFunctiondefineTool
(spec: { name: string; description: string; input: S; handler: (ctx: ToolCtx, args: z.infer<S>) => Pro
src/tools/_helpers.ts:24
↓ 12 callersFunctionrun
(label, fn)
scripts/showcase-v0_9_1.mjs:31
↓ 12 callersFunctionsection
(n, title)
scripts/showcase-v0_9_1.mjs:25
↓ 11 callersFunctioncheck
(label, ok, detail = "")
scripts/smoke-v0_7_1.mjs:25
↓ 11 callersMethodinit
서버 기동 시 1회 호출. 캐시 유효하면 DB만 열고 끝.
src/lib/corp-code.ts:67
↓ 11 callersFunctionresolveCorp
(resolver: CorpCodeResolver, input: string)
src/tools/_helpers.ts:42
↓ 10 callersFunctionnormalizeDate
(input: string)
src/tools/_helpers.ts:54
↓ 9 callersFunctionT
(n)
scripts/smoke-v0_7_1.mjs:21
↓ 9 callersFunctionrun
(label, name, args)
scripts/smoke-v0_7.mjs:15
↓ 8 callersFunctionrun
(label, name, args)
scripts/smoke-p2.mjs:31
↓ 6 callersFunctionfmt
(n: number | null)
src/lib/xbrl-parser.ts:762
↓ 6 callersFunctionpickAccount
( items: AccountItem[], key: keyof typeof ACCOUNT_MATCHERS, period: "thstrm" | "frmtrm" | "bfefrmtrm", )
src/tools/buffett-quality-snapshot.ts:60
↓ 6 callersFunctionrgb
(r: number, g: number, b: number)
src/setup.ts:144
↓ 5 callersFunctioncall
(label, name, args)
scripts/smoke-v0_5.mjs:18
↓ 5 callersFunctionrankBy
( rows: Array<{ corp_name: string } & Record<string, unknown>>, key: string, dir: "asc" | "desc", )
src/tools/buffett-quality-snapshot.ts:264
↓ 5 callersFunctionrun
(name, fn)
scripts/field-test-v0_9.mjs:25
↓ 5 callersFunctiontext
(parent: { getElementsByTagName(tag: string): { length: number; [i: number]: { textContent: string | null } }
src/lib/corp-code.ts:237
↓ 4 callersFunctioninlineText
(el: any)
src/lib/dart-xml.ts:139
↓ 4 callersFunctionmakeTable
(tags: string[])
src/lib/xbrl-parser.ts:624
↓ 4 callersFunctionparseYmd
(s: string)
src/tools/search-disclosures.ts:170
↓ 4 callersFunctionsafeUnzipToMemory
( buf: Buffer, options: SafeUnzipOptions = {}, )
src/utils/safe-zip.ts:41
↓ 4 callersFunctionsleep
(ms: number)
src/setup.ts:148
↓ 4 callersFunctionymd
(d: Date)
src/tools/search-disclosures.ts:157
↓ 3 callersMethodbyCorpCode
(code: string)
src/lib/corp-code.ts:160
↓ 3 callersFunctiondetectFormat
(filename: string)
src/tools/get-attachments.ts:93
↓ 3 callersMethodgetJson
JSON 엔드포인트 호출
src/lib/dart-client.ts:28
↓ 3 callersMethodgetZip
ZIP 엔드포인트 호출 (corp_code 덤프, 원문 XML, XBRL 등). * DART 는 에러 시 Content-Type 은 zip 이지만 바디는 {"status":"013",...} JSON 을 돌려준다.
src/lib/dart-client.ts:42
↓ 3 callersFunctionrenderChildren
(el: any, titleDepth: number)
src/lib/dart-xml.ts:129
↓ 3 callersFunctionrenderTable
(title: string, table: StatementTable, periods: Statements["periods"])
src/lib/xbrl-parser.ts:767
↓ 3 callersMethodrequireDb
()
src/lib/corp-code.ts:184
↓ 3 callersMethodresolve
* 입력 문자열을 단일 corp_code 로 해석. * - 8자리 숫자 → byCorpCode * - 6자리 숫자 → byStockCode * - 그 외 → search() 상위 1건
src/lib/corp-code.ts:177
↓ 3 callersFunctionresolveLabel
(tag: string, labels: Map<string, string>)
src/lib/xbrl-parser.ts:561
↓ 3 callersFunctionrun
(label, args)
scripts/smoke-attachments.mjs:18
↓ 3 callersFunctionstepHeader
(step: number, total: number, title: string)
src/setup.ts:185
↓ 2 callersFunctionbuildServerEntry
* Windows 에선 npx → npx.cmd 를 거치며 Claude Desktop 이 .cmd 를 못 찾는 이슈가 있어 * `cmd /c` 래핑이 필요하다. README 에도 동일 가이드 있음.
src/setup.ts:104
↓ 2 callersMethodbuildUrl
( path: string, params: Record<string, string | number | undefined>, )
src/lib/dart-client.ts:70
↓ 2 callersMethodbyStockCode
(code: string)
src/lib/corp-code.ts:149
↓ 2 callersFunctioncagr
(first: number | null, last: number | null, periods: number)
src/tools/buffett-quality-snapshot.ts:113
↓ 2 callersFunctionclassifyRole
(roleUri: string)
src/lib/xbrl-parser.ts:391
↓ 2 callersFunctionconvertNode
(node: any, titleDepth: number)
src/lib/dart-xml.ts:86
↓ 2 callersMethodfetch
(url: string)
src/lib/dart-client.ts:83
↓ 2 callersFunctionfetchBinary
(url: string)
src/tools/get-attachments.ts:131
↓ 2 callersFunctionfetchEvent
( ctx: Parameters<Parameters<typeof defineTool>[0]["handler"]>[0], corp_code: string, type: string, bg
src/tools/get-corporate-event.ts:105
↓ 2 callersFunctionfetchHtml
(url: string)
src/tools/get-attachments.ts:125
↓ 2 callersFunctionfindPeriods
( data: XbrlData, fs_div: "consolidated" | "separate", )
src/lib/xbrl-parser.ts:595
↓ 2 callersFunctionfmt
(d)
scripts/showcase-v0_9_1.mjs:76
↓ 2 callersFunctionindexCoreFacts
재무제표 본체 fact 만 골라 bucket 별로 인덱싱.
src/lib/xbrl-parser.ts:570
↓ 2 callersFunctionnormalize
(row: CorpRecord)
src/lib/corp-code.ts:192
↓ 2 callersFunctionparseLocsFromLink
link:loc 엘리먼트들에서 xlink:label → tag 매핑. href="...#ifrs-full_Assets" → "ifrs-full:Assets".
src/lib/xbrl-parser.ts:408
↓ 2 callersFunctionprintManualConfig
(apiKey: string)
src/setup.ts:293
↓ 2 callersFunctionsample
(arr)
scripts/test-xbrl-markdown.mjs:86
↓ 2 callersMethodsearch
키워드로 회사 검색. alias → 상장사 → 완전일치 → 접두사 → 짧은 이름 → 낮은 종목코드 순.
src/lib/corp-code.ts:110
↓ 2 callersFunctiontruncOutline
( o: unknown, )
src/tools/get-attachments.ts:198
↓ 2 callersFunctionymd
(d: Date)
src/tools/disclosure-anomaly.ts:55
↓ 2 callersFunctionymd
(d)
scripts/field-test-v0_9.mjs:107
↓ 1 callersFunctionT
(n)
scripts/smoke-v0_7.mjs:13
↓ 1 callersFunctionT
(n)
scripts/field-test-v0_8.mjs:22
↓ 1 callersFunctionT
(n)
scripts/smoke-v0_5.mjs:16
↓ 1 callersFunctionbuildAnomalySummary
(p: { corpName: string; score: number; verdict: string; flags: string[]; stats: { disclosures_to
src/tools/disclosure-anomaly.ts:267
↓ 1 callersFunctionbuildDatabase
(path: string, records: CorpRecord[])
src/lib/corp-code.ts:242
↓ 1 callersFunctionbuildInsiderSummary
(p: { corpName: string; reports: number; buyCount: number; sellCount: number; buyers: number; sell
src/tools/insider-signal.ts:232
↓ 1 callersFunctionbuildStatements
( data: XbrlData, opts: { fs_div: "consolidated" | "separate"; sections: ("BS" | "IS" | "CF")[] }, )
src/lib/xbrl-parser.ts:617
↓ 1 callersFunctionbuildStatementsFull
( data: XbrlData, opts: { fs_div: "consolidated" | "separate"; sections: ("BS" | "IS" | "CF")[] }, )
src/lib/xbrl-parser.ts:658
↓ 1 callersFunctionbuildZedEntry
(apiKey: string)
src/setup.ts:122
↓ 1 callersFunctionclassifyConsolidation
axisTail 이 ConsolidatedMember/SeparateMember "만" 있으면 재무제표 본체 context.
src/lib/xbrl-parser.ts:250
↓ 1 callersFunctionclassifyContextId
context id 에서 period bucket + pointType 추정.
src/lib/xbrl-parser.ts:232
↓ 1 callersFunctioncollectByTag
(parent: any, tag: string)
src/lib/dart-xml.ts:170
↓ 1 callersFunctioncomputeRatios
(m: YearMetrics)
src/tools/buffett-quality-snapshot.ts:90
↓ 1 callersFunctioncomputeSnapshot
( ctx: ToolCtx, corp: string, years: number, endYearArg: number | undefined, preferConsolidated: boo
src/tools/buffett-quality-snapshot.ts:145
↓ 1 callersFunctioncreateServer
(opts: ServerOptions)
src/server/mcp-server.ts:17
↓ 1 callersFunctiondartXmlToMarkdown
(xml: string)
src/lib/dart-xml.ts:50
↓ 1 callersFunctiondaysAgo
(n: number)
src/tools/search-disclosures.ts:164
↓ 1 callersFunctiondaysBetween
(a: string, b: string)
src/tools/search-disclosures.ts:178
↓ 1 callersFunctiondecodeXml
(buf: Buffer)
src/tools/download-document.ts:91
↓ 1 callersFunctiondefaultRange
(args: { start?: string; end?: string })
src/tools/disclosure-anomaly.ts:59
↓ 1 callersFunctiondefaultStart
()
src/tools/get-major-holdings.ts:43
↓ 1 callersFunctiondefaultXbrlOutDir
(homeDir: string, rceptNo: string, reprtCode: string)
src/utils/safe-zip.ts:244
↓ 1 callersFunctiondetectClients
()
src/setup.ts:22
↓ 1 callersMethoddoInit
(client: DartClient)
src/lib/corp-code.ts:73
↓ 1 callersFunctionescapeCell
(s: string)
src/lib/dart-xml.ts:187
↓ 1 callersFunctionextractCorpCodeXml
(zipBuf: Buffer)
src/lib/corp-code.ts:202
↓ 1 callersFunctionextractDcmNo
뷰어 HTML 에서 첫 번째 `node[12]['dcmNo']` 추출. 단일-페이지 viewDoc() 도 폴백.
src/tools/get-attachments.ts:101
↓ 1 callersFunctionextractXbrlFilesFromZip
(zipBuf: Buffer)
src/lib/xbrl-parser.ts:218
↓ 1 callersFunctionextractZipEntries
(buf: Buffer)
src/tools/get-attachments.ts:139
↓ 1 callersFunctionextractZipEntries
(buf: Buffer)
src/tools/download-document.ts:87
↓ 1 callersFunctionfailLine
(label: string, detail: string)
src/setup.ts:195
↓ 1 callersFunctionfetchAllPages
total_page 파악 후 2..N 페이지 병렬 수집 (동시성 제한).
src/tools/search-disclosures.ts:200
↓ 1 callersFunctionfilterFsDiv
(items: AccountItem[], preferConsolidated: boolean)
src/tools/buffett-quality-snapshot.ts:103
↓ 1 callersFunctionfindTool
(name)
scripts/smoke-p2.mjs:25
↓ 1 callersMethodisCacheFresh
()
src/lib/corp-code.ts:93
↓ 1 callersFunctionlistAttachments
(rcept_no: string)
src/tools/get-attachments.ts:152
↓ 1 callersFunctionmain
()
src/index.ts:7
↓ 1 callersFunctionnormalizeRcept
DART는 rcept_dt 를 "YYYY-MM-DD" 또는 "YYYYMMDD" 둘 다 쓴다. 8자리 숫자로 정규화.
src/tools/insider-signal.ts:67
↓ 1 callersFunctionnormalizeRcept
(s: string | undefined)
src/tools/get-major-holdings.ts:37
↓ 1 callersFunctionpad
(n)
scripts/showcase-v0_9_1.mjs:45
↓ 1 callersFunctionparseAmount
(v: string | undefined)
src/tools/buffett-quality-snapshot.ts:43
↓ 1 callersFunctionparseAttachmentTable
다운로드 페이지 HTML 에서 첨부 테이블 행 추출. 주석 블록은 먼저 제거.
src/tools/get-attachments.ts:114
↓ 1 callersFunctionparseCalculationLinkbase
(xml: string)
src/lib/xbrl-parser.ts:483
↓ 1 callersFunctionparseCorpCodeXml
(xml: string)
src/lib/corp-code.ts:215
next →1–100 of 131, ranked by callers