{"at":"2026-11-23T02:20:00.893Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:20:01.298Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:20:01.398Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:20:01.799Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"stockmatrix-mcp","version":"0.5.0"}}}}
{"at":"2026-11-23T02:20:01.799Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:20:01.799Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:20:01.803Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get Korean stock market theme rankings with lifecycle scores (TLI: Theme Lifecycle Index).\n\nUse when the user asks about:\n- Trending stock themes, hot investment sectors, market momentum\n- What themes are rising/falling in Korea\n- 한국 주식 테마 랭킹, 요즘 뜨는 테마, 상승/하락 테마\n- KOSPI/KOSDAQ theme trends\n\nReturns themes ranked by score (0-100) with lifecycle stage and related stocks. Scores are computed from search interest (Naver DataLab), news momentum, market volatility, and stock activity — all optimized via Bayesian optimization.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max themes per stage (1-50, default 10)","maximum":50,"minimum":1,"type":"integer"},"sort":{"description":"Sort order within each stage: score (default), change7d, newsCount7d","enum":["score","change7d","newsCount7d"],"type":"string"},"stage":{"description":"Filter by lifecycle stage: emerging (초기 — early interest), growth (성장 — expanding), peak (정점 — maximum attention), decline (하락 — fading), reigniting (재점화 — comeback)","enum":["emerging","growth","peak","decline","reigniting"],"type":"string"}},"type":"object"},"name":"get_theme_ranking","title":"Theme Rankings"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get detailed analysis for a specific Korean stock theme.\n\nReturns: TLI score breakdown (4 components with weights), lifecycle stage, 24h/7d score changes, prediction outlook, top related stocks with price changes, latest news headlines, and similar theme comparisons.\n\nUse after get_theme_ranking or search_themes to drill into a specific theme. Answers: \"tell me more about this theme\", \"what stocks are in this theme\", \"테마 상세 정보\", \"관련 종목 알려줘\", \"이 테마 전망\".","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"theme_id":{"description":"Theme UUID from ranking or search results","format":"uuid","type":"string"}},"required":["theme_id"],"type":"object"},"name":"get_theme_detail","title":"Theme Detail"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get 30-day score history for a Korean stock theme.\n\nReturns daily TLI scores and stage transitions for trend analysis. Use when the user asks about theme momentum over time, whether a theme is gaining or losing interest, or wants to see historical trajectory.\n\nAnswers: \"이 테마 추세가 어때?\", \"최근 한달 흐름\", \"is this theme gaining or losing momentum?\", \"show me the trend\".","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"theme_id":{"description":"Theme UUID from ranking or search results","format":"uuid","type":"string"}},"required":["theme_id"],"type":"object"},"name":"get_theme_history","title":"Theme Score History"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Search Korean stock market themes by keyword (Korean or English).\n\nUse when the user asks about a specific sector, industry, investment theme, stock name, or stock code. Searches theme names, related stock names, and stock symbols.\n\nExamples: \"AI\", \"반도체\" (semiconductor), \"2차전지\" (EV battery), \"방산\" (defense), \"로봇\" (robotics), \"원자력\" (nuclear), \"삼성전자\" (Samsung), \"005930\".\n\nReturns matching themes with TLI scores and lifecycle stages. Use the returned theme_id with get_theme_detail or get_theme_history for deeper analysis.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"description":"Search query — theme name, sector keyword, stock name, or 6-digit stock code","maxLength":200,"minLength":1,"type":"string"}},"required":["query"],"type":"object"},"name":"search_themes","title":"Search Themes"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Search Korean stocks by company name, symbol, or 6-digit stock code, and preview their related themes.\n\nUse when the user asks:\n- Find Samsung Electronics / 삼성전자\n- I only know the company name, not the stock code\n- 종목명으로 코드 찾고 관련 테마도 보고 싶어\n- 삼성전자가 속한 테마 알려줘 / what themes is Samsung in?\n- 005930 테마 알려줘 / which themes is this stock part of?\n\nFor 6-digit stock codes, automatically performs a detailed stock-to-theme lookup (replaces get_stock_theme).\nFor text queries, searches by company name and returns matching stocks with theme previews.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"description":"Company name or 6-digit stock code, e.g. \"삼성전자\", \"SK하이닉스\", \"005930\"","maxLength":200,"minLength":1,"type":"string"}},"required":["query"],"type":"object"},"name":"search_stocks","title":"Search Stocks"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Find every Korean market theme a specific stock belongs to, each with its current TLI lifecycle score and stage.\n\nUse when the user asks about:\n- Which themes/sectors a stock belongs to\n- Whether a specific stock is part of any hot/trending/rising theme\n- 삼성전자(005930)가 속한 테마, 이 종목 관련 테마, 내 종목이 뜨는 테마에 있는지\n- Why a stock is moving (via its theme membership and momentum)\n\nInput is a 6-digit Korean stock code (e.g. 005930 Samsung Electronics, 000660 SK Hynix). To find a code from a company name, use search_stocks first. Returns themes sorted by score, each with lifecycle stage and the stock's relevance in that theme.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"symbol":{"description":"Korean stock code — exactly 6 digits (e.g. \"005930\" Samsung Electronics, \"000660\" SK Hynix)","pattern":"^\\d{6}$","type":"string"}},"required":["symbol"],"type":"object"},"name":"get_stock_themes","title":"Stock → Themes"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get an AI-optimized summary of the Korean stock theme market.\n\nUse when the user asks:\n- What's happening in Korean stock themes right now?\n- Give me a market overview before drilling down\n- 오늘 한국 테마 시장 요약\n- 현재 뜨는 테마와 시장 분포를 한 번에 보고 싶어\n\nReturns a concise market overview, stage distribution, top themes, endpoint references, citation metadata, and disclaimer text.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_market_summary","title":"Market Summary"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get the TLI (Theme Lifecycle Index) algorithm methodology — how scores, stages, and predictions work.\n\nUse when the user asks:\n- How are theme scores calculated?\n- What do the lifecycle stages mean?\n- How does the prediction work?\n- What data sources, schedules, runtime pipeline, or database tables power TLI?\n- TLI 알고리즘 설명, 점수 산출 방식, 단계 판정 기준\n- What data sources are used?\n- TLI 수집 파이프라인, 업데이트 주기, 비교 파이프라인, 데이터 테이블\n\nReturns structured documentation of the scoring algorithm, data collection pipeline, runtime orchestration, database tables, stage determination, stabilization techniques, comparison analysis, and prediction methodology.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"section":{"description":"Specific section: scoring, stabilization, stages, comparison, prediction, data_sources, update_schedule, runtime, data_flow, database_tables, limitations, or all (default: all)","enum":["scoring","stabilization","stages","comparison","prediction","data_sources","update_schedule","runtime","data_flow","database_tables","limitations","all"],"type":"string"}},"type":"object"},"name":"get_methodology","title":"TLI Methodology"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get recent score changes and stage transitions for Korean stock themes.\n\nUse when the user asks:\n- What themes changed the most today/this week?\n- Which themes are rising or falling?\n- Any stage transitions recently?\n- 오늘 테마 변동, 급등/급락 테마\n- 이번 주 생명주기 단계 변화한 테마\n- 새로 떠오르는 테마 있어?\n\nReturns movers (rising/falling by score change), stage transitions, and newly emerging themes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"period":{"description":"Comparison period: 1d = vs yesterday (default), 7d = vs 7 days ago","enum":["1d","7d"],"type":"string"}},"type":"object"},"name":"get_theme_changes","title":"Daily Theme Movers"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Compare 2–5 Korean stock market themes side-by-side with lifecycle scores, similarity, and overlapping stocks.\n\nUse when the user asks:\n- Compare semiconductor and AI themes\n- How similar are these themes?\n- 반도체 vs AI 테마 비교, 테마 간 유사도\n- Which theme is stronger right now?\n- Do these themes share the same stocks?\n\nReturns each theme's score/stage/sparkline, pairwise similarity scores, and overlapping stocks.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"theme_ids":{"description":"Array of 2–5 theme UUIDs to compare","items":{"format":"uuid","type":"string"},"maxItems":5,"minItems":2,"type":"array"}},"required":["theme_ids"],"type":"object"},"name":"compare_themes","title":"Compare Themes"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get champion probability prediction snapshots for Korean stock themes.\n\nUse when the user asks:\n- Which themes are rising / about to peak / cooling down?\n- What is the pRise probability for a theme?\n- Which themes are abstaining because data is still being collected?\n- Show me predicted hot themes\n- 상승세 테마 예측, 하락 전환 예상 테마\n- 테마 생명주기 예측 결과를 보고 싶어\n\nReturns v3 snapshot fields when exposure is enabled: pRise, ciLower, ciUpper, abstain, abstainReasons, modelVersion, trailing90d.topSignalPrecision, and deprecated phase compatibility. Returns dataSource=none when exposure is disabled for rollback.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"phase":{"description":"Deprecated compatibility filter derived from pRise: rising >=0.6, hot >=0.4, cooling <0.4","enum":["rising","hot","cooling"],"type":"string"}},"type":"object"},"name":"get_predictions","title":"Theme Predictions"}]}}}
